shauninman / miyoomini-toolchain-buildroot

8 stars 6 forks source link

How to install SDL2 on your released toolchain? #1

Open apiel opened 2 years ago

apiel commented 2 years ago

How could I install SDL2 to your released toolchain?

I extracted your toolchain in /opt/miyoomini-toolchain Using SDL1.2 work well but I would like to use SDL2 :-/

So I git clone https://github.com/libsdl-org/SDL.git Then I run ./configure --host=/opt/miyoomini-toolchain/usr/arm-linux-gnueabihf --build=x86_64-linux-gnu --prefix=/usr And make

But I get the following errors:

Warning, configure is out of date, please re-run autogen.sh
/bin/bash build-scripts/updaterev.sh
  LTLINK build/libSDL2.la
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpulse-simple
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lpulse
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -ljack
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwayland-egl
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwayland-client
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lwayland-cursor
/usr/lib/gcc-cross/arm-linux-gnueabihf/9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lxkbcommon
collect2: error: ld returned 1 exit status
make: *** [Makefile:160: build/libSDL2.la] Error 1

So I guess I am missing something somewhere :p

Do you have any idea on how to do?

Leonidas-from-XIV commented 1 year ago

When you go to make menuconfig, in Target packages, Graphic libraries and applications (graphic/text) you can find an option to build sdl2. Pick it and save the config, rebuild the toolchain.

No need to build sdl2 from git.