luebking / virtuality

Qt4/Qt5 widget style
GNU General Public License v2.0
20 stars 7 forks source link

Compilation requirements #2

Closed mtancoigne closed 4 years ago

mtancoigne commented 10 years ago

Hi ! I tried to launch both buildQT4/QT5 and they failed. That may be a good idea to add a list of compilation requirements in the README...

luebking commented 10 years ago

I assume it failed on absence of cmake already? (Otherwise cmake should tell you what's missing)

mtancoigne commented 10 years ago

Thanks for your kick answer, but it does not comes from the absence of cmake: I got the following error:

kure@hellbinder-nux:~/bin/virtuality-master$ ./buildQt4.sh
-- Found Qt-Version 5.2.1 (using /usr/bin/qmake)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
QT_QT_INCLUDE_DIR
   used as include directory in directory /home/kure/bin/virtuality-master/.build4/CMakeFiles/CMakeTmp

CMake Error: Internal CMake error, TryCompile configure of cmake failed

CMake Error at /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:1311 (message):
  Unable to compile a basic Qt application.  Qt has not been found correctly.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (find_package)
  CMakeLists.txt:19 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/kure/bin/virtuality-master/.build4/CMakeFiles/CMakeOutput.log".
See also "/home/kure/bin/virtuality-master/.build4/CMakeFiles/CMakeError.log".
CONFIGURATION FAILED :-(
luebking commented 10 years ago

That looks like a mixed Qt5/Qt4 setup (you're trying to build Qt4, but Qt5 is found by cmake) -> install the "qtchooser" package

I wonder whether it finds Qt4 when trying to build Qt5 ... What distro is this?

mtancoigne commented 10 years ago

It's a kubuntu 14.4 (updated from 13.10)...

I'll take a look as soon as i'm home :)

mtancoigne commented 10 years ago

ok, so I needed libqt5x11extras5-dev and libxrender-dev, then compilation was a success. Now, how must I enable Virtuality in KDE ? it doesn't appear in the decorators list :/

luebking commented 10 years ago

Those are for Qt5, but KDE uses Qt4 (except for some alphas of "plasma next" or whatever it will be called on release ;-) and you're apparently also trying to build for Qt4 (from the error message you posted)

-> The core issue here is that cmake does not correctly resolve Qt on the system (tries to find Qt4 but finds Qt5) and that is very most likely an issue because you lack the qtchooser package that is supposed to juggle Qt4 and Qt5 depending on the current desktop environment (and other stuff)

Building the Qt5 version (though i doubt that could work by using the Qt4 build script, you should rather run into link errors) will however not get you the style for KDE4.

mtancoigne commented 10 years ago

Sorry for my lack of infos :)

I successfully compiled for QT5 with this command : ./buildQT5.sh -qt 5, as I already have the qtchooser package installed. The build was a success, and generated files where copied in the /usr/... dirs.

I wasn't aware of the dev state of QT5, so i'll try to compile for QT4 using the same method :)

Thanks for your help !