Coder Social home page Coder Social logo

Comments (7)

andrewhavens avatar andrewhavens commented on May 12, 2024

Once I installed build-essential, the installer worked. Here's a picture of the triangle example running on my PocketCHIP!

img_3212

from simple2d.

blacktm avatar blacktm commented on May 12, 2024

Hey Andrew – It's been a while! Hope things are good.

I just checked out the CHIP project. Very cool to see other mini-computing platforms sprout up in addition to the Pi. And really dig the PocketCHIP concept. Bummer I missed the Kickstarter :)

I'm also pretty surprised make is missing, and I'm guessing the entire C build system found in build-essential as well. Especially weird seeing as it's marketed to be a hackable platform. Oh well, it's easy enough to check for the build-essential package. I'll open a new issue to add that.

Your issue description also suggests another change which can be made to the install script and Makefile. Now that there are other platforms than just the Pi, it's worth taking a page from the world of web development and not "read the UA string" to infer the environment, but rather do proper feature detection. I've got rpi hardcoded in there quite a bit, but what really matters is whether it's an OpenGL ES platform or not. Main thing I've been looking for is arm in the uname -m string, and then assume GLES if present. There's probably issues with that approach also, but that's the best I've got for now. I'll start a new issue to at least abstract away the rpi stuff to be a general arm platform instead.

Other than that, I'm pretty stoked it worked (mostly) out-of-the-box without any crazy configuration nonsense. And thanks for sharing the pic – awesome to see that little multi-colored triangle appear perfectly on a new piece of hardware (well, maybe a bit too big for a 480x272 screen, but close enough).

from simple2d.

andrewhavens avatar andrewhavens commented on May 12, 2024

Yeah! I've been having fun with this. It's been a while since I've done any C/Ruby 2D programming. So it's also been a while since I've seen your latest updates to S2D and R2D. I like what I see. Nice work! I've been digging into the code a lot lately, but so far almost everything is working as expected. I'm running into an issue with detecting my USB game controller on the PocketCHIP. I'm running against a clone of the ruby2d repo so that I could enable S2D_Diagnostics. =]

If you know how to check for GLES, let me know and I can see if the CHIP is considered GLES or not.

from simple2d.

andrewhavens avatar andrewhavens commented on May 12, 2024

Just ran a script with diagnostics enabled and saw the following:

Error: (Mix_Init) Mixer not build with MP3 support
ALSA lib pcm.c:7843:(snd_pcm_recover) underrun occurred
Info: OpenGL Context
GL_VENDOR: Mesa Project
GL_RENDERER: Software Rasterizer
GL_VERSION: 2.1 Mesa 10.3.2
GL_MAJOR_VERSION: 5
GL_MINOR_VERSION: 2
GL_SHADING_LANGUAGE_VERSION: 1.20

not sure if that means anything to you. Unfortunately, I did not see any logging about the controller. I'll open a different issue for that.

from simple2d.

andrewhavens avatar andrewhavens commented on May 12, 2024

Oh by the way, I'm working on running some SDL tests. I saw this when I ran ./configure which you might find interesting:

./configure 
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for SDL... yes
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for OpenGL support... yes
checking for OpenGL ES support... no
checking for OpenGL ES2 support... yes
checking for TTF_Init in -lSDL2_ttf... yes
configure: creating ./config.status

from simple2d.

blacktm avatar blacktm commented on May 12, 2024

Hey @andrewhavens, I've pushed a lot of updates this past week to better handle generic ARM platforms. The missing build-essential is fixed, and the install pathway for ARM/OpenGL ES is much improved. Since most of the SDL2 Debian packages are built with X11 and OpenGL (desktop stuff), the install script now downloads and builds SDL2 (and image, mixer, ttf) from source with friendlier config flags.

All tests pass on the Raspberry Pi and geometry looks great, but for some reason textures don't get rendered at all. I'm still trying to figure out what's going on there.

If you're so inclined, it would be awesome to see if the testcard works on the PocketCHIP. Easiest way to test this would be:

  1. Cloning the repo using git clone --recursive https://github.com/simple2d/simple2d.git
  2. cding into the directory and installing SDL with the script: sudo bash simple2d.sh install --sdl
  3. And finally running tests: sudo bash test.sh auto testcard

I'd be interested to see what happens!

from simple2d.

blacktm avatar blacktm commented on May 12, 2024

Since the dependency issue is fixed, I'll close this. We can open a new one if running the testcard presents issues.

from simple2d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.