- Home /
Ubuntu Master Server - compiler error
I installed a master server on my ubuntu x86 server but I get this error message if I compile them:
~/somefolders# make
g++ -ggdb -I. -IRakNet/Sources -ICommon -Wall -pthread -DUNITY_MASTERSERVER Common/Log.o Common/Utility.o RakNet/Sources/RakNetworkFactory.o RakNet/Sources/BitStream.o RakNet/Sources/GetTime.o RakNet/Sources/RakPeer.o RakNet/Sources/BitStream_NoTemplate.o RakNet/Sources/RakSleep.o RakNet/Sources/CheckSum.o RakNet/Sources/Rand.o RakNet/Sources/ReliabilityLayer.o RakNet/Sources/LinuxStrings.o RakNet/Sources/ConsoleServer.o RakNet/Sources/Router.o RakNet/Sources/DS_BytePool.o RakNet/Sources/MessageFilter.o RakNet/Sources/SHA1.o RakNet/Sources/DS_ByteQueue.o RakNet/Sources/SimpleMutex.o RakNet/Sources/DS_HuffmanEncodingTree.o RakNet/Sources/NetworkIDManager.o RakNet/Sources/SocketLayer.o RakNet/Sources/DS_Table.o RakNet/Sources/NetworkIDObject.o RakNet/Sources/StringCompressor.o RakNet/Sources/DataBlockEncryptor.o RakNet/Sources/StringTable.o RakNet/Sources/DataCompressor.o RakNet/Sources/PacketFileLogger.o RakNet/Sources/SystemAddressList.o RakNet/Sources/DirectoryDeltaTransfer.o RakNet/Sources/PacketLogger.o RakNet/Sources/TCPInterface.o RakNet/Sources/EmailSender.o RakNet/Sources/TableSerializer.o RakNet/Sources/EncodeClassName.o RakNet/Sources/RPCMap.o RakNet/Sources/TelnetTransport.o RakNet/Sources/ExtendedOverlappedPool.o RakNet/Sources/RakNetCommandParser.o RakNet/Sources/ThreadsafePacketLogger.o RakNet/Sources/FileList.o RakNet/Sources/RakNetStatistics.o RakNet/Sources/_FindFirst.o RakNet/Sources/FileListTransfer.o RakNet/Sources/RakNetTransport.o RakNet/Sources/rijndael.o RakNet/Sources/FileOperations.o RakNet/Sources/RakNetTypes.o RakNet/Sources/BigInt.o RakNet/Sources/CCRakNetUDT.o RakNet/Sources/RakNetSocket.o RakNet/Sources/RakString.o RakNet/Sources/RSACrypt.o RakNet/Sources/RakMemoryOverride.o RakNet/Sources/SignaledEvent.o RakNet/Sources/SuperFastHash.o RakNet/Sources/PluginInterface2.o RakNet/Sources/Itoa.o RakNet/Sources/RakThread.o RakNet/Sources/LightweightDatabaseCommon.o RakNet/Sources/LightweightDatabaseServer.o MasterServer.cpp -o MasterServer
In file included from MasterServer.cpp:10:0:
MasterServer.h:2:15: warning: extra tokens at end of #ifndef directive [enabled by default]
#ifndef WIN32 #include <unistd.h> #endif
^
MasterServer.h:2:0: error: unterminated #ifndef
#ifndef WIN32 #include <unistd.h> #endif
^
MasterServer.cpp:29:17: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char* logfile = "masterserver.log";
^
MasterServer.cpp: In function ‘int main(int, char**)’:
MasterServer.cpp:260:13: warning: the address of ‘pidFile’ will always evaluate as ‘true’ [-Waddress]
if (pidFile)
^
make: *** [MasterServer] Fehler 1
Thanks for your answers!
Mfg Stone
Answer by ByteSheep · Apr 15, 2014 at 03:27 PM
http://forum.unity3d.com/threads/214801-Master-Server-Compling-Error
You need to edit line 91 of the 'makefile' file in the masterserver folder:
$(CC) $(DEBUG) -I$(INCLUDE) -I$(RAKNET_INCLUDE) -I$(COMMON_INCLUDE) $
(COMMON_OBJECTS) $(RAKNET_OBJECTS) $(PROGRAMSOURCES) -o $(PROGRAMNAME) $(CFLAGS)
(The $(CFLAGS) part needs to be moved to the end of the line)
Setting up the master server can be tricky, for the most part just google the errors you get in the log.
Here is also my recount of setting up a master server on a vps.
http://answers.unity3d.com/questions/678618/unity-master-server-hosted-on-amazon-ec2.html
Thanks now it is running.
I would give you a possitive vote but I doesn't have enougth reputations D:
Np, make sure you click the green arrow under the thumbs up/down buttons though to accept the answer :)
Your answer
Follow this Question
Related Questions
Unity Masterserver on Linux 2 Answers
Help with error,Internal error while connecting to master server. Too many connected peers. 1 Answer
Internal Compiler Error caused by Visual Studio project? 0 Answers
Shader error in ... : Syntax error at line 30 1 Answer
Problem with custom shaders (surface function error) 0 Answers