how can i build cal3D with the latest sdk?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

how can i build cal3D with the latest sdk?

Post by Heimdall »

I'm trying to buid the latest cal3D and i'm failing what am i doing wrong? (i'm trying with the cygwin toolchain)

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)
and i get this log:

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&#58;2159&#58; psp-g++ --version </dev/null >&5
psp-g++.exe &#40;GCC&#41; 4.1.2 &#40;PSPDEV 20060507&#41;
Copyright &#40;C&#41; 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&#58;2162&#58; $? = 0
configure&#58;2164&#58; psp-g++ -v </dev/null >&5
Using built-in specs.
Target&#58; psp
Configured with&#58; ../../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&#58;/pspsdk
Thread model&#58; single
gcc version 4.1.2 &#40;PSPDEV 20060507&#41;
configure&#58;2167&#58; $? = 0
configure&#58;2169&#58; psp-g++ -V </dev/null >&5
psp-g++.exe&#58; '-V' option must have argument
configure&#58;2172&#58; $? = 1
configure&#58;2195&#58; checking for C++ compiler default output file name
configure&#58;2198&#58; psp-g++   -Lc&#58;/pspsdk/psp/lib -Lc&#58;/pspsdk/psp/sdk/lib -lc -lpspuser conftest.cc  >&5
c&#58;/pspsdk/psp/lib\libc.a&#40;_exit.o&#41;&#58; In function `_exit'&#58;
&#58; undefined reference to `sceKernelSelfStopUnloadModule'
c&#58;/pspsdk/psp/lib\libc.a&#40;_exit.o&#41;&#58; In function `_exit'&#58;
&#58; undefined reference to `sceKernelExitThread'
c&#58;/pspsdk/psp/lib\libc.a&#40;_sbrk.o&#41;&#58; In function `__psp_free_heap'&#58;
&#58; undefined reference to `sceKernelFreePartitionMemory'
c&#58;/pspsdk/psp/lib\libc.a&#40;_sbrk.o&#41;&#58; In function `_sbrk'&#58;
&#58; undefined reference to `sceKernelAllocPartitionMemory'
c&#58;/pspsdk/psp/lib\libc.a&#40;_sbrk.o&#41;&#58; In function `_sbrk'&#58;
&#58; undefined reference to `sceKernelGetBlockHeadAddr'
c&#58;/pspsdk/psp/lib\libc.a&#40;_sbrk.o&#41;&#58; In function `_sbrk'&#58;
&#58; undefined reference to `sceKernelMaxFreeMemSize'
c&#58;/pspsdk/psp/lib\libc.a&#40;fdman.o&#41;&#58; In function `__psp_fdman_init'&#58;
&#58; undefined reference to `sceKernelStdin'
c&#58;/pspsdk/psp/lib\libc.a&#40;fdman.o&#41;&#58; In function `__psp_fdman_init'&#58;
&#58; undefined reference to `sceKernelStdout'
c&#58;/pspsdk/psp/lib\libc.a&#40;fdman.o&#41;&#58; In function `__psp_fdman_init'&#58;
&#58; undefined reference to `sceKernelStderr'
c&#58;/pspsdk/psp/lib\libc.a&#40;_write.o&#41;&#58; In function `_write'&#58;
&#58; undefined reference to `sceIoWrite'
c&#58;/pspsdk/psp/lib\libc.a&#40;chdir.o&#41;&#58; In function `chdir'&#58;
&#58; undefined reference to `sceIoDopen'
c&#58;/pspsdk/psp/lib\libc.a&#40;chdir.o&#41;&#58; In function `chdir'&#58;
&#58; undefined reference to `sceIoDclose'
c&#58;/pspsdk/psp/lib\libc.a&#40;chdir.o&#41;&#58; In function `chdir'&#58;
&#58; undefined reference to `sceIoChdir'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_nonblocking_write'&#58;
&#58; undefined reference to `sceKernelTrySendMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_write'&#58;
&#58; undefined reference to `sceKernelSendMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_read'&#58;
&#58; undefined reference to `sceKernelReceiveMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_close'&#58;
&#58; undefined reference to `sceKernelDeleteMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `pipe'&#58;
&#58; undefined reference to `sceKernelCreateMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `pipe'&#58;
&#58; undefined reference to `sceKernelDeleteMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_peekmsgsize'&#58;
&#58; undefined reference to `sceKernelReferMsgPipeStatus'
c&#58;/pspsdk/psp/lib\libc.a&#40;pipe.o&#41;&#58; In function `__psp_pipe_nonblocking_read'&#58;
&#58; undefined reference to `sceKernelTryReceiveMsgPipe'
c&#58;/pspsdk/psp/lib\libc.a&#40;_close.o&#41;&#58; In function `_close'&#58;
&#58; undefined reference to `sceIoClose'
c&#58;/pspsdk/psp/lib\libc.a&#40;_fstat.o&#41;&#58; In function `_fstat'&#58;
&#58; undefined reference to `sceIoLseek'
c&#58;/pspsdk/psp/lib\libc.a&#40;_fstat.o&#41;&#58; In function `_fstat'&#58;
&#58; undefined reference to `sceIoLseek'
c&#58;/pspsdk/psp/lib\libc.a&#40;_fstat.o&#41;&#58; In function `_fstat'&#58;
&#58; undefined reference to `sceIoLseek'
c&#58;/pspsdk/psp/lib\libc.a&#40;_lseek.o&#41;&#58; In function `_lseek'&#58;
&#58; undefined reference to `sceIoLseek'
c&#58;/pspsdk/psp/lib\libc.a&#40;_read.o&#41;&#58; In function `_read'&#58;
&#58; undefined reference to `sceIoRead'
c&#58;/pspsdk/psp/lib\libc.a&#40;_stat.o&#41;&#58; In function `_stat'&#58;
&#58; undefined reference to `sceIoGetstat'
collect2&#58; ld returned 1 exit status
configure&#58;2201&#58; $? = 1
configure&#58; failed program was&#58;
| /* 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 &#40;&#41;
| &#123;
| 
|   ;
|   return 0;
| &#125;
configure&#58;2240&#58; error&#58; 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&#58;/pspsdk/psp/lib -Lc&#58;/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='$&#123;SHELL&#125; /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run aclocal-1.9'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$&#123;SHELL&#125; /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run tar'
AR=''
AS=''
AUTOCONF='$&#123;SHELL&#125; /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run autoconf'
AUTOHEADER='$&#123;SHELL&#125; /home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/missing --run autoheader'
AUTOMAKE='$&#123;SHELL&#125; /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='$&#123;INSTALL&#125; -m 644'
INSTALL_PROGRAM='$&#123;INSTALL&#125;'
INSTALL_SCRIPT='$&#123;INSTALL&#125;'
INSTALL_STRIP_PROGRAM='$&#123;SHELL&#125; $&#40;install_sh&#41; -c -s'
LDFLAGS='-Lc&#58;/pspsdk/psp/lib -Lc&#58;/pspsdk/psp/sdk/lib -lc -lpspuser'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='$&#123;SHELL&#125; /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='&#58;'
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='$&#123;AMTAR&#125; chof - "$$tardir"'
am__untar='$&#123;AMTAR&#125; xf -'
bindir='$&#123;exec_prefix&#125;/bin'
build='i686-pc-mingw32'
build_alias=''
build_cpu='i686'
build_os='mingw32'
build_vendor='pc'
datadir='$&#123;prefix&#125;/share'
exec_prefix='NONE'
host='mipsallegrexel-psp-elf'
host_alias='psp'
host_cpu='mipsallegrexel'
host_os='elf'
host_vendor='psp'
includedir='$&#123;prefix&#125;/include'
infodir='$&#123;prefix&#125;/info'
install_sh='/home/Paulo/psptoolchain/devpaks/024_cal3D/cal3D/install-sh'
libdir='$&#123;exec_prefix&#125;/lib'
libexecdir='$&#123;exec_prefix&#125;/libexec'
localstatedir='$&#123;prefix&#125;/var'
mandir='$&#123;prefix&#125;/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='c&#58;/pspsdk/psp'
program_transform_name='s,x,x,'
sbindir='$&#123;exec_prefix&#125;/sbin'
sharedstatedir='$&#123;prefix&#125;/com'
sysconfdir='$&#123;prefix&#125;/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&#58; exit 77
zilt
Posts: 45
Joined: Tue Feb 21, 2006 11:59 pm
Location: Ontario, Canada
Contact:

Post by zilt »

I'll have to update the readme. Use the following:

Code: Select all

 LDFLAGS="-L$&#40;psp-config --psp-prefix&#41;/lib -L$&#40;psp-config --pspsdk-path&#41;/lib"   LIBS="-lc -lstdc++ -lpsplibc -lpspuser"   ./configure --host=psp --disable-shared --prefix=$&#40;psp-config --psp-prefix&#41;
That builds for me. I've got a bunch of psp specific GU changes that need to go in one day. I'll try and do that in a week or so.
"We are dreamers, shapers, singers, and makers. We study the mysteries of laser and circuit, crystal and scanner, holographic demons and invocations of equations. These are the tools we employ and we know... many things." -- Elric, B5
Heimdall
Posts: 245
Joined: Thu Nov 10, 2005 1:29 am
Location: Netherlands
Contact:

Post by Heimdall »

It works! :) Thanks! i was really blind! it's c++ so i need libstdc++ because we link with gcc!

Thanks a lot!
Post Reply