forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lua and SDL_main problem

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sat Jun 09, 2007 7:03 am    Post subject: Lua and SDL_main problem Reply with quote

Hi! I think I'm very close to port Xmoto,I've already solved damn C functions problems,but now I get those:
Code:
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: In member function ‘void Ghost::updateDiffToPlayer(std::vector<float, std::allocator<float> >&)’:
xmscene/Bike.cpp:126: warning: 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: In function ‘int tim_get_bytes_per_pixel(tim_pixel_type_t)’:
image/tim.cpp:332: warning: 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: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 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:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:126: undefined reference to `luaL_openlib'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:600: undefined reference to `luaL_newstate'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:601: undefined reference to `luaopen_base'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:602: undefined reference to `luaopen_math'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:603: undefined reference to `luaopen_table'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:693: undefined reference to `luaL_loadbuffer'
MotoGame.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGame.cpp:677: undefined reference to `luaL_loadbuffer'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:54: undefined reference to `luaL_typerror'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:360: undefined reference to `luaL_checklstring'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:73: undefined reference to `luaL_checklstring'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:122: undefined reference to `luaL_checklstring'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:130: undefined reference to `luaL_checklstring'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:140: undefined reference to `luaL_checklstring'
MotoGameL.o:/home/gambiting/xmoto-psp/xmoto-0.2.7/src/MotoGameL.cpp:148: more undefined references to `luaL_checklstring' follow
/usr/local/pspdev/psp/lib/libSDLmain.a(SDL_psp_main.o): In function `main':
psp/SDL_psp_main.c:178: undefined reference to `SDL_main'
/usr/local/pspdev/psp/lib/libode.a(collision_trimesh_trimesh.o): In function `dCollideTTL(dxGeom*, dxGeom*, int, dContactGeom*, int)':
ode/src/collision_trimesh_trimesh.cpp:145: undefined reference to `__cxa_guard_acquire'
ode/src/collision_trimesh_trimesh.cpp:145: undefined reference to `__cxa_guard_release'
/usr/local/pspdev/psp/sdk/lib/libpng.a(pngwrite.o): In function `png_convert_from_time_t':
pngwrite.c:(.text+0xac4): undefined reference to `gmtime'
collect2: ld returned 1 exit status
make: *** [Xmoto.elf] Error 1
That's kinda strange as I include -llua and -lSDL_main libriaries in my makefile.Here it's:
Code:
TARGET = Xmoto
PSPSDK = $(shell psp-config --pspsdk-path)

########## Added ###############
PSPBIN = $(PSPSDK)/../bin
################################

SDL_CONFIG = $(PSPBIN)/sdl-config

O = o
OBJEXT = o

########## Updated ###############
DEFAULT_CFLAGS = $(shell $(PSPBIN)/sdl-config --cflags)
##################################

MORE_CFLAGS = -g -O2 -Wall

CFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -O2 -G0 -I../include -I. -I../uae_cpu

CXXFLAGS = $(DEFAULT_CFLAGS) $(MORE_CFLAGS) -fno-exceptions -fexceptions
INCDIR =
USE_PSPSDK_LIBC = 1
CFLAGS = -G0 -O2 -Wall
ASFLAGS = $(CFLAGS)

########## Added ###############
DEFAULT_LIBS =  -lSDL -lSDLmain -lSDL_gfx -lSDL_mixer -lSDL_image $(shell $(PSPBIN)/sdl-config --libs)
################################

LIBS =  $(DEFAULT_LIBS) -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.$(OBJEXT)  BuiltInFont.$(OBJEXT) Image.$(OBJEXT) VApp.$(OBJEXT) \
   VBezier.$(OBJEXT) VDraw.$(OBJEXT) VDrawOpenGL.$(OBJEXT) \
   PolyDraw.$(OBJEXT) VDrawSDLgfx.$(OBJEXT) VFileIO.$(OBJEXT) \
   VTexture.$(OBJEXT) VXml.$(OBJEXT) \
   DBuffer.$(OBJEXT) CRCHash.$(OBJEXT) Theme.$(OBJEXT) \
   WWW.$(OBJEXT) Locales.$(OBJEXT) Packager.$(OBJEXT) \
   BSP.$(OBJEXT) Game.$(OBJEXT) \
   GameMenus.$(OBJEXT) GUIBestTimes.$(OBJEXT) \
   GUIButton.$(OBJEXT) GUI.$(OBJEXT) GUIFrame.$(OBJEXT) \
   GUIList.$(OBJEXT) GUIStatic.$(OBJEXT) GUITabView.$(OBJEXT) \
   MotoGame.$(OBJEXT) MotoGameL.$(OBJEXT) MPhysics.$(OBJEXT) \
   PlayerData.$(OBJEXT) Renderer.$(OBJEXT) RendererInit.$(OBJEXT) \
   Replay.$(OBJEXT) Sound.$(OBJEXT) UserConfig.$(OBJEXT) \
   GUIXMoto.$(OBJEXT) RendererParticles.$(OBJEXT) \
   RendererBike.$(OBJEXT) Input.$(OBJEXT) \
   GameSerializer.$(OBJEXT) Collision.$(OBJEXT) GUIEdit.$(OBJEXT) \
   RendererFBO.$(OBJEXT) ReplayList.$(OBJEXT) Stats.$(OBJEXT) \
   ScriptDynamicObjects.$(OBJEXT) SomersaultCounter.$(OBJEXT) \
   GameEvents.$(OBJEXT) Credits.$(OBJEXT) GameInit.$(OBJEXT) \
   GameDrawFrame.$(OBJEXT) LevelsManager.$(OBJEXT)\
   xmscene/Level.$(OBJEXT) xmscene/Zone.$(OBJEXT) \
xmscene/Block.$(OBJEXT)\
   xmscene/Entity.$(OBJEXT)\
   xmscene/SkyApparence.$(OBJEXT)\
   xmscene/BikeController.$(OBJEXT) \
   xmscene/BikeParameters.$(OBJEXT) \
   xmscene/BikeAnchors.$(OBJEXT) xmscene/Bike.$(OBJEXT) \
image/tim.$(OBJEXT) image/tim_io_stdio.$(OBJEXT) \
  image/tim_jpeg.$(OBJEXT) image/tim_memory_crt.$(OBJEXT) \
  image/tim_png.$(OBJEXT) \
 md5sum/md5.$(OBJEXT) \
 md5sum/md5file.$(OBJEXT) \
helpers/VMath.$(OBJEXT)           \
helpers/SwapEndian.$(OBJEXT)      \
helpers/FileCompression.$(OBJEXT) \
helpers/Color.$(OBJEXT)           \
BuiltInFont.$(OBJEXT) Image.$(OBJEXT) \
  VApp.$(OBJEXT) VBezier.$(OBJEXT) VDraw.$(OBJEXT) VDrawOpenGL.$(OBJEXT) PolyDraw.$(OBJEXT) VDrawSDLgfx.$(OBJEXT) \
 VXml.$(OBJEXT) \
  VFileIO.$(OBJEXT) VTexture.$(OBJEXT) \
  tinyxml/tinystr.$(OBJEXT) tinyxml/tinyxml.$(OBJEXT) \
  tinyxml/tinyxmlerror.$(OBJEXT) tinyxml/tinyxmlparser.$(OBJEXT)
 
EXTRA_TARGETS = EBOOT.PBP

include $(PSPSDK)/lib/build.mak
I'm working on it too long....please help so I could finish this.Thanks!
Back to top
View user's profile Send private message
Insert_witty_name



Joined: 10 May 2006
Posts: 376

PostPosted: Sat Jun 09, 2007 7:11 am    Post subject: Reply with quote

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

Code:
-llua -llualib
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sat Jun 09, 2007 7:24 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Jun 09, 2007 2:06 pm    Post subject: Reply with quote

This is a faq, search the forums for sdl_main or read the README.PSP that came with SDL.
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sat Jun 09, 2007 5:16 pm    Post subject: Reply with quote

Yeah it was simple - just had to add
Code:
 extern "C" int SDL_main(int nNumArgs,char **ppcArgs) ;
and it's solved.But what about
Code:
ode/src/collision_trimesh_trimesh.cpp:145: undefined reference to `__cxa_guard_acquire'
ode/src/collision_trimesh_trimesh.cpp:145: 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]
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Sat Jun 09, 2007 10:33 pm    Post subject: Reply with quote

You could probably compile with -fno-threadsafe-statics, or maybe link against libsupc++, or link c++ code properly with g++ instead of gcc.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group