Author Topic: Can't install ptokax in ubuntu  (Read 135 times)

0 Members and 1 Guest are viewing this topic.

Offline unknown[#]

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
Can't install ptokax in ubuntu
« on: 15 August, 2019, 09:35:25 »
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: [Select]
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

How can I fix this ?

PtokaX forum

Can't install ptokax in ubuntu
« on: 15 August, 2019, 09:35:25 »

Offline PPK

  • Administrator
  • Emperor
  • *****
  • Posts: 1 481
  • Karma: +209/-22
  • PtokaX developer
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

PtokaX forum

Re: Can't install ptokax in ubuntu
« Reply #1 on: 15 August, 2019, 15:48:35 »