Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building against org.kde.{Sdk,Platform}//5.12 doesn't work #154

Closed
AdrianKoshka opened this issue Oct 15, 2018 · 5 comments
Closed

Building against org.kde.{Sdk,Platform}//5.12 doesn't work #154

AdrianKoshka opened this issue Oct 15, 2018 · 5 comments
Assignees
Labels
bug Something isn't working linux Related to Linux

Comments

@AdrianKoshka
Copy link

AdrianKoshka commented Oct 15, 2018

Operating Systems

Build machine: Debian Stretch (Google cloud shell)

Barrier Version

2.1.1

TL;DR of it

Right now, the flatpak for barrier is built against org.kde.{Sdk,Platform//5.10. 5.11 is available and is what the windows build uses (5.11.1 specifically for windows). Though attempting to build against 5.11 fails.

Output

[140/181] Building CXX object src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o
FAILED: src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o 
/usr/bin/c++   -DBARRIER_BUILD_DATE=\"20181015\" -DBARRIER_BUILD_NUMBER=1 -DBARRIER_REVISION=\"773a0081\" -DBARRIER_VERSION=\"2.1.0-snapshot\" -DBARRIER_VERSION_STAGE=\"snapshot\" -DBARRIER_VERSION_STRING=\"2.1.0-snapshot-snapshot.b1-773a0081\" -DHAVE_CONFIG_H -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -Isrc/gui -isystem ./ext/gtest/include -Isrc/./lib -Isrc/lib -Isrc/gui/./src -isystem /usr/include/QtCore -isystem /usr/lib/mkspecs/linux-g++ -isystem /usr/include/QtWidgets -isystem /usr/include/QtGui -isystem /usr/include/QtNetwork -O2 -g -I/app/include/avahi-compat-libdns_sd -fPIC   -fPIC -std=c++14 -MD -MT src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -MF src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o.d -o src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -c /run/build/barrier/src/gui/src/ActionDialog.cpp
/run/build/barrier/src/gui/src/ActionDialog.cpp: In constructor ‘ActionDialog::ActionDialog(QWidget*, ServerConfig&, Hotkey&, Action&)’:
/run/build/barrier/src/gui/src/ActionDialog.cpp:35:45: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType(new QButtonGroup(this))
                                             ^
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:44:27: error: invalid use of incomplete type ‘class QButtonGroup’
         m_pButtonGroupType->addButton(typeButtons[i], i);
                           ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:48:23: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType->button(m_Action.type())->setChecked(true);
                       ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp: In member function ‘virtual void ActionDialog::accept()’:
/run/build/barrier/src/gui/src/ActionDialog.cpp:78:57: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                         ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:78:97: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                                                                 ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:82:40: error: invalid use of incomplete type ‘class QButtonGroup’
     m_Action.setType(m_pButtonGroupType->checkedId());
                                        ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
@AdrianKoshka AdrianKoshka added bug Something isn't working linux Related to Linux labels Oct 15, 2018
@AdrianKoshka AdrianKoshka self-assigned this Oct 23, 2018
@AdrianKoshka AdrianKoshka pinned this issue Dec 16, 2018
@AdrianKoshka
Copy link
Author

AdrianKoshka commented Dec 16, 2018

[68/181] Building CXX object src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o
FAILED: src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o 
/run/ccache/bin/c++   -DBARRIER_BUILD_DATE=\"20181216\" -DBARRIER_BUILD_NUMBER=1 -DBARRIER_REVISION=\"773a0081\" -DBARRIER_VERSION=\"2.1.0-snapshot\" -DBARRIER_VERSION_STAGE=\"snapshot\" -DBARRIER_VERSION_STRING=\"2.1.0-snapshot-snapshot.b1-773a0081\" -DHAVE_CONFIG_H -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -Isrc/gui -isystem ./ext/gtest/include -Isrc/./lib -Isrc/lib -Isrc/gui/./src -isystem /usr/include/QtCore -isystem /usr/lib/mkspecs/linux-g++ -isystem /usr/include/QtWidgets -isystem /usr/include/QtGui -isystem /usr/include/QtNetwork -O2 -g -I/app/include/avahi-compat-libdns_sd -fPIC   -fPIC -std=c++14 -MD -MT src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -MF src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o.d -o src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -c /run/build/barrier/src/gui/src/ActionDialog.cpp
/run/build/barrier/src/gui/src/ActionDialog.cpp: In constructor ‘ActionDialog::ActionDialog(QWidget*, ServerConfig&, Hotkey&, Action&)’:
/run/build/barrier/src/gui/src/ActionDialog.cpp:35:45: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType(new QButtonGroup(this))
                                             ^
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:44:27: error: invalid use of incomplete type ‘class QButtonGroup’
         m_pButtonGroupType->addButton(typeButtons[i], i);
                           ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:48:23: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType->button(m_Action.type())->setChecked(true);
                       ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp: In member function ‘virtual void ActionDialog::accept()’:
/run/build/barrier/src/gui/src/ActionDialog.cpp:78:57: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                         ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:78:97: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                                                                 ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
/run/build/barrier/src/gui/src/ActionDialog.cpp:82:40: error: invalid use of incomplete type ‘class QButtonGroup’
     m_Action.setType(m_pButtonGroupType->checkedId());
                                        ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44:0,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/ui_ActionDialogBase.h:21,
                 from /run/build/barrier/src/gui/src/ActionDialog.h:25,
                 from /run/build/barrier/src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
[71/181] Building CXX object src/lib/barrier/CMakeFiles/synlib.dir/DragInformation.cpp.o
ninja: build stopped: subcommand failed.
Error: module barrier: Child process exited with code 1
make: *** [Makefile:8: build] Error 1

@AdrianKoshka
Copy link
Author

Closing this to see if I can build against 5.12 instead.

@AdrianKoshka AdrianKoshka unpinned this issue Jan 12, 2019
@AdrianKoshka AdrianKoshka changed the title Building against org.kde.{Sdk,Platform}//5.11 doesn't work Building against org.kde.{Sdk,Platform}//5.12 doesn't work Jan 12, 2019
@AdrianKoshka AdrianKoshka reopened this Jan 12, 2019
@AdrianKoshka
Copy link
Author

5.12 fails, but fails differently?

[142/181] Building CXX object src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o
FAILED: src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o
/run/ccache/bin/c++  -DBARRIER_BUILD_DATE=\"20190112\" -DBARRIER_BUILD_NUMBER=1 -DBARRIER_REVISION=\"773a0081\" -DBARRIER_VERSION=\"2.1.0-snapshot\" -DBARRIER_VERSION_STAGE=\"snapshot\" -DBARRIER_VERSION_STRING=\"2.1.0-snapshot-snapshot.b1-773a0081\" -DHAVE_CONFIG_H -DNDEBUG -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DSYSAPI_UNIX=1 -DWINAPI_XWINDOWS=1 -Isrc/gui -Isrc/gui/barrier_autogen/include -Isrc/./lib -Isrc/lib -Isrc/gui/./src -isystem ./ext/gtest/include -isystem /usr/include/QtCore -isystem /usr/lib/mkspecs/linux-g++ -isystem /usr/include/QtWidgets -isystem /usr/include/QtGui -isystem /usr/include/QtNetwork -march=x86-64 -mtune=generic -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -I/app/include/avahi-compat-libdns_sd -fPIC   -fPIC -std=c++14 -MD -MT src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -MF src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o.d -o src/gui/CMakeFiles/barrier.dir/src/ActionDialog.cpp.o -c src/gui/src/ActionDialog.cpp
src/gui/src/ActionDialog.cpp: In constructor ‘ActionDialog::ActionDialog(QWidget*, ServerConfig&, Hotkey&, Action&)’:
src/gui/src/ActionDialog.cpp:35:45: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType(new QButtonGroup(this))
                                             ^
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
src/gui/src/ActionDialog.cpp:44:27: error: invalid use of incomplete type ‘class QButtonGroup’
         m_pButtonGroupType->addButton(typeButtons[i], i);
                           ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
src/gui/src/ActionDialog.cpp:48:23: error: invalid use of incomplete type ‘class QButtonGroup’
     m_pButtonGroupType->button(m_Action.type())->setChecked(true);
                       ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
src/gui/src/ActionDialog.cpp: In member function ‘virtual void ActionDialog::accept()’:
src/gui/src/ActionDialog.cpp:78:57: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                         ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
src/gui/src/ActionDialog.cpp:78:97: error: invalid use of incomplete type ‘class QButtonGroup’
     if (!sequenceWidget()->valid() && m_pButtonGroupType->checkedId() >= 0 && m_pButtonGroupType->checkedId() < 3)
                                                                                                 ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
src/gui/src/ActionDialog.cpp:82:40: error: invalid use of incomplete type ‘class QButtonGroup’
     m_Action.setType(m_pButtonGroupType->checkedId());
                                        ^~
In file included from /usr/include/QtWidgets/qradiobutton.h:44,
                 from /usr/include/QtWidgets/QRadioButton:1,
                 from src/gui/barrier_autogen/include/ui_ActionDialogBase.h:21,
                 from src/gui/src/ActionDialog.h:25,
                 from src/gui/src/ActionDialog.cpp:19:
/usr/include/QtWidgets/qabstractbutton.h:53:7: note: forward declaration of ‘class QButtonGroup’
 class QButtonGroup;
       ^~~~~~~~~~~~
[145/181] Building CXX object src/gui/CMakeFiles/barrier.dir/src/AppConfig.cpp.o
ninja: build stopped: subcommand failed.

@AdrianKoshka
Copy link
Author

Update, I got barrier to build by using the tag v2.1.2

@AdrianKoshka
Copy link
Author

Client and Server appear to be working, finally able to close for good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux Related to Linux
Projects
None yet
Development

No branches or pull requests

2 participants