Failed compilation of doomseeker

General help and assistance forum.
Post Reply
Purplebanana
New User
Posts: 7
Joined: Thu Jan 23, 2014 11:45 am

Failed compilation of doomseeker

#1

Post by Purplebanana » Wed Jun 27, 2018 12:05 am

So I'm installing doomseeker & zandronum, everything going as usual but the doomseeker's compilation failed and the errors don't look like something I can fix myself.

I'm using solus (linux).

Exact command I ran:

Code: Select all

cd ~/doomseeker_build/doomseeker/build &&
cmake .. -DCMAKE_BUILD_TYPE=Release &&
make -j$c
And the output (from where it went wrong):

Code: Select all

/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp: In member function ‘void IRCDock::tabCurrentChanged(int)’:
/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:203:31: error: invalid use of incomplete type ‘class QTabBar’
   d->tabWidget->tabBarPublic()->setTabTextColor(index, "");
                               ^~
In file included from /usr/include/QtWidgets/QTabWidget:1:0,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/widgets/qtabwidgetext.h:26,
                 from /home/adam/doomseeker_build/doomseeker/build/src/core/ui_ircdock.h:18,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:24:
/usr/include/QtWidgets/qtabwidget.h:51:7: note: forward declaration of ‘class QTabBar’
 class QTabBar;
       ^~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:203:33: error: invalid use of incomplete type ‘class QTabBar’
   d->tabWidget->tabBarPublic()->setTabTextColor(index, "");
                                 ^~~~~~~~~~~~~~~
In file included from /usr/include/QtWidgets/QTabWidget:1:0,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/widgets/qtabwidgetext.h:26,
                 from /home/adam/doomseeker_build/doomseeker/build/src/core/ui_ircdock.h:18,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:24:
/usr/include/QtWidgets/qtabwidget.h:51:7: note: forward declaration of ‘class QTabBar’
 class QTabBar;
       ^~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp: In member function ‘void IRCDock::titleChangeWithColorOfSenderIfNotFocused()’:
/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:239:31: error: invalid use of incomplete type ‘class QTabBar’
   d->tabWidget->tabBarPublic()->setTabTextColor(tabIndex, caller->titleColor());
                               ^~
In file included from /usr/include/QtWidgets/QTabWidget:1:0,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/widgets/qtabwidgetext.h:26,
                 from /home/adam/doomseeker_build/doomseeker/build/src/core/ui_ircdock.h:18,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:24:
/usr/include/QtWidgets/qtabwidget.h:51:7: note: forward declaration of ‘class QTabBar’
 class QTabBar;
       ^~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:239:33: error: invalid use of incomplete type ‘class QTabBar’
   d->tabWidget->tabBarPublic()->setTabTextColor(tabIndex, caller->titleColor());
                                 ^~~~~~~~~~~~~~~
In file included from /usr/include/QtWidgets/QTabWidget:1:0,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/widgets/qtabwidgetext.h:26,
                 from /home/adam/doomseeker_build/doomseeker/build/src/core/ui_ircdock.h:18,
                 from /home/adam/doomseeker_build/doomseeker/src/core/gui/irc/ircdock.cpp:24:
/usr/include/QtWidgets/qtabwidget.h:51:7: note: forward declaration of ‘class QTabBar’
 class QTabBar;
       ^~~~~~~
make[2]: *** [src/core/CMakeFiles/doomseeker.dir/build.make:1296: src/core/CMakeFiles/doomseeker.dir/gui/irc/ircdock.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:179: src/core/CMakeFiles/doomseeker.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
Really appreciate if anyone can help with this, I'm dying to blow some imps apart!

Purplebanana
New User
Posts: 7
Joined: Thu Jan 23, 2014 11:45 am

Re: Failed compilation of doomseeker

#2

Post by Purplebanana » Wed Jun 27, 2018 12:09 am

Update: I tried again with the stable release and got different errors. Hoping its useful for people smarter than I.

Code: Select all

In file included from /usr/include/string.h:431:0,
                 from /usr/include/QtCore/qarraydata.h:44,
                 from /usr/include/QtCore/qbytearray.h:46,
                 from /usr/include/QtCore/qstring.h:49,
                 from /usr/include/QtCore/qobject.h:47,
                 from /usr/include/QtCore/qthread.h:44,
                 from /usr/include/QtCore/QThread:1,
                 from /home/adam/doomseeker_build/doomseeker/src/core/global.h:5,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.h:26,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.cpp:23:
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:37:19: error: variable ‘MAIN_EXPORT Strings’ has initializer but incomplete type
 class MAIN_EXPORT Strings
                   ^~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:39:2: error: expected primary-expression before ‘public’
  public:
  ^~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:39:2: error: expected ‘}’ before ‘public’
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:39:2: error: expected ‘,’ or ‘;’ before ‘public’
In file included from /usr/include/string.h:431:0,
                 from /usr/include/QtCore/qarraydata.h:44,
                 from /usr/include/QtCore/qbytearray.h:46,
                 from /usr/include/QtCore/qstring.h:49,
                 from /usr/include/QtCore/qobject.h:47,
                 from /usr/include/QtCore/qthread.h:44,
                 from /usr/include/QtCore/QThread:1,
                 from /home/adam/doomseeker_build/doomseeker/src/core/global.h:5,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.h:26,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.cpp:23:
/home/adam/doomseeker_build/doomseeker/src/core/strings.h: In function ‘QString& trim(QString&, const QString&)’:
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:157:78: error: ‘triml’ was not declared in this scope
   static QString& trim(QString& str, const QString& charList) { return trimr(triml(str, charList), charList); }
                                                                              ^~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:157:78: note: suggested alternative: ‘trim’
   static QString& trim(QString& str, const QString& charList) { return trimr(triml(str, charList), charList); }
                                                                              ^~~~~
                                                                              trim
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:157:72: error: ‘trimr’ was not declared in this scope
   static QString& trim(QString& str, const QString& charList) { return trimr(triml(str, charList), charList); }
                                                                        ^~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:157:72: note: suggested alternative: ‘trim’
   static QString& trim(QString& str, const QString& charList) { return trimr(triml(str, charList), charList); }
                                                                        ^~~~~
                                                                        trim
/home/adam/doomseeker_build/doomseeker/src/core/strings.h: At global scope:
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:174:2: error: expected unqualified-id before ‘protected’
  protected:
  ^~~~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:184:21: error: uninitialized const ‘RANDOM_CHAR_POOL’ [-fpermissive]
   static const char RANDOM_CHAR_POOL[RANDOM_CHAR_POOL_SIZE];
                     ^~~~~~~~~~~~~~~~
/home/adam/doomseeker_build/doomseeker/src/core/strings.h:187:43: error: ‘DataUnit’ has not been declared
   static float scaleDataUnit(float bytes, DataUnit& outUnit);
                                           ^~~~~~~~
In file included from /usr/include/features.h:428:0,
                 from /usr/include/c++/7.3.0/x86_64-solus-linux/bits/os_defines.h:39,
                 from /usr/include/c++/7.3.0/x86_64-solus-linux/bits/c++config.h:533,
                 from /usr/include/c++/7.3.0/type_traits:38,
                 from /usr/include/QtCore/qglobal.h:45,
                 from /usr/include/QtCore/QtGlobal:1,
                 from /home/adam/doomseeker_build/doomseeker/src/core/global.h:4,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.h:26,
                 from /home/adam/doomseeker_build/doomseeker/src/core/application.cpp:23:
/usr/include/string.h:498:1: error: expected declaration before ‘}’ token
 __END_DECLS
 ^
make[2]: *** [src/core/CMakeFiles/doomseeker.dir/build.make:449: src/core/CMakeFiles/doomseeker.dir/application.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:179: src/core/CMakeFiles/doomseeker.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

User avatar
Zalewa
Developer
Posts: 329
Joined: Wed May 30, 2012 3:28 pm

Re: Failed compilation of doomseeker

#3

Post by Zalewa » Fri Jun 29, 2018 7:41 pm

Build from the tip. 1.1 suffers from naming conflicts with glibc which was only fixed in https://bitbucket.org/Doomseeker/doomse ... 147bf25302

Please try running cmake-gui and checking if all Qt dependencies have been detected. QTabBar is a part of the Qt framework located in the widgets module. It seems there were some problems with finding that on your machine.

You may also try opening src/core/gui/irc/ircdock.cpp file in a text editor and adding

Code: Select all

#include <QTabBar>
somewhere around other Qt includes at the top of the file.

Post Reply