-
-
Notifications
You must be signed in to change notification settings - Fork 127
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
Unable to compile Skyscraper on openSUSE Tumbleweed #328
Comments
Hi, Skyscraper is complaining about missing QCommandLineParser. I don't use OpenSUSE so I'm not of much help with this. Basically you are missing pieces of Qt5 in your system and you need to figure out how to install those. Then Skyscraper will compile as expected. |
Yah, I know that's what it's complaining about. Just has me confused as
libqt5core5 is opensuses's version of qt core, which from what I found
contains that library. I'll have to do some checking.
…On Thu, Jan 20, 2022, 1:30 AM Lars Muldjord ***@***.***> wrote:
Hi, Skyscraper is complaining about missing QCommandLineParser. I don't
use OpenSUSE so I'm not of much help with this. Basically you are missing
pieces of Qt5 in your system and you need to figure out how to install
those. Then Skyscraper will compile as expected.
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMAMW46O4KVSRMFSGB5MYITUW7I2LANCNFSM5MLUAMPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
So here is a list of all of the qt packages that I have installed. Is there a particular package that is needed by Skyscraper that is missing? kyle openSUSEDesktop ~ pkg-config --list-all | grep --ignore-case qt Qt5Core Qt5 Core - Qt Core module Thanks. |
QCommandLineParser is part of the Qt5 core library. It needs at least Qt 5.2 to be available (that's where QCommandLineParser was introduced). If you have that I don't know why it won't find it on OpenSUSE. Sorry. |
Ok, so I found the problem, but still need a little help. Apparently, QCommandLineParser, and QCommandLineOptions are not stored in /usr/include//QtCore/ like your files assume, but is stored in /usr/include/qt5/QtCore. I tried manually changing that in the auto-generated Makefile, but then I get the following errors. kyle openSUSEDesktop ../skyscraper-3.7.1 make g++ -c -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DVERSION="" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/qt5/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I. -o main.o src/main.cpp I think that I'm going to spin up a virtual machine and build an AppImage on an Ubuntu VM of your latest release just to side step all this file path nonsense. |
It's really odd that an OpenSUSE Qt5 installation doesn't have the files in the location qmake generates the makefile for. There's nothing in my files that tells the system to look for the files a specific place. That's all done by qmake. An AppImage should work. |
Well, I have qmake installed via a community package as I couldn't find it
in the distro repos, which seems odd. That may be the problem there. I'm
new to openSUSE, so I'll have to look into that matter. In the meantime
I'll try my hand at building an AppImage. If I do, I'll shoot you a link to
it on a GitHub repo for linking if you'd like. If I get it working without
an AppImage, I'll also post the openSUSE install instructions here for
reference.
Thanks again for all your help and an awesome piece of software.
…On Thu, Jan 20, 2022, 3:28 PM Lars Muldjord ***@***.***> wrote:
It's really odd that an OpenSUSE Qt5 installation doesn't have the files
in the location qmake generates the makefile for. There's nothing in my
files that tells the system to look for the files a specific place. That's
all done by qmake.
An AppImage should work.
—
Reply to this email directly, view it on GitHub
<#328 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMAMW47GP77DYXYVBKLP3WLUXCLBLANCNFSM5MLUAMPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
OK, so I got everything to compile and install. Here's the low down... I had thought that I had qmake installed via a community package, which I had originally, but I uninstalled that and installed it via the openSUSE repos via the package Then, in order to to get Skyscraper to compile with the proper qt version, one can either change the So, to summarize...to install Skyscraper on openSUSE: sudo zypper install libqt4-devel Change qmake command in update_skyscraper.sh script to /usr/bin/qmake-qt5 or update QTDIR environmental variable to point to qt5. Hope this helps someone in the future. |
Thank you for the information. It's good to have it here for others to see. |
Describe the bug
Unable to build on openSUSE Tumbleweed. Compiler errors out.
To Reproduce
Compile on current openSUSE Tumbleweed (KDE Desktop). Qt5 dev packages are installed, including libqt5core5 packages.
Special circumstances
Terminal output
g++ -c -pipe -std=c++11 -O2 -Wall -W -D_REENTRANT -DVERSION=\"3.7.1\" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include -I. -I. -o main.o src/main.cpp src/main.cpp:47:10: fatal error: QCommandLineParser: No such file or directory 47 | #include <QCommandLineParser> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:623: main.o] Error 1
Technical information
Additional context
The text was updated successfully, but these errors were encountered: