Menu

QT errors on compliation

Help
MBWD
2014-01-10
2014-01-11
  • MBWD

    MBWD - 2014-01-10

    I am trying to compile the latest version of smb4k (I had an older version installed, and for some reason, it 'browsed' to my share -- but assigned it the ip address of my laptop and, conversely, assigned my share address to my laptop).

    So in the process of trying to compile, I get this error:

    -- Found Qt-Version 5.0.2 (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/mbwd/tmp/smb4k-1.1.0/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:13 (find_package)

    I have QT5 installed. And after this error, and searching around, I installed QT4 as well. But still getting the error.

    I would really love to compile this new version!!!

     
    • Alexander Reinholdt

      The following steps should enable you to compile Smb4K:

      • Make sure Qt 4.8 including the development files is installed.
      • Add the following argument to your cmake command: -DQT_QMAKE_EXECUTABLE=`which qmake-qt4`

      If that should not suffice, please also do

      • Also add the following argument to your cmake command: -DQT_INCLUDE_DIR=/usr/include/qt4 (This is correct for Debian and Kubuntu, for another distribution, please check the path.)

      If still errors occur, please drop a note with the error message.

       

      Last edit: Alexander Reinholdt 2014-01-10
  • MBWD

    MBWD - 2014-01-10

    Thank Alexander. I used your suggested arguments and it worked (with a minor error reported). This was my final entry:

    $ cmake -DCMAKE_INSTALL_PREFIX=kde4-config --prefix -DQT_QMAKE_EXECUTABLE=which qmake-qt4 -DQT_INCLUDE_DIR=/usr/include/qt4 -DCMAKE_BUILD_TYPE=Release ..

    I did get this error, at which time the installation process crashed (it got past building, but crashed at installation):

    mbwd@mbwd-Q501LA:~/smb4k-1.1.0/build$ kbuildsycoca4 running...
    Error: "/var/tmp/kdecache-mbwd" is owned by uid 1000 instead of uid 0.
    kbuildsycoca4(6076) KConfigGroup::readXdgListEntry: List entry Actions in "/usr/lib/libreoffice/share/xdg/math.desktop" is not compliant with XDG standard (missing trailing semicolon).

    That said, I can open the program and it says it is version 1.1.0. So it worked!

    Thanks again!

     

    Last edit: MBWD 2014-01-11
    • Alexander Reinholdt

      OK, good. I hope you enjoy our newest release.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.