Hello There, Guest! Register
Enjoy our site and services? You may donate to help fund server and domain costs. Donate Here for special benefits. You have donated $

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help compiling
#11
(01-13-2017, 09:45 PM)Deak Phreak Wrote: It takes a lot of work, especially if you don't really know what you are doing.  That is why I ended up giving up. Had too many other things to do and was taking to much of my time.  If I get around to it, I can look up to see if I still have my VM image and see if buildroot is still on it if I do.

Okay. I suppose I should start small, then, probably by actually learning C. Not that that's very small itself, but I suppose it shouldn't be too hard... That is, if I don't skip to the end of the hypothetical guide. Smile
Reply
#12
After a while, I managed to get a simple "hello world" to compile... or so I think. The program compiles, but does it really work? The program runs fine on the computer, but I'm not sure it should be able to do that, since I presume it's been cross-compiled for ARM (and my PC is x86_64). It also compiled and ran fine when I had the GCC location wrong, which is a bit worrying. Once it's finished compressing, I'll attach the source files for my program; you'll probably be able to figure out where I have my Buildroot set up.

EDIT: Decided to only upload my "hello world" program, since the Buildroot environment is quite large, of course.

EDIT2: The program doesn't want to upload. Oh well, it's just a "hello world" program; nothing too special.
Reply
#13
OK I managed to boot up my VM and here is a document full of path notes I jotted down talking with Mick and trying to compile.


Code:
Deaks Doom
./configure --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu SDL_CONFIG=/home/deakphreak/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config CFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL





Deaks Duke
./configure --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu SDL_LIBS=/home/deakphreak/buildroot/output/target/usr --with-sdl-prefix=/home/deakphreak/buildroot/output/target/usr/include/SDL CPPFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL


NES
./configure --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-linux-gnu SDL_CONFIG=/home/deakphreak/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config CFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL



./configure --target=arm-buildroon-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu --with-sdl-prefix=/home/deakphreak/buildroot/output/target/usr CPPFLAGS=-I/home/deakphreak/buildroot/output/build/sdl-1.2.15/include --prefix=/home/deakphreak/buildroot/output/target/usr




./configure --target=arm-linux --host=arm-linux --build=x86_64-unknown-linux-gnu --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --exec-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --sysconfdir=/home/mick/Projects/buildroot-2012.05/output/target/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --enable-video-directfb=no --enable-video-qtopia=no --enable-video-x11=no --enable-pulseaudio=no --disable-arts --disable-esd --disable-nasm --disable-video-ps3 --enable-alsa --with-alsa-prefix=~/Projects/buildroot-2012.05/output/target/usr/lib --with-alsa-inc-prefix=~/Projects/buildroot-2012.05/output/build/alsa-lib-1.0.25/include


sdl mixer config
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr CPPFLAGS=-I/home/mick/Projects/buildroot-2012.05/output/build/sdl-1.2.15/include --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr




sdl image config
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --with-sdl-exec-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --disable-sdltest --disable-jpg-shared --disable-png-shared --disable-tif-shared --enable-bmp=yes --enable-gif=yes --enable-jpg=yes --enable-lbm=no --enable-pcx=no --enable-png=yes --enable-pnm=no --enable-tga=no --enable-tif=no --enable-xcf=no --enable-xpm=no --enable-xv=no

duke3d
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu SDL_LIBS=/home/mick/Projects/buildroot-2012.05/output/target/usr CPPFLAGS="-I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/SDL -I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/enet -I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/sys/"

png
./configure  --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --exec-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --sysconfdir=/home/mick/Projects/buildroot-2012.05/output/target/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared

export PATH={$PATH}:/home/mick/Projects/buildroot-2012.05/output/host/usr/bin

trying to load /LF/Bulk/ProgramFiles/THDS-0x00310035-000000/Icon.png
libpng warning: Application was compiled with png.h from libpng-1.4.11
libpng warning: Application  is  running with png.c from libpng-1.2.49
libpng error: Incompatible libpng version in application and library
[0x280] AppManager caught signal 11 !



sdl image configure
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --with-sdl-exec-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --disable-sdltest --disable-jpg-shared --disable-png-shared --disable-tif-shared --enable-bmp=yes --enable-gif=yes --enable-jpg=yes --enable-lbm=no --enable-pcx=no --enable-png=yes --enable-pnm=no --enable-tga=no --enable-tif=no --enable-xcf=no --enable-xpm=no --enable-xv=no



sdl mixer in buildroot
./configure --target=arm-linux --host=arm-linux --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --without-x --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr  --disable-music-mod --disable-music-mp3 --disable-music-flac --disable-music-mp3-mad-gpl --disable-music-ogg


./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu  --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr


I also have a file called Run this first with this inside:

export PATH={$PATH}:/home/deakphreak/buildroot/output/host/usr/bin


Attached is the source to my simple Toggle Developer app, testing app and Doom launcher app that loads before the game.  I hope this helps.  I won't be online for about a week or two FYI.


Attached Files
.zip   toggledev.zip (Size: 3.71 KB / Downloads: 82)
.zip   lftest.zip (Size: 4.94 KB / Downloads: 86)
.zip   doomlauncher.zip (Size: 8.28 KB / Downloads: 87)
Reply
#14
(01-28-2017, 09:58 AM)Deak Phreak Wrote: OK I managed to boot up my VM and here is a document full of path notes I jotted down talking with Mick and trying to compile.


Code:
Deaks Doom
./configure --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu SDL_CONFIG=/home/deakphreak/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config CFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL





Deaks Duke
./configure --target=arm-buildroot-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu SDL_LIBS=/home/deakphreak/buildroot/output/target/usr --with-sdl-prefix=/home/deakphreak/buildroot/output/target/usr/include/SDL CPPFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL


NES
./configure --target=arm-buildroot-linux --host=arm-buildroot-linux --build=x86_64-linux-gnu SDL_CONFIG=/home/deakphreak/buildroot/output/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config CFLAGS=-I/home/deakphreak/buildroot/output/target/usr/include/SDL



./configure --target=arm-buildroon-linux-uclibcgnueabi --host=arm-buildroot-linux-uclibcgnueabi --build=x86_64-linux-gnu --with-sdl-prefix=/home/deakphreak/buildroot/output/target/usr CPPFLAGS=-I/home/deakphreak/buildroot/output/build/sdl-1.2.15/include --prefix=/home/deakphreak/buildroot/output/target/usr




./configure --target=arm-linux --host=arm-linux --build=x86_64-unknown-linux-gnu --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --exec-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --sysconfdir=/home/mick/Projects/buildroot-2012.05/output/target/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --enable-video-directfb=no --enable-video-qtopia=no --enable-video-x11=no --enable-pulseaudio=no --disable-arts --disable-esd --disable-nasm --disable-video-ps3 --enable-alsa --with-alsa-prefix=~/Projects/buildroot-2012.05/output/target/usr/lib --with-alsa-inc-prefix=~/Projects/buildroot-2012.05/output/build/alsa-lib-1.0.25/include


sdl mixer config
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr CPPFLAGS=-I/home/mick/Projects/buildroot-2012.05/output/build/sdl-1.2.15/include --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr




sdl image config
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --with-sdl-exec-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --disable-sdltest --disable-jpg-shared --disable-png-shared --disable-tif-shared --enable-bmp=yes --enable-gif=yes --enable-jpg=yes --enable-lbm=no --enable-pcx=no --enable-png=yes --enable-pnm=no --enable-tga=no --enable-tif=no --enable-xcf=no --enable-xpm=no --enable-xv=no

duke3d
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu SDL_LIBS=/home/mick/Projects/buildroot-2012.05/output/target/usr CPPFLAGS="-I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/SDL -I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/enet -I/home/mick/Projects/buildroot-2012.05/output/target/usr/include/sys/"

png
./configure  --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --exec-prefix=/home/mick/Projects/buildroot-2012.05/output/target/usr --sysconfdir=/home/mick/Projects/buildroot-2012.05/output/target/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared

export PATH={$PATH}:/home/mick/Projects/buildroot-2012.05/output/host/usr/bin

trying to load /LF/Bulk/ProgramFiles/THDS-0x00310035-000000/Icon.png
libpng warning: Application was compiled with png.h from libpng-1.4.11
libpng warning: Application  is  running with png.c from libpng-1.2.49
libpng error: Incompatible libpng version in application and library
[0x280] AppManager caught signal 11 !



sdl image configure
./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --with-sdl-exec-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr --disable-sdltest --disable-jpg-shared --disable-png-shared --disable-tif-shared --enable-bmp=yes --enable-gif=yes --enable-jpg=yes --enable-lbm=no --enable-pcx=no --enable-png=yes --enable-pnm=no --enable-tga=no --enable-tif=no --enable-xcf=no --enable-xpm=no --enable-xv=no



sdl mixer in buildroot
./configure --target=arm-linux --host=arm-linux --build=x86_64-unknown-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --program-prefix= --disable-gtk-doc --disable-nls --disable-largefile --disable-ipv6 --enable-static --enable-shared --without-x --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr  --disable-music-mod --disable-music-mp3 --disable-music-flac --disable-music-mp3-mad-gpl --disable-music-ogg


./configure --target=arm-unknown-linux-uclibcgnueabi --host=arm-unknown-linux-uclibcgnueabi --build=x86_64-unknown-linux-gnu  --with-sdl-prefix=/home/mick/Projects/buildroot-2012.05/output/host/usr/arm-unknown-linux-uclibcgnueabi/sysroot/usr


I also have a file called Run this first with this inside:

export PATH={$PATH}:/home/deakphreak/buildroot/output/host/usr/bin


Attached is the source to my simple Toggle Developer app, testing app and Doom launcher app that loads before the game.  I hope this helps.  I won't be online for about a week or two FYI.


Oh, thanks so much! After running the "export" command, things started compiling properly. I don't understand much of the source code, but I hope to eventually be able to. Smile
I can't wait to compile several variations of "hello world". Tongue Now, the next step is figuring out how to actually run these things...
Reply
#15
Question 
(01-13-2017, 05:24 PM)Deak Phreak Wrote: I am not sure what paths he was talking about in the TODO section.  Once you have the buildroot ready to go, then yes, you should be able to compile apps to run on the device.  I grabbed the open source Doom and had quite the time trying to get it to compile, but once done, it created the application file.  I could then launch that on the device either with SSH or creating an "app" for it and installing it with the LeapPad Manager.

I attached my LeapPad Doom files minus the doom.wad file.  This has the SDL libraries the game needed to run correctly.  It also only ran on the Ultra and not the LeapPad 2.  I am not sure if I still have my buildroot setup since that was in a virtual machine I believe and quite a while ago.

Can I please have a complete file?
Reply


Forum Jump: