But when i went into the steps like ./configure./autogen.sh
LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" \
./configure --host psp --with-sdl-prefix=$(psp-config --psp-prefix) \
--prefix=$(psp-config --psp-prefix)
but i did install these libs and once suceeded in making a program with libpng.configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for psp-strip... psp-strip
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for psp-gcc... psp-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether psp-gcc accepts -g... yes
checking for psp-gcc option to accept ISO C89... none needed
checking dependency style of psp-gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by psp-gcc... /usr/local/pspdev/psp/bin/ld
checking if the linker (/usr/local/pspdev/psp/bin/ld) is GNU ld... yes
checking for /usr/local/pspdev/psp/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/pspdev/bin/psp-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... unknown
checking how to run the C preprocessor... psp-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking for psp-g++... psp-g++
checking whether we are using the GNU C++ compiler... yes
checking whether psp-g++ accepts -g... yes
checking dependency style of psp-g++... gcc3
checking how to run the C++ preprocessor... psp-g++ -E
checking for psp-g77... no
checking for psp-xlf... no
checking for psp-f77... no
checking for psp-frt... no
checking for psp-pgf77... no
checking for psp-cf77... no
checking for psp-fort77... no
checking for psp-fl32... no
checking for psp-af77... no
checking for psp-xlf90... no
checking for psp-f90... no
checking for psp-pgf90... no
checking for psp-pghpf... no
checking for psp-epcf90... no
checking for psp-gfortran... no
checking for psp-g95... no
checking for psp-xlf95... no
checking for psp-f95... no
checking for psp-fort... no
checking for psp-ifort... no
checking for psp-ifc... no
checking for psp-efc... no
checking for psp-pgf95... no
checking for psp-lf95... no
checking for psp-ftn... no
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/local/pspdev/bin/psp-nm -B output from psp-gcc object... ok
checking for objdir... .libs
checking for psp-ar... psp-ar
checking for psp-ranlib... psp-ranlib
checking for psp-strip... (cached) psp-strip
checking if psp-gcc static flag works... yes
checking if psp-gcc supports -fno-rtti -fno-exceptions... no
checking for psp-gcc option to produce PIC... -fPIC
checking if psp-gcc PIC flag -fPIC works... yes
checking if psp-gcc supports -c -o file.o... yes
checking whether the psp-gcc linker (/usr/local/pspdev/psp/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by psp-g++... /usr/local/pspdev/psp/bin/ld
checking if the linker (/usr/local/pspdev/psp/bin/ld) is GNU ld... yes
checking whether the psp-g++ linker (/usr/local/pspdev/psp/bin/ld) supports shared libraries... no
checking for psp-g++ option to produce PIC... -fPIC
checking if psp-g++ PIC flag -fPIC works... yes
checking if psp-g++ supports -c -o file.o... yes
checking whether the psp-g++ linker (/usr/local/pspdev/psp/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether make sets $(MAKE)... (cached) yes
checking for psp-gcc... (cached) psp-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether psp-gcc accepts -g... (cached) yes
checking for psp-gcc option to accept ISO C89... (cached) none needed
checking dependency style of psp-gcc... (cached) gcc3
checking for inline... inline
checking for a BSD-compatible install... /usr/bin/install -c
checking for psp-config... psp-config
checking for PSPSDK... /usr/local/pspdev/psp/sdk
checking for sdl-config... /usr/local/pspdev/psp/bin/sdl-config
checking for SDL - version >= 1.2.4... cross compiling; assumed OK...
yes
checking for jpeg_CreateDecompress in -ljpeg... no
configure: WARNING:
*** Unable to find JPEG library (http://www.ijg.org/)
configure: WARNING: JPG image loading disabled
checking for png_create_read_struct in -lpng... no
configure: WARNING:
*** Unable to find PNG library (http://www.libpng.org/pub/png/libpng.html)
checking for uncompress in -lz... no
configure: WARNING:
*** Unable to find Zlib library (http://www.gzip.org/zlib/)
configure: WARNING: PNG image loading disabled
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_image.spec
config.status: creating SDL_image.qpg
config.status: executing depfiles commands
then i input make and got errors
That' s all. Could you please do me a favor to tell me why and how to solve it./bin/bash ./libtool --preserve-dup-deps --tag=CC --mode=link psp-gcc -g -O2 -G0 -I"/usr/local/pspdev/psp/sdk/include" -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser -o showimage showimage.o libSDL_image.la -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet
psp-gcc -g -O2 -G0 -I/usr/local/pspdev/psp/sdk/include -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM -DLOAD_TGA -DLOAD_XPM -o showimage showimage.o -L/usr/local/pspdev/psp/sdk/lib -lc -lpspuser ./.libs/libSDL_image.a -lc -lpspuser -L/usr/local/pspdev/psp/lib -lc -lpspuser -lc -lpspuser -lSDLmain /usr/local/pspdev/psp/lib/libSDL.a /usr/local/pspdev/psp/lib/libstdc++.a -lpthread -lc -lpspuser -lm -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/lib/libSDLmain.a when searching for -lSDLmain
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/lib/libSDLmain.a when searching for -lSDLmain
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/bin/../lib/libSDLmain.a when searching for -lSDLmain
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/bin/ld: skipping incompatible /usr/local/pspdev/psp/lib/libSDLmain.a when searching for -lSDLmain
/usr/local/pspdev/lib/gcc/psp/4.3.2/../../../../psp/bin/ld: cannot find -lSDLmain
collect2: ld returned 1 exit status
make: *** [showimage] 错误 1
Thank you.