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
ghost opened this issue Nov 4, 2021 · 0 comments
Closed

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

ghost opened this issue Nov 4, 2021 · 0 comments
Labels
bug Something isn't working platform/linux This issue is affecting at least one system running Linux

Comments

@ghost
Copy link

ghost commented Nov 4, 2021

This issue has been migrated from old Barrier Github repository debauchee/barrier#154

Issue created on: 2018-10-15 by @AdrianKoshka
Issue last updated on: 2019-01-12

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.

Commented on: 2018-12-16 by @AdrianKoshka

[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

Commented on: 2019-01-12 by @AdrianKoshka

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


Commented on: 2019-01-12 by @AdrianKoshka

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.

Commented on: 2019-01-12 by @AdrianKoshka

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


Commented on: 2019-01-12 by @AdrianKoshka

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


Closed on: 2019-01-12 by @AdrianKoshka

@ghost ghost closed this as completed Nov 10, 2021
@ghost ghost added bug Something isn't working platform/linux This issue is affecting at least one system running Linux labels Nov 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform/linux This issue is affecting at least one system running Linux
Projects
None yet
Development

No branches or pull requests

0 participants