Compile errors on Debian 10.8.0
Posted: Wed Mar 10, 2021 4:32 pm
Hi there
I just tried to get UOX3 running on a freshly installed Debian 10.8.0 x64 but unfortunately I'm getting some errors instead of a binary.
As for the Debian, I downloaded the Netinstall Image and installed only the minimal system requirements.
Then I pretty much followed the "How to compile UOX3......under Linux" from https://github.com/UOX3DevTeam/UOX3.
When I execute the automake.sh I get the following errors:
I'd appreciate if someone could point me into the right direction.
Thanks in advance!
I just tried to get UOX3 running on a freshly installed Debian 10.8.0 x64 but unfortunately I'm getting some errors instead of a binary.
As for the Debian, I downloaded the Netinstall Image and installed only the minimal system requirements.
Then I pretty much followed the "How to compile UOX3......under Linux" from https://github.com/UOX3DevTeam/UOX3.
When I execute the automake.sh I get the following errors:
Code: Select all
UOXJSMethods.cpp: In function ‘JSBool CFile_Open(JSContext*, JSObject*, uintN, jsval*, jsval*)’:
UOXJSMethods.cpp:5348:21: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char *folderName = "\0";
^~~~
g++ -MT build/UOPInterface.o -MMD -MP -MF ./.deps/UOPInterface.d -std=c++17 -O2 -pthread -I../spidermonkey -I. -c UOPInterface.cpp -o build/UOPInterface.o
UOPInterface.cpp: In function ‘std::__cxx11::string UOP::fixedWidth(uint32_t, int)’:
UOPInterface.cpp:229:14: error: ‘setfill’ is not a member of ‘std’
os<<std::setfill('0')<<std::setw(digitsCount)<<value;
^~~~~~~
UOPInterface.cpp:229:14: note: suggested alternative: ‘fill’
os<<std::setfill('0')<<std::setw(digitsCount)<<value;
^~~~~~~
fill
UOPInterface.cpp:229:33: error: ‘setw’ is not a member of ‘std’
os<<std::setfill('0')<<std::setw(digitsCount)<<value;
^~~~
UOPInterface.cpp:229:33: note: suggested alternative: ‘beta’
os<<std::setfill('0')<<std::setw(digitsCount)<<value;
^~~~
beta
make: *** [Makefile:24: build/UOPInterface.o] Fehler 1
Thanks in advance!