Paul-Wortmann / Grume

Action RPG
https://paul-wortmann.github.io/
Other
14 stars 3 forks source link

make error #55

Closed shirishag75 closed 10 years ago

shirishag75 commented 10 years ago

Hi all, While I was able to compile till 100%, there seem to be still some make errors while linking. See the whole output :-

[ 98%] Building CXX object CMakeFiles/frost_and_flame.dir/source/game/spells.cpp.o [100%] Building CXX object CMakeFiles/frost_and_flame.dir/source/main.cpp.o Linking CXX executable frost_and_flame CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::~font_manager_class()': font_manager.cpp:(.text+0x5b): undefined reference toTTF_CloseFont' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::load_font(font_type*)': font_manager.cpp:(.text+0x28c): undefined reference toTTF_OpenFont' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::load_font(font_type*, int)': font_manager.cpp:(.text+0x347): undefined reference toTTF_OpenFont' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::write(font_type*, unsigned char, unsigned char, unsigned char, unsigned char, float, float, std::string, int)': font_manager.cpp:(.text+0x529): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x7d3): undefined reference to SDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(fonttype, unsigned char, unsigned char, unsigned char, unsigned char, float, float, std::string, float)': font_manager.cpp:(.text+0x96c): undefined reference to TTF_RenderUTF8_Blended' font_manager.cpp:(.text+0xc16): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::write(font_type_, unsigned char, unsigned char, unsigned char, unsigned char, float, float, std::string)': font_manager.cpp:(.text+0xce3): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0xf5d): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(font_type, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string)': font_manager.cpp:(.text+0x1023): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x12ad): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(font_type_, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, int)': font_manager.cpp:(.text+0x145b): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x1727): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(fonttype, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, float)': font_manager.cpp:(.text+0x1908): undefined reference to TTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x1bd4): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function `font_manager_class::write(font_type, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, int, std::string)': font_manager.cpp:(.text+0x1db2): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x207e): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(font_type_, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, float, std::string)': font_manager.cpp:(.text+0x2273): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x253f): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(fonttype, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, float, std::string)': font_manager.cpp:(.text+0x273f): undefined reference to TTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x2a0b): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::write(font_type*, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, unsigned long long, std::string)': font_manager.cpp:(.text+0x2c08): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x2ed4): undefined reference to SDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(fonttype, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, int, std::string)': font_manager.cpp:(.text+0x30d1): undefined reference to TTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x339d): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In function font_manager_class::write(font_type_, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, std::string)': font_manager.cpp:(.text+0x34ea): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x378c): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(font_type, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, unsigned long long)': font_manager.cpp:(.text+0x3949): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x3c15): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(font_type_, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, unsigned long long, std::string)': font_manager.cpp:(.text+0x3df4): undefined reference toTTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x40c0): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/font_manager.cpp.o: In functionfont_manager_class::write(fonttype, unsigned char, unsigned char, unsigned char, unsigned char, float, float, float, float, std::string, int, std::string, int, std::string)': font_manager.cpp:(.text+0x4320): undefined reference to TTF_RenderUTF8_Blended' font_manager.cpp:(.text+0x45ec): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/graphics.cpp.o: In function graphics_class::init_sdl()': graphics.cpp:(.text+0x337): undefined reference toSDL_DestroyWindow' graphics.cpp:(.text+0x3ba): undefined reference to SDL_Init' graphics.cpp:(.text+0x3e3): undefined reference toSDL_GL_SetAttribute' graphics.cpp:(.text+0x3f2): undefined reference to SDL_GL_SetAttribute' graphics.cpp:(.text+0x401): undefined reference toSDL_GL_SetAttribute' graphics.cpp:(.text+0x410): undefined reference to SDL_GL_SetAttribute' graphics.cpp:(.text+0x41f): undefined reference toSDL_GL_SetAttribute' graphics.cpp:(.text+0x475): undefined reference to SDL_CreateWindow' graphics.cpp:(.text+0x48b): undefined reference toSDL_GL_CreateContext' CMakeFiles/frost_and_flame.dir/source/core/io.cpp.o: In function events_init()': io.cpp:(.text+0xe): undefined reference toSDL_Init' io.cpp:(.text+0x18): undefined reference to SDL_JoystickEventState' io.cpp:(.text+0x22): undefined reference toSDL_JoystickOpen' io.cpp:(.text+0x2b): undefined reference to SDL_NumJoysticks' io.cpp:(.text+0x63): undefined reference toSDL_JoystickNumButtons' CMakeFiles/frost_and_flame.dir/source/core/io.cpp.o: In function events_process()': io.cpp:(.text+0x122b): undefined reference toSDL_PollEvent' CMakeFiles/frost_and_flame.dir/source/core/loader_obj.cpp.o: In function `loader_obj_class::load_texture(std::string, unsigned int)': loader_obj.cpp:(.text+0x199): undefined reference toIMG_Load' loader_obj.cpp:(.text+0x1d1): undefined reference toSDL_FreeSurface' loader_obj.cpp:(.text+0x2a3): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/map_3D.cpp.o: In functionmap_3D_class::mesh_height_generate_heightmap(std::string)': map_3D.cpp:(.text+0x17f1): undefined reference toIMG_Load' map_3D.cpp:(.text+0x182a): undefined reference toSDL_LockSurface' map_3D.cpp:(.text+0x184f): undefined reference toSDL_UnlockSurface' map_3D.cpp:(.text+0x1a71): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/music_manager.cpp.o: In functionmusic_manager_class::~music_manager_class()': music_manager.cpp:(.text+0x36): undefined reference toMix_HaltMusic' music_manager.cpp:(.text+0x74): undefined reference toMix_FreeMusic' CMakeFiles/frost_and_flame.dir/source/core/music_manager.cpp.o: In functionmusic_manager_class::load_music(music_type)': music_manager.cpp:(.text+0x29f): undefined reference toMix_LoadMUS' CMakeFiles/frost_and_flame.dir/source/core/music_manager.cpp.o: In functionmusic_manager_class::play(music_type)': music_manager.cpp:(.text+0x34b): undefined reference toMix_PlayMusic' CMakeFiles/frost_and_flame.dir/source/core/object_manager.cpp.o: In functionobject_manager_class::~object_manager_class()': object_manager.cpp:(.text+0x22): undefined reference toMix_HaltMusic' CMakeFiles/frost_and_flame.dir/source/core/sound_manager.cpp.o: In functionsound_manager_class::~sound_manager_class()': sound_manager.cpp:(.text+0x27): undefined reference toMix_HaltChannel' sound_manager.cpp:(.text+0x65): undefined reference toMix_FreeChunk' CMakeFiles/frost_and_flame.dir/source/core/sound_manager.cpp.o: In functionsound_manager_class::load_sound(sound_type_)': sound_manager.cpp:(.text+0x2a6): undefined reference toSDL_RWFromFile' sound_manager.cpp:(.text+0x2b3): undefined reference toMix_LoadWAV_RW' CMakeFiles/frost_and_flame.dir/source/core/sound_manager.cpp.o: In functionsound_manager_class::play(soundtype)': sound_manager.cpp:(.text+0x369): undefined reference to Mix_PlayChannelTimed' CMakeFiles/frost_and_flame.dir/source/core/texture_manager.cpp.o: In functiontexture_manager_class::load_texture(texturetype)': texture_manager.cpp:(.text+0x99f): undefined reference to IMG_Load' texture_manager.cpp:(.text+0xb5b): undefined reference toSDL_FreeSurface' texture_manager.cpp:(.text+0xbce): undefined reference to SDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/texture_manager.cpp.o: In functiontexture_manager_class::load_sprite_sheet(texturetype, int, int)': texture_manager.cpp:(.text+0xca9): undefined reference to IMG_Load' texture_manager.cpp:(.text+0xe4c): undefined reference toSDL_CreateRGBSurface' texture_manager.cpp:(.text+0xea0): undefined reference to SDL_LockSurface' texture_manager.cpp:(.text+0xf75): undefined reference toSDL_UnlockSurface' texture_manager.cpp:(.text+0x1157): undefined reference to SDL_FreeSurface' texture_manager.cpp:(.text+0x116a): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/texture_manager.cpp.o: In function texture_manager_class::load_string(texture_type*)': texture_manager.cpp:(.text+0x1489): undefined reference toTTF_RenderUTF8_Blended' texture_manager.cpp:(.text+0x16bb): undefined reference to SDL_FreeSurface' texture_manager.cpp:(.text+0x172e): undefined reference toSDL_FreeSurface' CMakeFiles/frost_and_flame.dir/source/core/timer.cpp.o: In function timer_class::start()': timer.cpp:(.text+0x48): undefined reference toSDL_GetTicks' CMakeFiles/frost_and_flame.dir/source/core/timer.cpp.o: In function timer_class::getticks()': timer.cpp:(.text+0x8c): undefined reference toSDL_GetTicks' CMakeFiles/frost_and_flame.dir/source/UI/menu_options.cpp.o: In function process_menu_options(UI_form_struct*)': menu_options.cpp:(.text+0x88dc): undefined reference toMix_Volume' menu_options.cpp:(.text+0x8971): undefined reference to Mix_Volume' menu_options.cpp:(.text+0x89d2): undefined reference toMix_VolumeMusic' menu_options.cpp:(.text+0x8a62): undefined reference to Mix_VolumeMusic' CMakeFiles/frost_and_flame.dir/source/UI/UI_loading_screen.cpp.o: In functionUI_loading_screen_class::display(std::string)': UI_loading_screen.cpp:(.text+0x85): undefined reference to SDL_GL_SwapWindow' UI_loading_screen.cpp:(.text+0xc8): undefined reference toSDL_GL_SwapWindow' CMakeFiles/frost_and_flame.dir/source/main.cpp.o: In function main': main.cpp:(.text+0x3b2): undefined reference toSDL_RWFromFile' main.cpp:(.text+0x3bf): undefined reference to SDL_LoadBMP_RW' main.cpp:(.text+0x3df): undefined reference toSDL_SetWindowIcon' main.cpp:(.text+0x3ee): undefined reference to SDL_FreeSurface' main.cpp:(.text+0x3f8): undefined reference toSDL_ShowCursor' main.cpp:(.text+0x402): undefined reference to SDL_Init' main.cpp:(.text+0x41b): undefined reference toSDL_Init' main.cpp:(.text+0x428): undefined reference to Mix_AllocateChannels' main.cpp:(.text+0x447): undefined reference toMix_OpenAudio' main.cpp:(.text+0x459): undefined reference to Mix_Volume' main.cpp:(.text+0x466): undefined reference toMix_VolumeMusic' main.cpp:(.text+0x47f): undefined reference to SDL_Init' main.cpp:(.text+0x489): undefined reference toSDL_Init' main.cpp:(.text+0x493): undefined reference to SDL_Init' main.cpp:(.text+0x4a7): undefined reference toTTF_Init' main.cpp:(.text+0x666): undefined reference to SDL_Init' main.cpp:(.text+0x994): undefined reference toSDL_GL_SwapWindow' main.cpp:(.text+0xc1f): undefined reference to `SDL_Quit' collect2: error: ld returned 1 exit status make[2]: * [frost_and_flame] Error 1 make[1]: * [CMakeFiles/frost_and_flame.dir/all] Error 2 make: *\ [all] Error 2

Paul-Wortmann commented 10 years ago

Hi shirishag75, This should be fixed in commit -> 22d9d23963753d195071faa6046288970159019b