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: 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
Code: Select all
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