I try to build with the script:
Code: Select all
LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" \
LIBS="-lc -lpsplibc -lpspuser" \
./configure --host=psp --disable-shared --prefix=$(psp-config --psp-prefix)
Code: Select all
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-mingw32
checking host system type... mipsallegrexel-psp-elf
checking target system type... mipsallegrexel-psp-elf
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for psp-strip... psp-strip
checking whether user defined C++ flags overwrite the default Cal3D ones... no
checking for psp-g++... psp-g++
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.
And the full log:
Code: Select all
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --host=psp --disable-shared --prefix=c:/pspsdk/psp
## --------- ##
## Platform. ##
## --------- ##
hostname = NB-PAOLOL
uname -m = i686
uname -r = 1.0.11(0.46/3/2)
uname -s = MINGW32_NT-5.1
uname -v = 2007-12-05 00:35
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: .
PATH: /usr/local/bin
PATH: /mingw/bin
PATH: /bin
PATH: /c/WINDOWS/system32
PATH: /c/WINDOWS
PATH: /c/WINDOWS/System32/Wbem
PATH: /c/Program Files/Wave Systems Corp/Dell Preboot Manager/Access Client/v5
PATH: /c/Program Files/Common Files/GTK/2.0/bin
PATH: /c/Program Files/MySQL/MySQL Server 5.0/bin
PATH: /c/Program Files/QuickTime/QTSystem
PATH: /c/WINDOWS/system32/WindowsPowerShell/v1.0
PATH: /c/maven-2.0.8/bin
PATH: /c/progra~1/svn-win32-1.4.6/bin
PATH: /c/progra~1/putty
PATH: /c/pspsdk/bin
PATH: /c/Python25
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1539: checking build system type
configure:1557: result: i686-pc-mingw32
configure:1565: checking host system type
configure:1579: result: mipsallegrexel-psp-elf
configure:1587: checking target system type
configure:1601: result: mipsallegrexel-psp-elf
configure:1630: checking for a BSD-compatible install
configure:1685: result: /bin/install -c
configure:1696: checking whether build environment is sane
configure:1739: result: yes
configure:1804: checking for gawk
configure:1820: found /bin/gawk
configure:1830: result: gawk
configure:1840: checking whether make sets $(MAKE)
configure:1860: result: yes
configure:1936: checking for psp-strip
configure:1952: found /c/pspsdk/bin/psp-strip
configure:1962: result: psp-strip
configure:2050: checking whether user defined C++ flags overwrite the default Cal3D ones
configure:2057: result: no
configure:2072: checking for psp-g++
configure:2088: found /c/pspsdk/bin/psp-g++
configure:2098: result: psp-g++
configure:2156: checking for C++ compiler version
configure:2159: psp-g++ --version </dev/null >&5
psp-g++.exe (GCC) 4.1.2 (PSPDEV 20060507)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2162: $? = 0
configure:2164: psp-g++ -v </dev/null >&5
Using built-in specs.
Target: psp
Configured with: ../../gcc-4.1.2/configure --enable-languages=c,c++ --disable-multilib --with-gcc --with-gnu-ld --with-gnu-as --disable-shared --disable-win32-registry --disable-nls --enable-cxx-flags=-G0 --disable-libstdcxx-pch --target=psp --with-newlib --prefix=c:/pspsdk
Thread model: single
gcc version 4.1.2 (PSPDEV 20060507)
configure:2167: $? = 0
configure:2169: psp-g++ -V </dev/null >&5
psp-g++.exe: '-V' option must have argument
configure:2172: $? = 1
configure:2195: checking for C++ compiler default output file name
configure:2198: psp-g++ -Lc:/pspsdk/psp/lib -Lc:/pspsdk/psp/sdk/lib -lc -lpspuser conftest.cc >&5
c:/pspsdk/psp/lib\libc.a(_exit.o): In function `_exit':
: undefined reference to `sceKernelSelfStopUnloadModule'
c:/pspsdk/psp/lib\libc.a(_exit.o): In function `_exit':
: undefined reference to `sceKernelExitThread'
c:/pspsdk/psp/lib\libc.a(_sbrk.o): In function `__psp_free_heap':
: undefined reference to `sceKernelFreePartitionMemory'
c:/pspsdk/psp/lib\libc.a(_sbrk.o): In function `_sbrk':
: undefined reference to `sceKernelAllocPartitionMemory'
c:/pspsdk/psp/lib\libc.a(_sbrk.o): In function `_sbrk':
: undefined reference to `sceKernelGetBlockHeadAddr'
c:/pspsdk/psp/lib\libc.a(_sbrk.o): In function `_sbrk':
: undefined reference to `sceKernelMaxFreeMemSize'
c:/pspsdk/psp/lib\libc.a(fdman.o): In function `__psp_fdman_init':
: undefined reference to `sceKernelStdin'
c:/pspsdk/psp/lib\libc.a(fdman.o): In function `__psp_fdman_init':
: undefined reference to `sceKernelStdout'
c:/pspsdk/psp/lib\libc.a(fdman.o): In function `__psp_fdman_init':
: undefined reference to `sceKernelStderr'
c:/pspsdk/psp/lib\libc.a(_write.o): In function `_write':
: undefined reference to `sceIoWrite'
c:/pspsdk/psp/lib\libc.a(chdir.o): In function `chdir':
: undefined reference to `sceIoDopen'
c:/pspsdk/psp/lib\libc.a(chdir.o): In function `chdir':
: undefined reference to `sceIoDclose'
c:/pspsdk/psp/lib\libc.a(chdir.o): In function `chdir':
: undefined reference to `sceIoChdir'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_nonblocking_write':
: undefined reference to `sceKernelTrySendMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_write':
: undefined reference to `sceKernelSendMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_read':
: undefined reference to `sceKernelReceiveMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_close':
: undefined reference to `sceKernelDeleteMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `pipe':
: undefined reference to `sceKernelCreateMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `pipe':
: undefined reference to `sceKernelDeleteMsgPipe'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_peekmsgsize':
: undefined reference to `sceKernelReferMsgPipeStatus'
c:/pspsdk/psp/lib\libc.a(pipe.o): In function `__psp_pipe_nonblocking_read':
: undefined reference to `sceKernelTryReceiveMsgPipe'
c:/pspsdk/psp/lib\libc.a(_close.o): In function `_close':
: undefined reference to `sceIoClose'
c:/pspsdk/psp/lib\libc.a(_fstat.o): In function `_fstat':
: undefined reference to `sceIoLseek'
c:/pspsdk/psp/lib\libc.a(_fstat.o): In function `_fstat':
: undefined reference to `sceIoLseek'
c:/pspsdk/psp/lib\libc.a(_fstat.o): In function `_fstat':
: undefined reference to `sceIoLseek'
c:/pspsdk/psp/lib\libc.a(_lseek.o): In function `_lseek':
: undefined reference to `sceIoLseek'
c:/pspsdk/psp/lib\libc.a(_read.o): In function `_read':
: undefined reference to `sceIoRead'
c:/pspsdk/psp/lib\libc.a(_stat.o): In function `_stat':
: undefined reference to `sceIoGetstat'
collect2: ld returned 1 exit status
configure:2201: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cal3d"
| #define VERSION "0.11.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2240: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-mingw32
ac_cv_build_alias=i686-pc-mingw32
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Lc:/pspsdk/psp/lib -Lc:/pspsdk/psp/sdk/lib -lc -lpspuser'
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=psp
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=mipsallegrexel-psp-elf
ac_cv_host_alias=psp
ac_cv_path_install='/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_CXX=psp-g++
ac_cv_prog_STRIP=psp-strip
ac_cv_prog_make_make_set=yes
ac_cv_target=mipsallegrexel-psp-elf
ac_cv_target_alias=psp
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run tar'
AR=''
AS=''
AUTOCONF='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run autoconf'
AUTOHEADER='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run autoheader'
AUTOMAKE='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run automake-1.9'
AWK='gawk'
BLENDER=''
CAL_INDICES_SIZE=''
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='psp-g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DB2HTML=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DOXYGEN=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-Lc:/pspsdk/psp/lib -Lc:/pspsdk/psp/sdk/lib -lc -lpspuser'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run makeinfo'
OBJDUMP=''
OBJEXT=''
PACKAGE='cal3d'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='psp-strip'
VALGRIND=''
VERSION='0.11.0'
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DLLTOOL=''
ac_ct_F77=''
ac_ct_OBJDUMP=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='NONE'
host='mipsallegrexel-psp-elf'
host_alias='psp'
host_cpu='mipsallegrexel'
host_os='elf'
host_vendor='psp'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='c:/pspsdk/psp'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='mipsallegrexel-psp-elf'
target_alias=''
target_cpu='mipsallegrexel'
target_os='elf'
target_vendor='psp'
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "cal3d"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define VERSION "0.11.0"
configure: exit 77