glest / glest-source

Glest is a network multi-player cross-platform 3D real-time strategy (RTS) game, where you create armies of units and battle different factions.
https://glest.io
GNU General Public License v3.0
56 stars 39 forks source link

zetaglest binary output to a different directory #227

Closed andy5995 closed 5 years ago

andy5995 commented 5 years ago

My test results were skewed when I worked on https://github.com/ZetaGlest/zetaglest-source/commit/aa54e2032b14cc6674a0710be809f168122c71b0 and now ZG is temporarily unplayable.

******************************************************
    Unknown class identifier: 
Stack Trace:
./zetaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x55bfb96f8bdc] line: 0
./zetaglest:Shared::Sound::StaticSound::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb96c4b5e] line: 0
./zetaglest:Glest::Game::PlaySoundClip::getSound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb9228ee5] line: 0
./zetaglest:Glest::Game::MenuStateRoot::mouseClick(int, int, Shared::Platform::MouseButton)address [0x55bfb944ef4d] line: 0
./zetaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x55bfb92d52e2] line: 0
./zetaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0x55bfb970972f] line: 0
./zetaglest:Shared::Platform::Window::handleEvent()address [0x55bfb970b51c] line: 0
./zetaglest:Glest::Game::glestMain(int, char**)address [0x55bfb92e2ed2] line: 0
./zetaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x55bfb92e7f84] line: 0
./zetaglest:Glest::Game::glestMainWrapper(int, char**)address [0x55bfb92e8153] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f63c426cb17] line: 0
./zetaglest:_start()address [0x55bfb910f89a] line: 0

******************************************************

*ERROR* [2018-09-14 12:34:26] In [/home/andy/src/zg-local/zetaglest-source/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 521] Error [[3] Sample format not supported in file: ]
Couldn't play static sound: [[3] Sample format not supported in file: ]

******************************************************
    Unknown class identifier: 
Stack Trace:
./zetaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x55bfb96f8bdc] line: 0
./zetaglest:Shared::Sound::StaticSound::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb96c4b5e] line: 0
./zetaglest:Glest::Game::PlaySoundClip::getSound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb9228ee5] line: 0
./zetaglest:Glest::Game::MenuStateNewGame::mouseClick(int, int, Shared::Platform::MouseButton)address [0x55bfb941561a] line: 0
./zetaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x55bfb92d52e2] line: 0
./zetaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0x55bfb970972f] line: 0
./zetaglest:Shared::Platform::Window::handleEvent()address [0x55bfb970b51c] line: 0
./zetaglest:Glest::Game::glestMain(int, char**)address [0x55bfb92e2ed2] line: 0
./zetaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x55bfb92e7f84] line: 0
./zetaglest:Glest::Game::glestMainWrapper(int, char**)address [0x55bfb92e8153] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f63c426cb17] line: 0
./zetaglest:_start()address [0x55bfb910f89a] line: 0

******************************************************

*ERROR* [2018-09-14 12:34:35] In [/home/andy/src/zg-local/zetaglest-source/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 521] Error [[3] Sample format not supported in file: ]
Couldn't play static sound: [[3] Sample format not supported in file: ]

******************************************************
    Unknown class identifier: 
Stack Trace:
./zetaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)address [0x55bfb96f8bdc] line: 0
./zetaglest:Shared::Sound::StaticSound::load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb96c4b5e] line: 0
./zetaglest:Glest::Game::PlaySoundClip::getSound(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)address [0x55bfb9228ee5] line: 0
./zetaglest:Glest::Game::MenuStateRoot::mouseClick(int, int, Shared::Platform::MouseButton)address [0x55bfb944ee90] line: 0
./zetaglest:Glest::Game::MainWindow::eventMouseDown(int, int, Shared::Platform::MouseButton)address [0x55bfb92d52e2] line: 0
./zetaglest:Shared::Platform::Window::handleMouseDown(SDL_Event)address [0x55bfb970972f] line: 0
./zetaglest:Shared::Platform::Window::handleEvent()address [0x55bfb970b51c] line: 0
./zetaglest:Glest::Game::glestMain(int, char**)address [0x55bfb92e2ed2] line: 0
./zetaglest:Glest::Game::glestMainSEHWrapper(int, char**)address [0x55bfb92e7f84] line: 0
./zetaglest:Glest::Game::glestMainWrapper(int, char**)address [0x55bfb92e8153] line: 0
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main()address [0x7f63c426cb17] line: 0
./zetaglest:_start()address [0x55bfb910f89a] line: 0

******************************************************

*ERROR* [2018-09-14 12:34:36] In [/home/andy/src/zg-local/zetaglest-source/source/shared_lib/sources/sound/openal/sound_player_openal.cpp::play Line: 521] Error [[3] Sample format not supported in file: ]
Couldn't play static sound: [[3] Sample format not supported in file: ]
andy5995 commented 5 years ago

The problem wasn't with the patch I mentioned above. The code works but when running mk/linux/build-zg.sh on linux the binary is being output to a different directory. So this must be caused by my cmake edits in https://github.com/ZetaGlest/zetaglest-source/commit/d9e71d3798c945ea125091dbfec17890ea67863e