PtokaX > Support

Can't install ptokax in ubuntu

(1/1)

unknown[#]:
Hello, I am unable to install PtokaX in Ubuntu. I have already installed the prerequisites : Make, g++, zlib, tinyxml, Lua 5.3, SQLite. Upon compiling I get the following error:


--- Code: ---username@pc:~/Downloads/DC/0.5.2.2-nix-src/PtokaX$ make -f makefile-sqlite lua52
c++ -O -g -Wall -Wextra -D_WITH_SQLITE -Iskein/Optimized_32bit -I/usr/include -I/usr/include/lua5.2 -c /home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp -o /home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/obj/SettingManager.o
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp: In member function ‘void SettingManager::Save()’:
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp:507:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
      if(SetBoolCom[szi] != '\0') {
                            ^~~~
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp:530:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
      if(SetShortCom[szi] != '\0') {
                             ^~~~
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp:553:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
      if(SetTxtCom[szi] != '\0') {
                           ^~~~
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp: In member function ‘void SettingManager::SetText(size_t, const char*, size_t)’:
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp:1112:41: warning: this statement may fall through [-Wimplicit-fallthrough=]
             if(szLen == 0 || szLen > 64 || strpbrk(sTxt, " $|") != NULL) {
                                         ^
/home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/core/SettingManager.cpp:1115:9: note: here
         case SETTXT_TCP_PORTS:
         ^~~~
make: *** [makefile-sqlite:331: /home/username/Downloads/DC/0.5.2.2-nix-src/PtokaX/obj/SettingManager.o] Error 1

--- End code ---

How can I fix this ?

PPK:
Fix is here http://forum.ptokax.org/index.php?topic=9238.msg82393#msg82393

Navigation

[0] Message Index

Go to full version