jamie Posted March 13, 2017 Report Share Posted March 13, 2017 [ 78%] Building CXX object src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o fatal error: file '/usr/local/src/mangos1/src/game/Server/SharedDefines.h' has been modified since the precompiled header '/usr/local/src/mangos1/build/src/game/pchdef.h.pch' was built note: please rebuild precompiled header '/usr/local/src/mangos1/build/src/game/pchdef.h.pch' 1 error generated. src/game/CMakeFiles/game.dir/build.make:54: recipe for target 'src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o' failed make[2]: *** [src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o] Error 1 CMakeFiles/Makefile2:779: recipe for target 'src/game/CMakeFiles/game.dir/all' failed make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: *** [all] Error 2 Link to comment Share on other sites More sharing options...
antz Posted March 13, 2017 Report Share Posted March 13, 2017 in cmake, clear the cache and attempt to build again Link to comment Share on other sites More sharing options...
jamie Posted March 13, 2017 Author Report Share Posted March 13, 2017 Linking CXX executable mangosd ../../dep/lualib/liblualib.a(loslib.c.o): In function `os_tmpname': loslib.c:(.text+0x29c): warning: the use of `tmpnam' is dangerous, better use `mkstemp' ../game/libgame.a(Opcodes.cpp.o):(.data+0x6d0): undefined reference to `WorldSession::HandleCharCreateOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x6f0): undefined reference to `WorldSession::HandleCharEnumOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x710): undefined reference to `WorldSession::HandleCharDeleteOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x7b0): undefined reference to `WorldSession::HandlePlayerLoginOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x1fd0): undefined reference to `WorldSession::HandleTutorialFlagOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x1ff0): undefined reference to `WorldSession::HandleTutorialClearOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x2010): undefined reference to `WorldSession::HandleTutorialResetOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x24b0): undefined reference to `WorldSession::HandleSetFactionAtWarOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x52d0): undefined reference to `WorldSession::HandleMeetingStoneInfoOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x5730): undefined reference to `WorldSession::HandleShowingHelmOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x5750): undefined reference to `WorldSession::HandleShowingCloakOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x58f0): undefined reference to `WorldSession::HandleCharRenameOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x62f0): undefined reference to `WorldSession::HandleSetFactionInactiveOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x6310): undefined reference to `WorldSession::HandleSetWatchedFactionOpcode(WorldPacket&)' ../game/libgame.a(Opcodes.cpp.o):(.data+0x8310): undefined reference to `WorldSession::HandleSetPlayerDeclinedNamesOpcode(WorldPacket&)' clang: error: linker command failed with exit code 1 (use -v to see invocation) src/mangosd/CMakeFiles/mangosd.dir/build.make:198: recipe for target 'src/mangosd/mangosd' failed make[2]: *** [src/mangosd/mangosd] Error 1 CMakeFiles/Makefile2:958: recipe for target 'src/mangosd/CMakeFiles/mangosd.dir/all' failed make[1]: *** [src/mangosd/CMakeFiles/mangosd.dir/all] Error 2 Makefile:117: recipe for target 'all' failed make: *** [all] Error 2 i get tha tnow Link to comment Share on other sites More sharing options...
Rochet2 Posted March 13, 2017 Report Share Posted March 13, 2017 Can you provide information like what core you use (what patch) and what is the commit hash? (version) You can see the commit hash from git with "git log --oneline", its the top row. Link to comment Share on other sites More sharing options...
jamie Posted March 14, 2017 Author Report Share Posted March 14, 2017 7 hours ago, Rochet2 said: Can you provide information like what core you use (what patch) and what is the commit hash? (version) You can see the commit hash from git with "git log --oneline", its the top row. fb1ccc8 Fix VS2017 build. Needs cmake 3.8.0 minimum Link to comment Share on other sites More sharing options...
jamie Posted March 14, 2017 Author Report Share Posted March 14, 2017 Still cant seem to figure this out if anyone cares to help Link to comment Share on other sites More sharing options...
antz Posted July 20, 2017 Report Share Posted July 20, 2017 @jamie Do you still have an issue ? Link to comment Share on other sites More sharing options...
Question
jamie
[ 78%] Building CXX object src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o
fatal error: file '/usr/local/src/mangos1/src/game/Server/SharedDefines.h' has been modified since the precompiled header
'/usr/local/src/mangos1/build/src/game/pchdef.h.pch' was built
note: please rebuild precompiled header '/usr/local/src/mangos1/build/src/game/pchdef.h.pch'
1 error generated.
src/game/CMakeFiles/game.dir/build.make:54: recipe for target 'src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o' failed
make[2]: *** [src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o] Error 1
CMakeFiles/Makefile2:779: recipe for target 'src/game/CMakeFiles/game.dir/all' failed
make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.