- Home /
Unity Masterserver on Linux
Hello i want a own Masterserver on my Linux Server but when i want to compile the Server with "make" in the dir who are the Masterserver files. But i get a error:
MasterServer.cpp:28:17: Warnung: veraltete Konvertierung von Zeichenkettenkonstante in »char*« [-Wwrite-strings]
MasterServer.cpp: In Funktion »int main(int, char**)«:
MasterServer.cpp:259:13: Warnung: Die Adresse von »pidFile« wird immer zu »wahr« auswerten [-Waddress]
RakNet/Sources/SignaledEvent.o: In function `SignaledEvent::InitEvent()':
SignaledEvent.cpp:(.text+0x64): undefined reference to `pthread_mutexattr_init'
RakNet/Sources/SignaledEvent.o: In function `SignaledEvent::CloseEvent()':
SignaledEvent.cpp:(.text+0xbc): undefined reference to `pthread_mutexattr_destroy'
RakNet/Sources/RakThread.o: In function `RakNet::RakThread::Create(void* (*)(void*), void*, int)':
RakThread.cpp:(.text+0x4f): undefined reference to `pthread_attr_setstacksize'
RakThread.cpp:(.text+0x82): undefined reference to `pthread_create'
collect2: ld gab 1 als Ende-Status zurück
make: *** [MasterServer] Fehler 1
I hope you can help me, sorry for my bad english.
Hi there, did you ever find the solution here as I have the exact same problem
Duplicate?
http://answers.unity3d.com/questions/64297/unity-master-server-on-linux.html
It seems it's working for him.
Answer by Giacomino · Sep 23, 2012 at 01:10 PM
Uhm gcc in German! It's really scary ;) As far as I see you have problem in linking not in compiling:
undefined reference to pthread_*
It means that your system lacks development version of libc/libpthread where you can find and link that symbols. If you are more confident with windows OS is like you missing .lib counterpart of some needed .dll. Install -devel (o -dev, the names depends on linux distribution) version of libc and libpthread and rerun make.
Answer by sman_47o · Aug 14, 2012 at 08:34 PM
i think you might need to download the ncurse library. did you run it with make? (sorry i don't own a linux system at the moment but i used to).
Thank you for your answer :D I think i get the ncurses lib with sudo apt-get install libncurses5-dev , but it doesnt work
Your answer
Follow this Question
Related Questions
Ubuntu Master Server - compiler error 1 Answer
How to Start Local MasterServer-2.0? 0 Answers
Unity Master Server - Ubuntu build problem 4 Answers
Method Not Found: 'Network.InitalizeServer' 0 Answers
Running game server on linux server 0 Answers