Lua and SDL_main problem

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

Moderators: cheriff, TyRaNiD

Post Reply
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Lua and SDL_main problem

Post by gambiting »

Hi! I think I'm very close to port Xmoto,I've already solved damn C functions problems,but now I get those:

Code: Select all

gambiting@debian:~/xmoto-psp/xmoto-0.2.7/src$ make
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o BuiltInFont.o BuiltInFont.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o Image.o Image.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VApp.o VApp.cpp
./MotoGame.h:101: warning: ‘class vapp::MotoGameHooks’ has virtual functions but non-virtual destructor
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VBezier.o VBezier.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VDraw.o VDraw.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VDrawOpenGL.o VDrawOpenGL.cpp
VDrawOpenGL.cpp: In member function ‘virtual void vapp::DrawLibOpenGL::startDraw(vapp::DrawMode)’:
VDrawOpenGL.cpp:360: warning: enumeration value ‘DRAW_MODE_NONE’ not handled in switch
VDrawOpenGL.cpp: In member function ‘virtual void vapp::DrawLibOpenGL::setBlendMode(vapp::BlendMode)’:
VDrawOpenGL.cpp:416: warning: converting to non-pointer type ‘int’ from NULL
VDrawOpenGL.cpp:416: warning: NULL used in arithmetic
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o PolyDraw.o PolyDraw.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VDrawSDLgfx.o VDrawSDLgfx.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VTexture.o VTexture.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o VXml.o VXml.cpp
VXml.cpp: In static member function ‘static std::string vapp::XML::str2xmlstr(std::string)’:
VXml.cpp:82: warning: comparison between signed and unsigned integer expressions
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/Level.o xmscene/Level.cpp
xmscene/../MotoGame.h:101: warning: ‘class vapp::MotoGameHooks’ has virtual functions but non-virtual destructor
xmscene/Level.cpp: In member function ‘void Level::loadXML()’:
xmscene/Level.cpp:715: warning: comparison between signed and unsigned integer expressions
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/Zone.o xmscene/Zone.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/Block.o xmscene/Block.cpp
xmscene/../xmscene/../MotoGame.h:101: warning: ‘class vapp::MotoGameHooks’ has virtual functions but non-virtual destructor
xmscene/Block.cpp: In member function ‘AABB& Block::getAABB()’:
xmscene/Block.cpp:338: warning: comparison between signed and unsigned integer expressions
xmscene/Block.cpp: In static member function ‘static Block* Block::readFromXml(vapp::XMLDocument&, TiXmlElement*)’:
xmscene/Block.cpp:456: warning: format ‘%f’ expects type ‘double’, but argument 4 has type ‘int’
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/Entity.o xmscene/Entity.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/SkyApparence.o xmscene/SkyApparence.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/BikeController.o xmscene/BikeController.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/BikeParameters.o xmscene/BikeParameters.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/BikeAnchors.o xmscene/BikeAnchors.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o xmscene/Bike.o xmscene/Bike.cpp
xmscene/../MotoGame.h:101: warning: ‘class vapp::MotoGameHooks’ has virtual functions but non-virtual destructor
xmscene/Bike.cpp: In member function ‘void Ghost::initLastToTakeEntities(Level*)’:
xmscene/Bike.cpp:109: warning: comparison between signed and unsigned integer expressions
xmscene/Bike.cpp&#58; In member function ‘void Ghost&#58;&#58;updateDiffToPlayer&#40;std&#58;&#58;vector<float, std&#58;&#58;allocator<float> >&&#41;’&#58;
xmscene/Bike.cpp&#58;126&#58; warning&#58; unused variable ‘v_n’
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o image/tim.o image/tim.cpp
image/tim.cpp&#58; In function ‘int tim_get_bytes_per_pixel&#40;tim_pixel_type_t&#41;’&#58;
image/tim.cpp&#58;332&#58; warning&#58; enumeration value ‘TIM_PT_UNKNOWN’ not handled in switch
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o image/tim_io_stdio.o image/tim_io_stdio.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o image/tim_memory_crt.o image/tim_memory_crt.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o image/tim_png.o image/tim_png.cpp
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -D_PSP_FW_VERSION=150   -c -o md5sum/md5.o md5sum/md5.c
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o md5sum/md5file.o md5sum/md5file.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o helpers/VMath.o helpers/VMath.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o helpers/SwapEndian.o helpers/SwapEndian.cpp
./MotoGame.h&#58;101&#58; warning&#58; ‘class vapp&#58;&#58;MotoGameHooks’ has virtual functions but non-virtual destructor
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o helpers/FileCompression.o helpers/FileCompression.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o helpers/Color.o helpers/Color.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o tinyxml/tinystr.o tinyxml/tinystr.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o tinyxml/tinyxml.o tinyxml/tinyxml.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o tinyxml/tinyxmlerror.o tinyxml/tinyxmlerror.cpp
psp-g++ -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -I/usr/local/pspdev/psp/include/SDL -Dmain=SDL_main -g -O2 -Wall -fno-exceptions -fexceptions   -c -o tinyxml/tinyxmlparser.o tinyxml/tinyxmlparser.cpp
psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk/include -G0 -O2 -Wall -D_PSP_FW_VERSION=150  -L. -L/usr/local/pspdev/psp/sdk/lib   GameMain.o BuiltInFont.o Image.o VApp.o VBezier.o VDraw.o VDrawOpenGL.o PolyDraw.o VDrawSDLgfx.o VFileIO.o VTexture.o VXml.o DBuffer.o CRCHash.o Theme.o WWW.o Locales.o Packager.o BSP.o Game.o GameMenus.o GUIBestTimes.o GUIButton.o GUI.o GUIFrame.o GUIList.o GUIStatic.o GUITabView.o MotoGame.o MotoGameL.o MPhysics.o PlayerData.o Renderer.o RendererInit.o Replay.o Sound.o UserConfig.o GUIXMoto.o RendererParticles.o RendererBike.o Input.o GameSerializer.o Collision.o GUIEdit.o RendererFBO.o ReplayList.o Stats.o ScriptDynamicObjects.o SomersaultCounter.o GameEvents.o Credits.o GameInit.o GameDrawFrame.o LevelsManager.o xmscene/Level.o xmscene/Zone.o xmscene/Block.o xmscene/Entity.o xmscene/SkyApparence.o xmscene/BikeController.o xmscene/BikeParameters.o xmscene/BikeAnchors.o xmscene/Bike.o image/tim.o image/tim_io_stdio.o image/tim_jpeg.o image/tim_memory_crt.o image/tim_png.o md5sum/md5.o md5sum/md5file.o helpers/VMath.o helpers/SwapEndian.o helpers/FileCompression.o helpers/Color.o tinyxml/tinystr.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o -lSDL -lSDLmain -lSDL_gfx -lSDL_mixer -lSDL_image -L/usr/local/pspdev/psp/lib -lSDLmain -lSDL -lm -lGL -lpspvfpu -L/usr/local/pspdev/psp/sdk/lib -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lstdc++ -llua -lc -lbz2 -lglut -lGLU -lGL -lode -lpng -ljpeg -lz -lpsprtc  -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspaudio -lpspuser -lpspkernel -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpspuser -lpspkernel -lm -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o Xmoto.elf
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;126&#58; undefined reference to `luaL_openlib'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;600&#58; undefined reference to `luaL_newstate'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;601&#58; undefined reference to `luaopen_base'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;602&#58; undefined reference to `luaopen_math'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;603&#58; undefined reference to `luaopen_table'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;693&#58; undefined reference to `luaL_loadbuffer'
MotoGame.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp&#58;677&#58; undefined reference to `luaL_loadbuffer'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;54&#58; undefined reference to `luaL_typerror'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;360&#58; undefined reference to `luaL_checklstring'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;73&#58; undefined reference to `luaL_checklstring'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;122&#58; undefined reference to `luaL_checklstring'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;130&#58; undefined reference to `luaL_checklstring'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;140&#58; undefined reference to `luaL_checklstring'
MotoGameL.o&#58;/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp&#58;148&#58; more undefined references to `luaL_checklstring' follow
/usr/local/pspdev/psp/lib/libSDLmain.a&#40;SDL_psp_main.o&#41;&#58; In function `main'&#58;
psp/SDL_psp_main.c&#58;178&#58; undefined reference to `SDL_main'
/usr/local/pspdev/psp/lib/libode.a&#40;collision_trimesh_trimesh.o&#41;&#58; In function `dCollideTTL&#40;dxGeom*, dxGeom*, int, dContactGeom*, int&#41;'&#58;
ode/src/collision_trimesh_trimesh.cpp&#58;145&#58; undefined reference to `__cxa_guard_acquire'
ode/src/collision_trimesh_trimesh.cpp&#58;145&#58; undefined reference to `__cxa_guard_release'
/usr/local/pspdev/psp/sdk/lib/libpng.a&#40;pngwrite.o&#41;&#58; In function `png_convert_from_time_t'&#58;
pngwrite.c&#58;&#40;.text+0xac4&#41;&#58; undefined reference to `gmtime'
collect2&#58; ld returned 1 exit status
make&#58; *** &#91;Xmoto.elf&#93; Error 1
That's kinda strange as I include -llua and -lSDL_main libriaries in my makefile.Here it's:

Code: Select all

TARGET = Xmoto
PSPSDK = $&#40;shell psp-config --pspsdk-path&#41;

########## Added ###############
PSPBIN = $&#40;PSPSDK&#41;/../bin
################################

SDL_CONFIG = $&#40;PSPBIN&#41;/sdl-config

O = o
OBJEXT = o

########## Updated ###############
DEFAULT_CFLAGS = $&#40;shell $&#40;PSPBIN&#41;/sdl-config --cflags&#41;
##################################

MORE_CFLAGS = -g -O2 -Wall

CFLAGS = $&#40;DEFAULT_CFLAGS&#41; $&#40;MORE_CFLAGS&#41; -O2 -G0 -I../include -I. -I../uae_cpu

CXXFLAGS = $&#40;DEFAULT_CFLAGS&#41; $&#40;MORE_CFLAGS&#41; -fno-exceptions -fexceptions
INCDIR =
USE_PSPSDK_LIBC = 1
CFLAGS = -G0 -O2 -Wall
ASFLAGS = $&#40;CFLAGS&#41;

########## Added ###############
DEFAULT_LIBS =  -lSDL -lSDLmain -lSDL_gfx -lSDL_mixer -lSDL_image $&#40;shell $&#40;PSPBIN&#41;/sdl-config --libs&#41;
################################

LIBS =  $&#40;DEFAULT_LIBS&#41; -lstdc++ -llua -lc -lbz2 -lglut -lGLU -lGL -lode \
 -lpng -ljpeg -lz -lpsprtc  -lpspdebug -lpspgu -lpspctrl \
-lpspge -lpspdisplay -lpsphprm -lpspaudio -lpspuser -lpspkernel -lpspdebug -lpspdisplay \
-lpspge -lpspctrl -lpspsdk -lpspuser -lpspkernel -lm
OBJS =  GameMain.$&#40;OBJEXT&#41;  BuiltInFont.$&#40;OBJEXT&#41; Image.$&#40;OBJEXT&#41; VApp.$&#40;OBJEXT&#41; \
   VBezier.$&#40;OBJEXT&#41; VDraw.$&#40;OBJEXT&#41; VDrawOpenGL.$&#40;OBJEXT&#41; \
   PolyDraw.$&#40;OBJEXT&#41; VDrawSDLgfx.$&#40;OBJEXT&#41; VFileIO.$&#40;OBJEXT&#41; \
   VTexture.$&#40;OBJEXT&#41; VXml.$&#40;OBJEXT&#41; \
   DBuffer.$&#40;OBJEXT&#41; CRCHash.$&#40;OBJEXT&#41; Theme.$&#40;OBJEXT&#41; \
   WWW.$&#40;OBJEXT&#41; Locales.$&#40;OBJEXT&#41; Packager.$&#40;OBJEXT&#41; \
   BSP.$&#40;OBJEXT&#41; Game.$&#40;OBJEXT&#41; \
   GameMenus.$&#40;OBJEXT&#41; GUIBestTimes.$&#40;OBJEXT&#41; \
   GUIButton.$&#40;OBJEXT&#41; GUI.$&#40;OBJEXT&#41; GUIFrame.$&#40;OBJEXT&#41; \
   GUIList.$&#40;OBJEXT&#41; GUIStatic.$&#40;OBJEXT&#41; GUITabView.$&#40;OBJEXT&#41; \
   MotoGame.$&#40;OBJEXT&#41; MotoGameL.$&#40;OBJEXT&#41; MPhysics.$&#40;OBJEXT&#41; \
   PlayerData.$&#40;OBJEXT&#41; Renderer.$&#40;OBJEXT&#41; RendererInit.$&#40;OBJEXT&#41; \
   Replay.$&#40;OBJEXT&#41; Sound.$&#40;OBJEXT&#41; UserConfig.$&#40;OBJEXT&#41; \
   GUIXMoto.$&#40;OBJEXT&#41; RendererParticles.$&#40;OBJEXT&#41; \
   RendererBike.$&#40;OBJEXT&#41; Input.$&#40;OBJEXT&#41; \
   GameSerializer.$&#40;OBJEXT&#41; Collision.$&#40;OBJEXT&#41; GUIEdit.$&#40;OBJEXT&#41; \
   RendererFBO.$&#40;OBJEXT&#41; ReplayList.$&#40;OBJEXT&#41; Stats.$&#40;OBJEXT&#41; \
   ScriptDynamicObjects.$&#40;OBJEXT&#41; SomersaultCounter.$&#40;OBJEXT&#41; \
   GameEvents.$&#40;OBJEXT&#41; Credits.$&#40;OBJEXT&#41; GameInit.$&#40;OBJEXT&#41; \
   GameDrawFrame.$&#40;OBJEXT&#41; LevelsManager.$&#40;OBJEXT&#41;\
   xmscene/Level.$&#40;OBJEXT&#41; xmscene/Zone.$&#40;OBJEXT&#41; \
xmscene/Block.$&#40;OBJEXT&#41;\
	xmscene/Entity.$&#40;OBJEXT&#41;\
	xmscene/SkyApparence.$&#40;OBJEXT&#41;\
	xmscene/BikeController.$&#40;OBJEXT&#41; \
	xmscene/BikeParameters.$&#40;OBJEXT&#41; \
	xmscene/BikeAnchors.$&#40;OBJEXT&#41; xmscene/Bike.$&#40;OBJEXT&#41; \
image/tim.$&#40;OBJEXT&#41; image/tim_io_stdio.$&#40;OBJEXT&#41; \
  image/tim_jpeg.$&#40;OBJEXT&#41; image/tim_memory_crt.$&#40;OBJEXT&#41; \
  image/tim_png.$&#40;OBJEXT&#41; \
 md5sum/md5.$&#40;OBJEXT&#41; \
 md5sum/md5file.$&#40;OBJEXT&#41; \
helpers/VMath.$&#40;OBJEXT&#41;           \
helpers/SwapEndian.$&#40;OBJEXT&#41;      \
helpers/FileCompression.$&#40;OBJEXT&#41; \
helpers/Color.$&#40;OBJEXT&#41;           \
BuiltInFont.$&#40;OBJEXT&#41; Image.$&#40;OBJEXT&#41; \
  VApp.$&#40;OBJEXT&#41; VBezier.$&#40;OBJEXT&#41; VDraw.$&#40;OBJEXT&#41; VDrawOpenGL.$&#40;OBJEXT&#41; PolyDraw.$&#40;OBJEXT&#41; VDrawSDLgfx.$&#40;OBJEXT&#41; \
 VXml.$&#40;OBJEXT&#41; \
  VFileIO.$&#40;OBJEXT&#41; VTexture.$&#40;OBJEXT&#41; \
  tinyxml/tinystr.$&#40;OBJEXT&#41; tinyxml/tinyxml.$&#40;OBJEXT&#41; \
  tinyxml/tinyxmlerror.$&#40;OBJEXT&#41; tinyxml/tinyxmlparser.$&#40;OBJEXT&#41; 
 
EXTRA_TARGETS = EBOOT.PBP

include $&#40;PSPSDK&#41;/lib/build.mak 
I'm working on it too long....please help so I could finish this.Thanks!
Insert_witty_name
Posts: 376
Joined: Wed May 10, 2006 11:31 pm

Post by Insert_witty_name »

Try linking -llualib as well to remove the Lua error.

Code: Select all

-llua -llualib
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

Ok,that removed lua problems,but what about "undefined reference to `SDL_main'" ? As you can see I include -lSDL_main so it should not occur.Thanks.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

This is a faq, search the forums for sdl_main or read the README.PSP that came with SDL.
gambiting
Posts: 154
Joined: Thu Aug 17, 2006 5:39 pm

Post by gambiting »

Yeah it was simple - just had to add

Code: Select all

 extern "C" int SDL_main&#40;int nNumArgs,char **ppcArgs&#41; ;
and it's solved.But what about

Code: Select all

ode/src/collision_trimesh_trimesh.cpp&#58;145&#58; undefined reference to `__cxa_guard_acquire'
ode/src/collision_trimesh_trimesh.cpp&#58;145&#58; undefined reference to `__cxa_guard_release'
When I looked into collision_trimesh_trimesh.cpp file,there is not such function in line 145!What's more,there is no such thing in whole file.I guess that ode libriary for psp just misses some functions,am I right?[/code]
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

You could probably compile with -fno-threadsafe-statics, or maybe link against libsupc++, or link c++ code properly with g++ instead of gcc.
Post Reply