SDL Forum Index
Simple DirectMedia Layer Forums
Reply to topic
arm-linux-gnueabihf-gcc compiler error?

Joined: 21 Oct 2015
Posts: 5
Reply with quote

I want to cross-compile the SDL library to A20 project,but when i compile the example in the test directory with "arm-linux-gnueabihf-gcc" compiler,it make a mistake.what should i do ?

./configure --prefix=/home/reilly/sambashare/sdl/sdllib-emd --target=arm-linux --host=arm-linux CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ LD=arm-linux-gnueabihf-ld AS=arm-linux-gnueabihf-as AR=arm-linux-gnueabihf-ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... arm-unknown-linux-gnu
checking for arm-linux-gcc... arm-linux-gnueabihf-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... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabihf-gcc accepts -g... yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking for arm-linux-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
configure: WARNING: using cross tools not prefixed with host triplet
checking pkg-config is at least version 0.9.0... yes
checking for SDL... no
checking for sdl2-config... no
checking for SDL - version >= 2.0.0... no
*** The sdl2-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl2-config.

i already add the "--prefix=/home/reilly/sambashare/sdl/sdllib-emd" parameter,but....that's why?
View user's profileSend private message
arm-linux-gnueabihf-gcc compiler error?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

 Reply to topic