Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Mac OSX build instructions need updating #263

Open
andy5995 opened this issue Oct 4, 2018 · 23 comments
Open

Mac OSX build instructions need updating #263

andy5995 opened this issue Oct 4, 2018 · 23 comments
Labels

Comments

@andy5995
Copy link
Contributor

andy5995 commented Oct 4, 2018

We have fairly good build instructions for Mac OSX, but they mostly likely need some touching up.

While it does build on osx High Sierra, there are some weird messages in this build log

@RAgerone
Copy link

RAgerone commented Oct 6, 2018

I'm trying to build on Mac with High Sierra, but the executable doesn't seem to be working property. It's a black screen with the music playing. Am I missing something?

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 6, 2018

Hi @oxenran .

Thanks for the attempt, I'm sorry to hear the binary isn't working right on your system.

What should happen is the intro video and animations should appear in the foreground, against a black background. Pressing return or escape during that takes the user to the main menu.

Would you mind sending us a copy of the output generated by make and cmake? If the output is still in your terminal and you're able to copy and paste, that'll work.

Otherwise, if you're willing to try again, remove the build directory and re-run cmake and make the same way you did before.

if you're in a terminal where copy and paste isn't available, you can redirect the output by adding >> zg-build.log 2>&1 at the end of the cmake command line, and then again at the end of the make command line. That will redirect all output to the log file.

So for example, make >> zg-build.log 2>&1

Note that since you won't see any output, your command prompt won't reappear until each task is finished.

The log can be attached to this ticket, or you can paste the output to https://gist.github.com/ and just paste the link here.

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 6, 2018

@oxenran

I'll be sure to give you the opportunity to make a PR for any changes to the build instructions. Thanks again!

@RAgerone
Copy link

RAgerone commented Oct 9, 2018

Make Output

Scanning dependencies of target libzetaglest
[ 0%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/libircclient/src/libircclient.c.o
[ 0%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpAccount.c.o
[ 1%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/compression/compression_utils.cpp.o
[ 2%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpCmds.c.o
[ 2%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpLib.c.o
[ 3%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpMessages.c.o
[ 4%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpRuntime.c.o
[ 4%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpServer.c.o
[ 5%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpSession.c.o
[ 5%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpTargetPosix.c.o
[ 6%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/feathery_ftp/ftpTargetWin32.c.o
[ 7%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/BMPReader.cpp.o
[ 7%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/FileReader.cpp.o
[ 8%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/ImageReaders.cpp.o
[ 8%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/JPGReader.cpp.o
[ 9%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/PNGReader.cpp.o
[ 10%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/TGAReader.cpp.o
[ 10%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/buffer.cpp.o
[ 11%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/camera.cpp.o
[ 11%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/context.cpp.o
[ 12%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/font.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/font_manager.cpp.o
[ 13%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/font_text.cpp.o
[ 14%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/graphics_interface.cpp.o
[ 14%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/interpolation.cpp.o
[ 15%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/model.cpp.o
[ 15%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/model_manager.cpp.o
[ 16%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/particle.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/pixmap.cpp.o
[ 17%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/quaternion.cpp.o
[ 18%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/shader.cpp.o
[ 18%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/shader_manager.cpp.o
[ 19%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/texture.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/texture_manager.cpp.o
[ 20%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/video_player.cpp.o
[ 21%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/base_renderer.cpp.o
[ 21%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/context_gl.cpp.o
[ 22%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/font_gl.cpp.o
[ 23%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/font_textFTGL.cpp.o
[ 23%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/model_gl.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/model_renderer_gl.cpp.o
[ 24%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/opengl.cpp.o
[ 25%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/particle_renderer_gl.cpp.o
[ 26%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/shader_gl.cpp.o
[ 26%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/text_renderer_gl.cpp.o
[ 27%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/graphics/gl/texture_gl.cpp.o
[ 27%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/lua/lua_script.cpp.o
[ 28%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/map/map_preview.cpp.o
[ 28%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/common/base_thread.cpp.o
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/map/map_preview.cpp:13:
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/map/map_preview.h:141:8: warning:
private field 'type' is not used [-Wunused-private-field]
int type;
^
[ 29%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/common/byte_order.cpp.o
[ 30%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/common/cache_manager.cpp.o
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/platform/common/base_thread.cpp:36:4: warning:
field 'mutexStarted' will be initialized after field 'ptr' [-Wreorder]
mutexStarted(new Mutex(CODE_AT_LINE)),
^
[ 30%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/common/platform_common.cpp.o
[ 31%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/common/simple_threads.cpp.o
1 warning generated.
[ 31%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/sound/sound.cpp.o
1 warning generated.
[ 32%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/sound/sound_file_loader.cpp.o
/Users/Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/platform/common/simple_threads.cpp:383:4: warning:
field 'overrideShutdownTask' will be initialized after field 'mutexSimpleTaskInterfaceValid'
[-Wreorder]
overrideShutdownTask(NULL),
^
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/sound/sound_interface.cpp.o
[ 33%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/sound/sound_player.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/sound/openal/sound_player_openal.cpp.o
[ 34%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/checksum.cpp.o
1 warning generated.
[ 35%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/conversion.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/leak_dumper.cpp.o
[ 36%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/profiler.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/properties.cpp.o
[ 37%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/randomgen.cpp.o
[ 38%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/string_utils.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/util/util.cpp.o
[ 39%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/xml/xml_parser.cpp.o
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/factory_repository.cpp.o
In file included from /Users/Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:13:
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/xml_parser.h:25:
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:907:15: warning:
field 'm_last_attribute' will be initialized after field 'm_last_node' [-Wreorder]
, m_last_attribute(0)
^
/UsersProjects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:1371:15: note:
in instantiation of member function 'rapidxml::xml_node::xml_node' requested here
: xml_node(node_document)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:396:20: note:
in instantiation of member function 'rapidxml::xml_document::xml_document' requested here
xml_document<> doc;
^
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:13:
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/xml_parser.h:25:
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:909:15: warning:
field 'm_next_sibling' will be initialized after field 'm_prev_sibling' [-Wreorder]
, m_next_sibling(0)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:660:15: warning:
field 'm_parent' will be initialized after field 'm_name_size' [-Wreorder]
, m_parent(0)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:903:9: note:
in instantiation of member function 'rapidxml::xml_base::xml_base' requested here
xml_node(node_type type)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:1371:15: note:
in instantiation of member function 'rapidxml::xml_node::xml_node' requested here
: xml_node(node_document)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:396:20: note:
in instantiation of member function 'rapidxml::xml_document::xml_document' requested here
xml_document<> doc;
^
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:13:
In file included from /Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/xml_parser.h:25:
/Users/Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:812:27: warning:
field 'm_next_attribute' will be initialized after field 'm_prev_attribute' [-Wreorder]
xml_attribute() : m_next_attribute(0), m_prev_attribute(0)
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/include/xml/rapidxml/rapidxml.hpp:451:56: note:
in instantiation of member function 'rapidxml::xml_attribute::xml_attribute' requested here
xml_attribute *attribute = new(memory) xml_attribute;
^
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/xml/xml_parser.cpp:445:32: note:
in instantiation of member function 'rapidxml::memory_pool::allocate_attribute' requested here
decl->append_attribute(doc.allocate_attribute(doc.allocate_string(...
^
[ 40%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/gl_wrap.cpp.o
[ 41%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/platform_util.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/thread.cpp.o
[ 42%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/window.cpp.o
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/sdl/window_gl.cpp.o
/Users//Projects/hacktoberfest/zetaglest-source/source/shared_lib/sources/platform/sdl/thread.cpp:138:4: warning:
field 'deleteAfterExecute' will be initialized after field 'currentState' [-Wreorder]
deleteAfterExecute(false), currentState(thrsNew) {
^
4 warnings generated.
[ 43%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/posix/ircclient.cpp.o
1 warning generated.
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/posix/miniftpclient.cpp.o
[ 44%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/posix/miniftpserver.cpp.o
[ 45%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/posix/socket.cpp.o
[ 46%] Building CXX object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/macosx/gl_wrap.mm.o
[ 46%] Building C object source/shared_lib/CMakeFiles/libzetaglest.dir/sources/platform/macosx/NSFont_OpenGL.m.o
[ 47%] Linking CXX static library liblibzetaglest.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(ftpServer.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(ftpTargetWin32.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(FileReader.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(byte_order.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(leak_dumper.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(profiler.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(ftpServer.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(ftpTargetWin32.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(FileReader.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(byte_order.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(leak_dumper.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: liblibzetaglest.a(profiler.cpp.o) has no symbols
[ 47%] Built target libzetaglest
Scanning dependencies of target zetaglest
[ 47%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/ai/ai.cpp.o
[ 48%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/ai/ai_interface.cpp.o
[ 48%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/ai/path_finder.cpp.o
[ 49%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/ai/ai_rule.cpp.o
[ 50%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/facilities/auto_test.cpp.o
[ 50%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/facilities/components.cpp.o
[ 51%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/facilities/game_util.cpp.o
[ 52%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/facilities/logger.cpp.o
[ 52%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/chat_manager.cpp.o
[ 53%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/commander.cpp.o
[ 53%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/console.cpp.o
[ 54%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/game.cpp.o
[ 55%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/game_camera.cpp.o
[ 55%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/script_manager.cpp.o
[ 56%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/game/stats.cpp.o
[ 56%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/global/config.cpp.o
[ 57%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/global/core_data.cpp.o
[ 57%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/global/lang.cpp.o
[ 58%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/global/metrics.cpp.o
[ 59%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/graphics/particle_type.cpp.o
[ 59%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/graphics/renderer.cpp.o
[ 60%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/graphics/unit_particle_type.cpp.o
[ 60%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/gui/display.cpp.o
[ 61%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/gui/gui.cpp.o
[ 62%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/gui/selection.cpp.o
[ 62%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/main/battle_end.cpp.o
[ 63%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/main/intro.cpp.o
[ 63%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/main/main.cpp.o
[ 64%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/main/program.cpp.o
[ 65%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/main_menu.cpp.o
[ 65%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_background.cpp.o
[ 66%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_about.cpp.o
[ 66%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_connected_game.cpp.o
[ 67%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_custom_game.cpp.o
[ 68%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_custom_game_update.cpp.o
[ 68%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_graphic_info.cpp.o
[ 69%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_join_game.cpp.o
[ 69%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_keysetup.cpp.o
[ 70%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_load_game.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_masterserver.cpp.o
[ 71%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_mods.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_new_game.cpp.o
[ 72%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_options.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_options_graphics.cpp.o
[ 73%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_options_network.cpp.o
[ 74%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_options_sound.cpp.o
[ 75%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_root.cpp.o
[ 75%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/menu_state_scenario.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/menu/server_line.cpp.o
[ 76%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/client_interface.cpp.o
[ 77%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/connection_slot.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/network_interface.cpp.o
[ 78%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/network_manager.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/network_message.cpp.o
[ 79%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/network_protocol.cpp.o
[ 80%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/network_types.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/network/server_interface.cpp.o
[ 81%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/sound/sound_container.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/sound/sound_renderer.cpp.o
[ 82%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/steam/steam.cpp.o
[ 83%] Building C object source/glest_game/CMakeFiles/zetaglest.dir/steamshim/steamshim_child.c.o
[ 84%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/command.cpp.o
[ 84%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/faction.cpp.o
[ 85%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/object.cpp.o
[ 85%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/resource.cpp.o
[ 86%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/unit.cpp.o
[ 86%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/type_instances/upgrade.cpp.o
[ 87%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/command_type.cpp.o
[ 88%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/damage_multiplier.cpp.o
[ 88%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/element_type.cpp.o
[ 89%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/faction_type.cpp.o
[ 89%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/object_type.cpp.o
[ 90%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/projectile_type.cpp.o
[ 91%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/resource_type.cpp.o
[ 91%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/skill_type.cpp.o
[ 92%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/tech_tree.cpp.o
[ 92%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/tileset_model_type.cpp.o
[ 93%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/unit_type.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/types/upgrade_type.cpp.o
[ 94%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/map.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/minimap.cpp.o
[ 95%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/scenario.cpp.o
[ 96%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/surface_atlas.cpp.o
[ 97%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/tileset.cpp.o
[ 97%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/time_flow.cpp.o
[ 98%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/unit_updater.cpp.o
[ 98%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/water_effects.cpp.o
[ 99%] Building CXX object source/glest_game/CMakeFiles/zetaglest.dir/world/world.cpp.o
[100%] Linking CXX executable ../../zetaglest

@RAgerone
Copy link

RAgerone commented Oct 9, 2018

Cmake Output:

-- The C compiler identification is AppleClang 10.0.0.10001145
-- The CXX compiler identification is AppleClang 10.0.0.10001145
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SOURCE_DIR = /Users//Projects/hacktoberfest/zetaglest-source
-- Build type for this compile will be: RelWithDebInfo
-- =====================================================================
-- Determining version number system type to use:
-- ** Trying 3 part versioning
-- Detected ZetaGlest Version is [v0.8.02]
-- Detected CLANG Compiler...
-- libstreflop disabled
-- Performing Test HAS_GCC_BACKTRACE
-- Performing Test HAS_GCC_BACKTRACE - Success
-- Found GCC backtrace lib, will support backtraces
-- *NOTE: Apply fix for: libpthread.so.0: error adding symbols: DSO missing from command line
-- CMAKE_CXX_FLAGS_RELWITHDEBINFO: -O3 -O2 -g -DNDEBUG -g -O3
-- **Found game source code.
-- Building ZetaGlest shared library...
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
-- **NOTE: OpenSSL is usually not required.
-- Found CURL: /usr/lib/libcurl.dylib (found version "7.54.0")
-- Found SDL2: /usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib
-- Looking for XOpenDisplay in /usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/X11R6/lib/libX11.dylib
-- Found Lua: /usr/local/lib/liblua5.3.dylib (found version "5.3.5")
-- Found JPEG: /usr/local/lib/libjpeg.dylib (found version "90")
-- Found OpenAL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenAL.framework
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.11")
-- Found PNG: /usr/local/lib/libpng.dylib (found version "1.6.35")
-- **NOTE: FontConfig support was detected and enabled.
-- Found Freetype: /usr/local/lib/libfreetype.dylib (found version "2.9.1")
-- Found FTGL libraries at /usr/local/lib/libftgl.dylib and includes at /usr/local/include
-- **NOTE: FTGL font support was detected and enabled.
-- Found GLEW: /usr/local/include
-- ** Searching for library: FriBiDi...
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2")
-- Checking for one of the modules 'glib-2.0'
-- Found GLib2: glib-2.0;intl /usr/local/Cellar/glib/2.58.1/include/glib-2.0;/usr/local/Cellar/glib/2.58.1/lib/glib-2.0/include;/usr/local/opt/gettext/include;/usr/local/Cellar/pcre/8.42/include
CMake Warning (dev) at /usr/local/Cellar/cmake/3.12.3/share/cmake/Modules/CheckIncludeFiles.cmake:110 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

CMAKE_REQUIRED_LIBRARIES is set to:

/usr/local/lib/libfribidi.dylib

For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
mk/cmake/Modules/FindGLIB2.cmake:215 (CHECK_INCLUDE_FILES)
mk/cmake/Modules/FindFriBiDi.cmake:47 (FIND_PACKAGE)
source/shared_lib/CMakeLists.txt:192 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Looking for fribidi_utf8_to_unicode in fribidi
-- Looking for fribidi_utf8_to_unicode in fribidi - not found
-- Looking for fribidi_charset_to_unicode in fribidi
-- Looking for fribidi_charset_to_unicode in fribidi - not found
Could not find FriBiDi. Disabling FriBiDi support.
-- Searching for zlib
-- Using external zlib
-- Looking for miniupnpc...
-- Found MINIUPNP: /usr/local/lib/libminiupnpc.dylib
-- Found the miniupnpc headers at /usr/local/include/miniupnpc
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER
-- Performing Test MINIUPNPC_VERSION_1_7_OR_HIGHER - Success
-- Found miniupnpc version is v1.7 or higher
-- *** Using miniupnpc lib found in [/usr/local/include/miniupnpc] MINIUPNP_FOUND [TRUE] MINIUPNP_LIBRARY [/usr/local/lib/libminiupnpc.dylib]
-- **No macros required for miniupnpc version
-- *** Searching for libircclient since WANT_STATIC_LIBS is: OFF ...
-- Could NOT find IRCCLIENT (missing: IRCCLIENT_LIBRARY IRCCLIENT_INCLUDE_DIR)
-- **** WARNING: IRCClient NOT FOUND include path: IRCCLIENT_INCLUDE_DIR-NOTFOUND libs: IRCCLIENT_LIBRARY-NOTFOUND
-- *** Using EMBEDDED libircclient since this system does not have it... IRCCLIENT_FOUND [FALSE]
-- Performing Test LIBIRCCLIENT_VERSION_PRE_1_6
-- Performing Test LIBIRCCLIENT_VERSION_PRE_1_6 - Failed
-- EXTERNAL_LIBS = [/usr/lib/libcurl.dylib;/usr/local/lib/libSDL2main.a;/usr/local/lib/libSDL2.dylib;-framework Cocoa;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework;/usr/X11R6/lib/libSM.dylib;/usr/X11R6/lib/libICE.dylib;/usr/X11R6/lib/libX11.dylib;/usr/X11R6/lib/libXext.dylib;/usr/local/lib/liblua5.3.dylib;/usr/local/lib/libjpeg.dylib;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenAL.framework;/usr/local/lib/libpng.dylib;/usr/local/lib/libfontconfig.dylib;/usr/local/lib/libftgl.dylib;/usr/local/lib/libfreetype.dylib;/usr/local/lib/libGLEW.dylib;/usr/lib/libz.dylib;/usr/local/lib/libminiupnpc.dylib]
-- Build zetaglest = YES
-- OGG/Vorbis includes: /usr/local/include
-- OGG library : /usr/local/lib/libogg.dylib
-- Vorbis library : /usr/local/lib/libvorbis.dylib
-- Vorbis file library: /usr/local/lib/libvorbisfile.dylib
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR)
-- **NOTE: OpenSSL is usually not required.
-- Checking for one of the modules 'streflop-soft'
-- Checking for one of the modules 'streflop'
-- Search for Library STREFLOP result = libs: include dirs:
-- Build zetaglest_editor = OFF
-- Build zetaglest_g3dviewer = OFF
-- **Found game data.
CMake Warning at CMakeLists.txt:328 (MESSAGE):

CLANG is NOT currently compatible as it does not support the following
essential GCC compiler settings: -frounding-math -fsignaling-nans

-- =====> Found Define: HAS_GCC_BACKTRACE
-- =====> Found Define: DATADIR=../../zetaglest-data
-- Configuring done
-- Generating done
-- Build files have been written to:

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 9, 2018

@oxenran , thank you for taking the time to do this. If you'd like to submit a PR to add your name to the "General Help" section, please do so.

https://github.com/ZetaGlest/zetaglest-source/blob/develop/AUTHORS.md#general-help

Your log is similar to our automated Travis log (that I linked to in the first post). I think the first place we need to start checking is where the build reaches 47%, the "has no symbols" messages look pretty darn suspicious. But I'm a bit baffled as to why the build would complete if the compiler can't find references to everything.

When you run zetaglest and get the black screen with the music playing, if you hit "esc", does it change? Does the main menu show? And what messages are spit into the terminal?

@RAgerone
Copy link

RAgerone commented Oct 10, 2018 via email

@andy5995
Copy link
Contributor Author

@oxenran Just got your email. found it in my spam folder, sent you a reply.

Could you still post a stack trace?

@Jammyjamjamman any helpful tips on debugging this? Just see what gdb says or would the command-line debug option be useful in this case? (I noticed the MG travis log for osx shows the same errors about "missing symbols". https://travis-ci.org/MegaGlest/megaglest-source/jobs/401109554)

andy5995 added a commit that referenced this issue Oct 14, 2018
@andy5995
Copy link
Contributor Author

@oxenran I made a change that will allow cmake to find the OpenSSL library on High Sierra. I doubt that will have any effect on the immediate problem, but wanted to keep you posted. Here are the changes I made.

zetaglest/zetaglest-source@d3f7fe7

The key change was adding set(OPENSSL_ROOT_DIR /usr/local/opt/openssl)

@RAgerone
Copy link

RAgerone commented Oct 17, 2018 via email

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 17, 2018

For the DATA dir, you will need the absolute path. It's possible in some cases to use a relative path but that would typically cause problems later.

The value you use for INSTALL_DIR_DATA is hard-coded into the program at the time of compilation by cmake. It has the same effect of writing in the source code

#define DATADIR Users/me/Projects/zetaglest-data

That's a preprocessor directive, btw.

To do that during compile time, -D can be passed to most compilers (different from the -D option used for cmake.). This is the line in cmake where that magic happens:

https://github.com/ZetaGlest/zetaglest-source/blob/develop/source/glest_game/CMakeLists.txt#L12

That "add_definitions()" directive tells cmake to pass that to the compiler when the build actually happens.

But the DATA dir is used for game data, and isn't relevant to any linking of libraries, compiling or building.

@andy5995
Copy link
Contributor Author

@oxenran

I forgot to respond to this:

It still couldn't find openssl.

Installing openssl with brew may help. Also, if you run xcode-select --install, what is the output?

It may also help to remove CMakeCache.txt from your build directory and re-run cmake.

andy5995 added a commit that referenced this issue Oct 17, 2018
@RAgerone
Copy link

RAgerone commented Oct 17, 2018 via email

andy5995 added a commit that referenced this issue Oct 17, 2018
andy5995 added a commit that referenced this issue Oct 17, 2018
…#287)

I'm not so sure the CMakeLists.txt in mk/osx is needed. When I disable it, travis is still able to complete the build.

I also added fontconfig to the osx dependencies so cmake could actually find it.

ping #263 and @oxenran
@andy5995
Copy link
Contributor Author

I'll do this when I get home today. I found this similar problem for OSX for another game

Hmm.. interesting. I couldn't say with any certainty. Thanks for the extra info it may be helpful later.

I made a few more minor changes just now that may make a difference.

zetaglest/zetaglest-source@caf5563

After you remove CMakeCache.txt and re-run cmake, the output should be pretty similar to what's shown here: https://travis-ci.org/ZetaGlest/zetaglest-source/jobs/442885570

@RAgerone
Copy link

RAgerone commented Oct 18, 2018 via email

@andy5995
Copy link
Contributor Author

Not sure but I think that removing your build directory and recreating it will solve that. Usually 'make' can detect when files need to be recompiled, but in some cases it does not.

@RAgerone
Copy link

RAgerone commented Oct 18, 2018 via email

@andy5995
Copy link
Contributor Author

make is usually verbose by default, but when the Makefiles are generated with cmake, they are not.

you can use make VERBOSE=1 to enable it.

However, I don't think that will help.

ld: warning: text-based stub file /System/Library/Frameworks//Cocoa.framework/Cocoa.tbd and library file /System/Library/Frameworks//Cocoa.framework/Cocoa are out of sync. Falling back to library file for linking.

I did a google search for that error message and found that it affected many users. You may want to google search it yourself, or try what's suggested here:

http://sd.jtimothyking.com/2018/07/26/stub-file-and-library-file-out-of-sync/

@RAgerone
Copy link

RAgerone commented Oct 23, 2018 via email

@RAgerone
Copy link

RAgerone commented Oct 23, 2018 via email

@RAgerone
Copy link

RAgerone commented Oct 23, 2018 via email

@andy5995
Copy link
Contributor Author

andy5995 commented Oct 23, 2018

Could it be my drivers?

Possibly. For video, only OpenGL 2.1 is required. This is what we have documented for system requirements

I'm sorry I lack the necessary knowledge to troubleshoot this properly. You might see how far you get with some other projects, such as @SuperTux, @0ad, or even the project from which this was forked, @MegaGlest. I'm afraid working with me any further isn't going to provide a very good learning experience for you.

Those 3 projects I mentioned are on the large side, so I'd also suggest starting with smaller projects that take less time to build and require fewer dependencies.

@RAgerone
Copy link

RAgerone commented Oct 23, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants