Giter VIP home page Giter VIP logo

Comments (10)

obiwankennedy avatar obiwankennedy commented on August 28, 2024

hi, You are compiling with Qt4. I made the change to support Qt5 and only Qt5.

-I/usr/share/qt4/

You can try to call qmake-qt5 -r HotShots.pro

from hotshots.

sliptonic avatar sliptonic commented on August 28, 2024

Thanks. A little closer. I have QT5 installed now. If I run qmake-=r HotShots.pro from the build directory, it fails with
/usr/lib/qt5/bin/rcc: File does not exist 'res/hotshots.qrc'

If I run it from the top level, it returns without error but make fails like this:
brad@hairball:~/HotShots$ make
make -f Makefile.Release
make[1]: Entering directory '/home/brad/HotShots'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_MULTIMEDIA_LIB -DQT_X11EXTRAS_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc/3rdparty/qkeysequencewidget -Isrc/3rdparty/QSgml -Isrc/3rdparty/wwWidgets -Isrc/3rdparty/qt-json -Isrc/3rdparty/qxt -Isrc/uploaders -Isrc/editor -Isrc/editor/items -Isrc/editor/widgets -Isrc/editor/io -Isrc -isystem /usr/include/qxt/QxtGui -isystem /usr/include/qxt/QxtCore -isystem /usr/include/QxtGui -isystem /usr/include/QxtCore -I/usr/local/Qxt/include/QxtGui -I/usr/local/Qxt/include/QxtCore -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtPrintSupport -isystem /usr/include/x86_64-linux-gnu/qt5/QtWidgets -isystem /usr/include/x86_64-linux-gnu/qt5/QtMultimedia -isystem /usr/include/x86_64-linux-gnu/qt5/QtX11Extras -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtXml -isystem /usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -Irelease -isystem /usr/include/libdrm -Irelease -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++ -o release/EditorWidget.o src/editor/EditorWidget.cpp
In file included from src/editor/EditorWidget.cpp:42:0:
release/ui_EditorWidget.h:13:10: fatal error: QtGui/QAction: No such file or directory
#include <QtGui/QAction>
^~~~~~~~~~~~~~~
compilation terminated.
Makefile.Release:1335: recipe for target 'release/EditorWidget.o' failed
make[1]: *** [release/EditorWidget.o] Error 1
make[1]: Leaving directory '/home/brad/HotShots'
Makefile:40: recipe for target 'release' failed
make: *** [release] Error 2

from hotshots.

obiwankennedy avatar obiwankennedy commented on August 28, 2024

This code was generated. It may result from the previous compilation with Qt4. You should clean up the directory.
I just push commit to fix compilation issue with Ubuntu 18.04 compiler and Qt5.11. It should work.

from hotshots.

sliptonic avatar sliptonic commented on August 28, 2024

Hmm. No luck. I fetched your last commit and reset --hard to origin/master so the tree is identical.
I still get the same error on make. qt version is 5.9.5 in mint 19

from hotshots.

sliptonic avatar sliptonic commented on August 28, 2024

More progress:

I did:
qmake -r HotShot.pro
make clean
make
The compile looks to have completed correctly but sudo make install does nothing
make[1]: Nothing to be done for 'install'.
All this done from the top level of the tree, not the build directory

from hotshots.

obiwankennedy avatar obiwankennedy commented on August 28, 2024

if you run uic --version, what's the output ?

from hotshots.

sliptonic avatar sliptonic commented on August 28, 2024

5.9.5

BTW launching the binary from the release directory works! Just need the install now. Thanks.

from hotshots.

obiwankennedy avatar obiwankennedy commented on August 28, 2024

OK good news. I did not put any install rules. I will do so, this weekend as it looks important to you.

from hotshots.

obiwankennedy avatar obiwankennedy commented on August 28, 2024

I added installation rules in the qmake file. It should work now.

from hotshots.

sliptonic avatar sliptonic commented on August 28, 2024

confirmed. Thank you. One note. The INSTALL.txt file says to do the qmake/make from the build directory. This didn't work for me. I had to do it from the parent. You might want to revise the instructions.

from hotshots.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.