theshell icon indicating copy to clipboard operation
theshell copied to clipboard

Arch Linux: Multiple errors during compilation

Open halian opened this issue 3 years ago • 7 comments

When attempting to add theShell to my Arch Linux installation, I get the following compilation errors, which cause compilation to fail:

/usr/include/qt/QtCore/qcborstreamreader.h: In member function ‘bool QCborStreamReader::isFalse() const’:
/usr/include/qt/QtCore/qcborstreamreader.h:143:76: error: expected unqualified-id before numeric constant
  143 |     bool isFalse() const            { return isSimpleType(QCborSimpleType::False); }
      |                                                                            ^~~~~
/usr/include/qt/QtCore/qcborstreamreader.h: In member function ‘bool QCborStreamReader::isTrue() const’:
/usr/include/qt/QtCore/qcborstreamreader.h:144:76: error: expected unqualified-id before numeric constant
  144 |     bool isTrue() const             { return isSimpleType(QCborSimpleType::True); }
      |                                                                            ^~~~
In file included from /usr/include/qt/QtCore/qcborstream.h:47,
                 from /usr/include/qt/QtCore/QtCore:41,
                 from /usr/include/qt/QtConcurrent/QtConcurrentDepends:3,
                 from /usr/include/qt/QtConcurrent/QtConcurrent:3,
                 from apps/appslistmodel.h:37,
                 from menu.h:41,
                 from mainwindow.h:41,
                 from background.h:36,
                 from background.cpp:21:
/usr/include/qt/QtCore/qcborstreamreader.h: In member function ‘bool QCborStreamReader::toBool() const’:
/usr/include/qt/QtCore/qcborstreamreader.h:161:80: error: expected primary-expression before ‘int’
  161 |     bool toBool() const                 { Q_ASSERT(isBool()); return value64 - int(QCborSimpleType::False); }
      |                                                                                ^~~
/usr/include/qt/QtCore/qcborstreamreader.h:161:79: error: expected ‘;’ before ‘int’
  161 |     bool toBool() const                 { Q_ASSERT(isBool()); return value64 - int(QCborSimpleType::False); }
      |                                                                               ^~~~
      |                                                                               ;
/usr/include/qt/QtCore/qcborstreamreader.h:161:80: error: expected primary-expression before ‘int’
  161 |     bool toBool() const                 { Q_ASSERT(isBool()); return value64 - int(QCborSimpleType::False); }
      |                                                                                ^~~
In file included from endsessionwait.h:24,
                 from menu.h:35,
                 from mainwindow.h:41,
                 from background.h:36,
                 from background.cpp:21:
/usr/include/qt/QtCore/qcborstreamwriter.h: In member function ‘void QCborStreamWriter::append(bool)’:
/usr/include/qt/QtCore/qcborstreamwriter.h:96:59: error: expected unqualified-id before numeric constant
   96 |     void append(bool b)     { append(b ? QCborSimpleType::True : QCborSimpleType::False); }
      |                                                           ^~~~
In file included from /usr/include/qt/QtCore/qcborstream.h:51,
                 from /usr/include/qt/QtCore/QtCore:41,
                 from /usr/include/qt/QtConcurrent/QtConcurrentDepends:3,
                 from /usr/include/qt/QtConcurrent/QtConcurrent:3,
                 from apps/appslistmodel.h:37,
                 from menu.h:41,
                 from mainwindow.h:41,
                 from background.h:36,
                 from background.cpp:21:
/usr/include/qt/QtCore/qcborstreamwriter.h:96:57: error: expected ‘:’ before numeric constant
   96 |     void append(bool b)     { append(b ? QCborSimpleType::True : QCborSimpleType::False); }
      |                                                         ^
      |                                                         :

halian avatar Sep 07 '20 14:09 halian

ive been experiencing the same thing! trying to compile on my arch linux installation brought up this near the end:

make[1]: *** [Makefile:2154: background.o] Error 1
make[1]: Leaving directory '/home/karkat/git/theshell/src/theshell-8.0.1/shell'
make: *** [Makefile:50: sub-shell-make_first] Error 2

there were also many errors involving package dependencies, in which i had to go through and download around 10 or so of them because it wouldnt do so automatically. i think it needs to be updated, maybe? not sure.

foxsouns avatar Dec 03 '20 20:12 foxsouns

heres the compilation after a retry. https://pastebin.com/bB7WCa0c

foxsouns avatar Dec 03 '20 20:12 foxsouns

Hey, thanks for letting me know. I've fixed compilation errors on the blueprint version of theShell, so give the theshell-blueprint package a go and let me know if it works.

I'd also like to draw your attention to theDesk, which is under active development and will be replacing theShell in the future: https://github.com/vicr123/thedesk

vicr123 avatar Dec 03 '20 23:12 vicr123

@vicr123 Blueprint doesn't work, unfortunately; it fails due to a missing file, to wit:

In file included from networkmanager/connectioneditor/devicesettingsmodel.cpp:30:
networkmanager/connectioneditor/panes/simpinpane.h:24:10: fatal error: modem.h: No such file or directory
   24 | #include <modem.h>
      |          ^~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:1101: devicesettingsmodel.o] Error 1
make[2]: Leaving directory '/home/halian/.cache/yay/theshell-blueprint/src/theshell-blueprint-repo/statuscenter/NetworkPane'
make[1]: *** [Makefile:182: sub-NetworkPane-make_first] Error 2
make[1]: Leaving directory '/home/halian/.cache/yay/theshell-blueprint/src/theshell-blueprint-repo/statuscenter'
make: *** [Makefile:103: sub-statuscenter-make_first] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: theshell-blueprint

halian avatar Dec 10 '20 20:12 halian

Hey there, check if modemmanager-qt is installed. Should be a dependency but I think I might have missed it.

vicr123 avatar Dec 11 '20 01:12 vicr123

Hey there, check if modemmanager-qt is installed. Should be a dependency but I think I might have missed it.

It was not installed, so it was missed as a dependency in the AUR; now that it is, synaptics-properties.h is missing, causing a compilation failure on Input/mousepane.cpp.

halian avatar Dec 11 '20 15:12 halian

xf86-input-synaptics is the package you need :)

vicr123 avatar Dec 13 '20 06:12 vicr123