Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

[solved] can't compile moolticute

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

[solved] can't compile moolticute

  • Quote

Post by khippy » Fri Nov 13, 2015 9:49 am

See, I have a Mooltipass Box and want to give Moolticute a try.

Raouls github page says, his software needs QT5 which I assume, do have.

So I gave it a shot:

Code: Select all

# mkdir build
# cd build
# qmake ../Moolticute.pro
# make
make -f Makefile.daemon 
make[1]: Entering directory '/usr/local/src/git/moolticute/build'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I. -o main_daemon.o ../src/main_daemon.cpp
In file included from ../src/main_daemon.cpp:20:0:
../src/AppDaemon.h:22:24: fatal error: QApplication: No such file or directory
 #include <QApplication>
                        ^
compilation terminated.
Makefile.daemon:313: recipe for target 'main_daemon.o' failed
make[1]: *** [main_daemon.o] Error 1
make[1]: Leaving directory '/usr/local/src/git/moolticute/build'
Makefile:38: recipe for target 'sub-daemon-pro-make_default' failed
make: *** [sub-daemon-pro-make_default] Error 2

# locate QApplication
/usr/include/qt4/QtGui/QApplication
/usr/include/qt5/QtGui/QApplicationStateChangeEvent
/usr/include/qt5/QtWidgets/QApplication

You see, qmake is obviously using QT4.

Good. I googled and then I used

Code: Select all

# qmake -qt=5 ../Moolticute.pro
# make
( test -e Makefile.daemon || /usr/lib64/qt5/bin/qmake /usr/local/src/git/moolticute/daemon.pro -o Makefile.daemon ) && make -f Makefile.daemon 
make[1]: Entering directory '/usr/local/src/git/moolticute/build'
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I. -o main_daemon.o ../src/main_daemon.cpp
In file included from ../src/main_daemon.cpp:20:0:
../src/AppDaemon.h:22:24: fatal error: QApplication: No such file or directory
 #include <QApplication>
                        ^
compilation terminated.
Makefile.daemon:313: recipe for target 'main_daemon.o' failed
make[1]: *** [main_daemon.o] Error 1
make[1]: Leaving directory '/usr/local/src/git/moolticute/build'
Makefile:41: recipe for target 'sub-daemon-pro-make_first' failed
make: *** [sub-daemon-pro-make_first] Error 2
This time it uses qmake version 5 but includes files from QT4.

Now google didn't help anymore and I need assistance.

What can I do?
Last edited by khippy on Sat Nov 21, 2015 11:04 am, edited 1 time in total.
--
there are no silly questions
Top
kikko
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Apr 29, 2014 11:31 am
Location: Milan, IT

  • Quote

Post by kikko » Fri Nov 13, 2015 6:59 pm

Hi khippy

Code: Select all

fatal error: QApplication: No such file or directory
there is something missing... and that is the inclusion of /usr/include/qt4/QtGui/QApplication header file (or of its QT5 counterpart)

In the various "-I" options passed to the compiler, no one includes /usr/include/qt4/QtGui/ nor /usr/include/qt5/QtWidgets/:

Code: Select all

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I. -o main_daemon.o ../src/main_daemon.cpp
If the developer says it requires for qt5, I suggest you to go for that
Anyway, are you trying this on a Gentoo system?

Regards
Top
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

  • Quote

Post by khippy » Fri Nov 13, 2015 8:28 pm

I do. I am at a gentoo forum, right? :wink:

I have no clue how to prepare a QT5 environment at my system which has QT4 as default and QT5 aswell.
I have also opened an issue at Raoulh's repository but he has no clue about Gentoo.
--
there are no silly questions
Top
kikko
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Apr 29, 2014 11:31 am
Location: Milan, IT

  • Quote

Post by kikko » Fri Nov 13, 2015 8:57 pm

khippy wrote:I do. I am at a gentoo forum, right? :wink:
Sadly, this is not so obvious for many people... :x

Anyway, a QT5 application that includes all those "/usr/include/qt4/whatever" headers looks strange to me...

Just to confirm that this is the problem, you can run that

Code: Select all

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I. -o main_daemon.o ../src/main_daemon.cpp
by hand, from the /usr/local/src/git/moolticute/build directory, adding the -I/usr/include/qt4/QtGui/ or the -I/usr/include/qt5/QtWidgets/ option to the command
If you are able to compile the expected "main_daemon.o", it is a step ahead

Regards
Top
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

  • Quote

Post by khippy » Sat Nov 14, 2015 9:41 am

Code: Select all

build # g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I. -o main_daemon.o ../src/main_daemon.cpp
In file included from ../src/main_daemon.cpp:20:0:
../src/AppDaemon.h:22:24: fatal error: QApplication: No such file or directory
 #include <QApplication>
                        ^
compilation terminated.
The QT4 includes seem not to be the problem (in between I am pretty shure they are needed), but QApplication still can't be found.
--
there are no silly questions
Top
kikko
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Apr 29, 2014 11:31 am
Location: Milan, IT

  • Quote

Post by kikko » Sat Nov 14, 2015 12:21 pm

Hi khippy
kikko wrote:...adding the -I/usr/include/qt4/QtGui/ or the -I/usr/include/qt5/QtWidgets/ option to the command...
I meant to execute something like this, e.g. for QT4:
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I/usr/include/qt4/QtGui -I. -o main_daemon.o ../src/main_daemon.cpp

Regards
Top
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

  • Quote

Post by khippy » Sun Nov 15, 2015 10:38 am

Ok, I've tried with qt4/QtGui

Code: Select all

g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I/usr/include/qt4/QtGui -I. -o main_daemon.o ../src/main_daemon.cpp 
In file included from ../src/MPManager.h:29:0,
                 from ../src/AppDaemon.h:27,
                 from ../src/main_daemon.cpp:20:
../src/MPDevice_linux.h:22:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>
                    ^
compilation terminated.
... and with qt5/QtWidgets

Code: Select all

build # g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I../../moolticute -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4 -I. -I../../moolticute -I/usr/include/qt5/QtWidgets -I. -o main_daemon.o ../src/main_daemon.cpp 
In file included from /usr/include/qt5/QtWidgets/QApplication:1:0,
                 from ../src/AppDaemon.h:22,
                 from ../src/main_daemon.cpp:20:
/usr/include/qt5/QtWidgets/qapplication.h:45:35: fatal error: QtGui/qguiapplication.h: No such file or directory
 #include <QtGui/qguiapplication.h>
                                   ^
compilation terminated.
Both have new not found errors.

*arrgh* I don't see getting one step further in this case. I am going to check this at a debian machine today.
--
there are no silly questions
Top
kikko
Apprentice
Apprentice
User avatar
Posts: 276
Joined: Tue Apr 29, 2014 11:31 am
Location: Milan, IT

  • Quote

Post by kikko » Sun Nov 15, 2015 3:22 pm

Eureka :P
there is a piece missing in the puzzle: dev-qt/qtwebsockets

I was trying it by myself,and I've faced exactly the errors you have met so far.... but:
- qmake inclusion of "qt4" stuff was suspicious, since project states that QT5 is required instead
- "qmake -v" stated I'was working with QT4:

Code: Select all

kikko@seireitei /tmp/moolticute-master/build $ qmake -v
QMake version 2.01a
Using Qt version 4.8.7 in /usr/lib64/qt4
- I've tried removing everything the build/ directory, starting from scratch. I've used the command qmake -qt=5 ../Moolticute.pro directly in the empty dir
- now make stated "Project ERROR: Unknown module(s) in QT: websockets"
- looking for websocket in Portage, revealed the package stated above; emerged it, make is successful

Regards
Top
khippy
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 79
Joined: Thu Aug 29, 2002 8:32 pm
Location: Braunschweig - Germany
Contact:
Contact khippy
Website

  • Quote

Post by khippy » Sat Nov 21, 2015 11:03 am

Correct!

Emerging dev-qt/qtwebsockets solved the issue.

moolticute compiles fine, now.

Thank you for your help!
--
there are no silly questions
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic