Forum: PS2 Homebrew/Dev & Emu Scene - Topics relating to homebrew PS2 development and emulation. Stay current and up to date on the latest homebrew releases from the best devs on the scene.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Need help building my game on PS2
  

Results 1 to 2 of 2
  1. #1 Exclamation Need help building my game on PS2 
    protomank is offline Member
    Join Date
    Mar 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    210
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    5
    I'm trying to compile Rockbot (Rockbot » sidescroller game engine) for PS2. I had it building some time ago, but then I ported it to C++ and now I have several issues on linker or, if uncluding stlport, with _threads.h.

    Without stlport:
    Code:
    iuri@lifestream:/arquivos/programas/devel/rockbot/v1/build$ ee-g++ -mno-crt0 -T/usr/local/ps2dev/ps2sdk/ee/startup/linkfile -L/usr/local/ps2dev/ps2sdk/ee/lib  -o game.elf /usr/local/ps2dev/ps2sdk/ee/startup/crt0.o main.o character.o graphicslib.o inputlib.o game.o stage.o classmap.o classplayer.o timerlib.o sceneslib.o soundlib.o projectilelib.o classnpc.o stage_select.o class_config.o object.o class_colorcycle.o option_picker.o dialogs.o file_io.o classboss.o animation.o ending.o colision_detection.o ../ports/ps2/cdvd.s ../ports/ps2/usbd.s ../ports/ps2/usbhdfsd.s ../ports/ps2/SJPCM.s -L.  -L/usr/local/ps2dev/gsKit/lib -L../lib -L/usr/local/ps2dev/ps2sdk/ports/lib -lc -lSDL_image -ljpeg -ltiff -lpng -lz -lm -lcdvd -ldebug -lSDL_ttf -lsdlmixer -lfreetype -lm -lcdvd -lsdl -lc -lm -lc -lsyscall -lkernel -lc -lkernel -lstlport
    character.o(.gnu.linkonce.t._ZNSt6vectorIP10projectileSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0xc0): In function `character::character[not-in-charge]()':
    ../character.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    character.o(.gnu.linkonce.t._ZNSt6vectorIP10projectileSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x20c): In function `character::character[in-charge]()':
    ../character.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    character.o(.gnu.linkonce.t._ZNSt6vectorIP10projectileSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x214):../character.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    character.o(.gnu.linkonce.t._ZNSt6vectorIP10projectileSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x218):../character.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    character.o(.gnu.linkonce.t._ZNSt6vectorIP10projectileSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x230):../character.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    graphicslib.o(.text+0x778): In function `graphicsLib::graphicsLib[not-in-charge]()':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    graphicslib.o(.text+0x1d48): In function `graphicsLib::initGraphics()':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.text+0x2090): In function `graphicsLib::SDLSurfaceFromFile(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.text+0x2d70): In function `graphicsLib::draw_progressive_text(short, short, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    graphicslib.o(.text+0x2de8):../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.text+0x30a0): In function `graphicsLib::draw_text(short, short, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.text+0x3178): In function `graphicsLib::draw_text(short, short, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphicsLib_gSurface&)':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.text+0x3314): In function `graphicsLib::draw_centered_text(short, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, graphicsLib_gSurface&)':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    graphicslib.o(.gnu.linkonce.t._ZNSs15_M_replace_safeIPKcEERSsN9__gnu_cxx17__normal_iteratorIPcSsEES6_T_S7_+0x4): In function `graphicsLib::graphicsLib[not-in-charge]()':
    ../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    graphicslib.o(.gnu.linkonce.t._ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag+0x54):../graphicslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    game.o(.text+0x2834): In function `game::fps_count()':
    ../game.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    game.o(.text+0x28c0):../game.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    stage.o(.gnu.linkonce.t._ZNSt6vectorIP9characterSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0xc0): In function `stage::stage[not-in-charge](int, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, object, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, object> > >&, std::vector<classPlayer, std::allocator<classPlayer> >&)':
    ../stage.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    stage.o(.gnu.linkonce.t._ZNSt6vectorIP9characterSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x20c): In function `stage::stage[in-charge](int, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, object, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, object> > >&, std::vector<classPlayer, std::allocator<classPlayer> >&)':
    ../stage.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    stage.o(.gnu.linkonce.t._ZNSt6vectorIP9characterSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x214): In function `stage::~stage [not-in-charge]()':
    ../stage.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    stage.o(.gnu.linkonce.t._ZNSt6vectorIP9characterSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x218):../stage.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    stage.o(.gnu.linkonce.t._ZNSt6vectorIP9characterSaIS1_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS1_S3_EERKS1_+0x230):../stage.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    sceneslib.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs+0x128): In function `scenesLib::preloadScenes()':
    ../sceneslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    sceneslib.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs+0x2ac): In function `scenesLib::preload_intro()':
    ../sceneslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    sceneslib.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs+0x2b4):../sceneslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    sceneslib.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs+0x2b8):../sceneslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    sceneslib.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPSsS1_EERKSs+0x2d0):../sceneslib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::__default_alloc_template<(bool)1, (int)0>::_S_force_new
    soundlib.o(.text+0x308): In function `soundLib::load_all_sfx()':
    ../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x3a0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x430):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x4c0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x550):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x5e0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x670):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x700):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x790):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x820):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x8b0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x940):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x9d0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xa60):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xaf0):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xb80):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xc10):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xc8c):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xd10):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xd94):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xe18):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0xe9c):../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x1388): In function `soundLib::load_sfx(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Mix_Chunk*)':
    ../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x1640): In function `soundLib::load_music(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    ../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    soundlib.o(.text+0x18cc): In function `soundLib::load_boss_music(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
    ../soundlib.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    classnpc.o(.text+0x710): In function `classnpc::build_basic_npc(int, int, int)':
    ../classnpc.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    classnpc.o(.text+0x788):../classnpc.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    dialogs.o(.text+0xd4): In function `dialogs::dialogs[not-in-charge]()':
    ../scenes/dialogs.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    dialogs.o(.text+0x148):../scenes/dialogs.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x118): In function `file_io::write_game(format_v2_0::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x594): In function `file_io::read_game(format_v2_0::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x9cc): In function `format_v_2_0_1::file_io::write_game(format_v_2_0_1::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0xdd4): In function `format_v_2_0_1::file_io::read_game(format_v_2_0_1::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x11ac): In function `format_v_2_0_1::file_io::save_exists()':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x15cc): In function `format_v_2_0_1::file_io::read_save(format_v_2_0_1::st_save&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x19ac): In function `format_v_2_0_1::file_io::write_save(format_v_2_0_1::st_save&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x1d9c): In function `format_v_2_0_2::file_io::write_game(format_v_2_0_2::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x217c): In function `format_v_2_0_2::file_io::read_game(format_v_2_0_2::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x256c): In function `format_v_2_0_3::file_io::write_game(format_v_2_0_3::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    file_io.o(.text+0x294c): In function `format_v_2_0_3::file_io::read_game(format_v_2_0_3::file_game&)':
    ../file/file_io.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    ending.o(.text+0x18a4): In function `ending::boss()':
    ../scenes/ending.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_max_size
    ending.o(.text+0x1918):../scenes/ending.cpp: relocation truncated to fit: R_MIPS_GPREL16 std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_terminal
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x178):../../../../libstdc++-v3/libsupc++/new:89: undefined reference to `_impure_ptr'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x180):../../../../libstdc++-v3/libsupc++/new:89: undefined reference to `_impure_ptr'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x198):../../../../libstdc++-v3/libsupc++/new:89: undefined reference to `_impure_ptr'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x1a0):../../../../libstdc++-v3/libsupc++/new:89: undefined reference to `_impure_ptr'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x1bc):../../../../libstdc++-v3/libsupc++/new:89: undefined reference to `_impure_ptr'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ios.o)(.text+0x1c4):../../../../libstdc++-v3/libsupc++/new:89: more undefined references to `_impure_ptr' follow
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale.o)(.text+0x1440):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/bits/basic_string.h:781: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZNKSt8time_getIcSt19istreambuf_iteratorIcSt11char_traitsIcEEE14_M_extract_numERS3_S5_RiiijRKSt5ctypeIcERSt12_Ios_Iostate+0x1dc): In function `__static_initialization_and_destruction_0':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/bits/char_traits.h:123: undefined reference to `atoi'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIdEiPciPKcT_RKPii+0x34):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/c++locale.h:49: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIdEiPciPKcT_RKPii+0x74):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/bits/locale_facets.tcc:2021: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIdEiPciPKcT_RKPii+0xa0): In function `__static_initialization_and_destruction_0':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/c++locale.h:67: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIeEiPciPKcT_RKPii+0x34):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/c++locale.h:49: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIeEiPciPKcT_RKPii+0x74):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/bits/locale_facets.tcc:2021: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(locale-inst.o)(.gnu.linkonce.t._ZSt16__convert_from_vIeEiPciPKcT_RKPii+0xa0):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/c++locale.h:67: more undefined references to `setlocale' follow
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(stl-inst.o)(.gnu.linkonce.t._ZNSt24__default_alloc_templateILb1ELi0EE8allocateEj+0xf4):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/bits/stl_alloc.h:109: undefined reference to `__assert'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(stl-inst.o)(.gnu.linkonce.t._ZNSaIcE8allocateEjPKv+0x110):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/gthr-single.h:231: undefined reference to `__assert'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(collate_members.o)(.text+0xc):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/collate_members.cc:46: undefined reference to `strcoll'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(collate_members.o)(.text+0x40):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/collate_members.cc:54: undefined reference to `strxfrm'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(time_members.o)(.text+0x38):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/time_members.cc:47: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(time_members.o)(.text+0x50):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/time_members.cc:48: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(time_members.o)(.text+0x64):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/time_members.cc:49: undefined reference to `strftime'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(time_members.o)(.text+0x70):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/time_members.cc:50: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(basic_file.o)(.text+0x314):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/basic_file.cc:100: undefined reference to `setvbuf'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x1d4): In function `void std::__convert_to_v<long long>(char const*, long long&, std::_Ios_Iostate&, int* const&, int)':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:89: undefined reference to `strtoll'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x28c): In function `void std::__convert_to_v<unsigned long long>(char const*, unsigned long long&, std::_Ios_Iostate&, int* const&, int)':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:106: undefined reference to `strtoull'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x340): In function `void std::__convert_to_v<float>(char const*, float&, std::_Ios_Iostate&, int* const&, int)':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:123: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x35c):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:124: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x3c4):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:150: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x470): In function `void std::__convert_to_v<double>(char const*, double&, std::_Ios_Iostate&, int* const&, int)':
    /arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:163: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x48c):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:164: undefined reference to `setlocale'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(c++locale.o)(.text+0x4d8):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/src/c++locale.cc:172: more undefined references to `setlocale' follow
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ctype.o)(.text+0x0):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/ctype_noninline.h:38: undefined reference to `_ctype_'
    /usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libstdc++.a(ctype.o)(.text+0x8):/arquivos/programas/devel/SDK/PS2/ps2toolchain/build/gcc-3.2.2/build-ee-stage2/ee/libstdc++-v3/include/ee/bits/ctype_noninline.h:38: undefined reference to `_ctype_'
    With stlport:
    Code:
    ee-g++ -c -pipe -D_STLP_NO_NAMESPACES -D_NOTHREADS -D_STLP_NO_EXCEPTIONS -D_STLP_USE_NEWALLOC -D_STLP_HAS_WCHAR_T -D_STLP_NO_IOSTREAMS -Dwint_t=int -I/usr/local/ps2dev/ps2sdk/ports/include/stlport/ -Dwint_t=int -DPLAYSTATION=1 -DNUM=100 -DPLAYSTATION=1 -DNUM=100 -DUSE_RWOPS -I../include -I./include -I/usr/local/ps2dev/ps2sdk/ports/include/SDL -I/usr/local/ps2dev/ps2sdk/ports/include -I../common -I /usr/local/ps2dev/ps2sdk/ee/include -I /usr/local/ps2dev/ps2sdk/common/include -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG -I/usr/share/qt4/mkspecs/linux-g++ -I../../v1 -I/usr/include/qt4 -I. -I../../v1 -I. -o object.o ../objects/object.cpp
    In file included from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_alloc.h:64,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/memory:32,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_string.h:23,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/string:45,
                     from ../objects/object.h:4,
                     from ../objects/object.cpp:1:
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h: In member 
       function `void _STLP_mutex_nodemand::_M_acquire_lock()':
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:450: `
       _M_acquire_lock_nodemand' undeclared (first use this function)
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:450: (Each 
       undeclared identifier is reported only once for each function it appears 
       in.)
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h: In member 
       function `void _Refcount_Base::_M_incr()':
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:449: `void 
       _STLP_mutex_nodemand::_M_acquire_lock()' is private
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:580: within this 
       context
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h: In member 
       function `void _Refcount_Base::_M_decr()':
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:449: `void 
       _STLP_mutex_nodemand::_M_acquire_lock()' is private
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:585: within this 
       context
    In file included from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_alloc.h:64,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/memory:32,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_string.h:23,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/string:45,
                     from ../objects/object.h:4,
                     from ../objects/object.cpp:1:
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_threads.h:25:1: unterminated #ifndef
    In file included from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_string_io.c:9,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_string_io.h:119,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_string.h:1493,
                     from /usr/local/ps2dev/ps2sdk/ports/include/stlport/string:45,
                     from ../objects/object.h:4,
                     from ../objects/object.cpp:1:
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h: At global scope:
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:40: `_S' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:40: enumerator 
       value for `space' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: `_P' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: `_U' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: `_L' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: `_N' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: `_B' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:41: enumerator 
       value for `print' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:42: `_C' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:42: enumerator 
       value for `cntrl' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:43: `_U' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:43: enumerator 
       value for `upper' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:44: `_L' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:44: enumerator 
       value for `lower' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:45: `_U' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:45: `_L' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:45: enumerator 
       value for `alpha' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:46: `_N' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:46: enumerator 
       value for `digit' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:47: `_P' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:47: enumerator 
       value for `punct' not integer constant
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:48: `_N' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:48: `_X' was not 
       declared in this scope
    /usr/local/ps2dev/ps2sdk/ports/include/stlport/stl/_ctype.h:48: enumerator 
       value for `xdigit' not integer constant
    In file included from ../objects/object.h:6,
                     from ../objects/object.cpp:1:
    ../../v1/graphicslib.h:1: warning: ignoring #pragma GCC diagnostic
    In file included from ../../v1/graphicslib.h:19,
                     from ../objects/object.h:6,
                     from ../objects/object.cpp:1:
    ../../v1/class_colorcycle.h:41: syntax error before `;' token
    ../../v1/class_colorcycle.h: In constructor 
       `colorcycle_list::colorcycle_list()':
    ../../v1/class_colorcycle.h:43: `colors' undeclared (first use this function)
    ../../v1/class_colorcycle.h: At global scope:
    ../../v1/class_colorcycle.h:68: syntax error before `;' token
    In file included from ../../v1/file/format.h:12,
                     from ../../v1/graphicslib.h:20,
                     from ../objects/object.h:6,
                     from ../objects/object.cpp:1:
    ../../v1/file/v_1.h:67: 'st_items' is used as a type, but is not defined as a 
       type.
    ../../v1/file/v_1.h:141: syntax error before `[' token
    ../../v1/file/v_1.h:142: no type `string' in `std'
    ../../v1/file/v_1.h:142: parse error before `,' token
    ../../v1/file/v_1.h:145: `set_left' was not declared in this scope
    ../../v1/file/v_1.h:145: ISO C++ forbids declaration of `top_side' with no type
    ../../v1/file/v_1.h:145: ISO C++ forbids initialization of member `top_side'
    ../../v1/file/v_1.h:145: making `top_side' static
    ../../v1/file/v_1.h:145: ISO C++ forbids in-class initialization of non-const 
       static member `top_side'
    ../../v1/file/v_1.h:145: declaration of `int format_v1_0::st_dialog::top_side'
    ../../v1/file/v_1.h:140: conflicts with previous declaration `bool 
       format_v1_0::st_dialog::top_side'
    ../../v1/file/v_1.h:146: `line1' was not declared in this scope
    ../../v1/file/v_1.h:146: ISO C++ forbids declaration of `lines' with no type
    ../../v1/file/v_1.h:146: ISO C++ forbids initialization of member `lines'
    ../../v1/file/v_1.h:146: making `lines' static
    ../../v1/file/v_1.h:146: invalid in-class initialization of static data member 
       of non-integral type `int[0]'
    ../../v1/file/v_1.h:147: `line2' was not declared in this scope
    ../../v1/file/v_1.h:147: ISO C++ forbids declaration of `lines' with no type
    ../../v1/file/v_1.h:147: ISO C++ forbids initialization of member `lines'
    ../../v1/file/v_1.h:147: making `lines' static
    ../../v1/file/v_1.h:147: invalid in-class initialization of static data member 
       of non-integral type `int[1]'
    ../../v1/file/v_1.h:148: `line3' was not declared in this scope
    ../../v1/file/v_1.h:148: ISO C++ forbids declaration of `lines' with no type
    ../../v1/file/v_1.h:148: ISO C++ forbids initialization of member `lines'
    ../../v1/file/v_1.h:148: making `lines' static
    ../../v1/file/v_1.h:148: invalid in-class initialization of static data member 
       of non-integral type `int[2]'
    ../../v1/file/v_1.h:145: duplicate member `format_v1_0::st_dialog::top_side'
    ../../v1/file/v_1.h:150: parse error before `}' token
    ../../v1/file/v_1.h:269: `ANIM_STATES_N' was not declared in this scope
    ../../v1/file/v_1.h:269: confused by earlier errors, bailing out
    make: ** [object.o] Erro 1
    iuri@lifestream:/arquivos/programas/devel/rockbot/v1/build$

    I hope there is someone willing to help me. Thanks in advance.
    Reply With Quote  

  2. #2  
    protomank is offline Member
    Join Date
    Mar 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    210
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    5
    In case someone finda this post, ragnarok2040 answered me on forums.ps2dev.org (sadly I lost my account there right after this, as I tryied to change my email and the forum had an error sending email and my account there is now unactive):

    You need to rename or create a symlink to newlib's libc.a in ee/ee/lib to a different name than ps2sdk's libc.a. I usually change it to libn.a. It was used to compile g++ and its libraries, hence the missing symbols.

    Then link the libraries in the following order: -lc -lstdc++ -lc -ln. This prevents newlib's symbols from having precedence over ps2sdk's symbols, for the most part.

    There might be problems where symbol attributes conflict. There won't be a compile error, but you might get things like the malloc from newlib instead of ps2sdk, etc.
    This indeed fixed build of Rockbot for PS2, I now only have to make some adjustments in the qmake (it is placing -lpthread even if I don't need/want it) and add support on the code for mass: device and some other changes needed for specific PS2 needs.
    Game Lead Developer at Upperland Studios
    http://rockbot.upperland.net
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •