Menu

Problems with cmake on AMD64 ubuntu 8.04

Help
2008-05-08
2013-01-15
  • Kenneth Roy Cabrera Torres

    kenneth@ubuntu-desktop:~/downloads/rkward/rkward-0.5.0b$ cmake .
    Hello dear developers:

    I try to compile rkward on ubuntu 8.04 AMD64 with kde4 and qt4 libs and headers.

    But when I call cmake . I got the following

    --- snip ---

    -- Found Qt-Version 4.4.0 (using /usr/bin/qmake-qt4)
    -- Found X11: /usr/lib/libX11.so
    CMake Error: This project requires some variables to be set,
    and cmake can not find them.
    Please set the following variables:
    QT_QT_INCLUDE_DIR

    CMake Error: Internal CMake error, TryCompile configure of cmake failed
    CMake Error: Could not compile simple test program:
    #include <QtCore/QtGlobal>
    int main()
    {
    #ifdef QT_VISIBILITY_AVAILABLE
    return 0;
    #else
    return 1;
    #endif
    }

    -- Configuring done

    PS:
    The command uname -a shows
    uname -a
    Linux ubuntu-desktop 2.6.24-16-rt #1 SMP PREEMPT RT Thu Apr 10 14:04:43 UTC 2008 x86_64 GNU/Linux

    Would you please help me?

     
    • Kenneth Roy Cabrera Torres

      One more situation:

      I comple rkward on a x86 machine on ubuntu x86 8.04 and it works fine!

      Thank you for your help.

      Kenneth

       
      • Johannes Ranke

        Johannes Ranke - 2008-05-08

        Hi,

        just to avoid the impression that rkward can not be compiled on amd64 - I just did that (built against a fresh compile of KDE trunk). When compiling KDE 4 software, I use the recipe from

        http://techbase.kde.org/Getting_Started/Increased_Productivity_in_KDE4_with_Scripts

        which works fine. I don't know what's the state of KDE 4 in Ubuntu 8.04, though. Should be fine, too, I believe.

        Best regards,

        Johannes Ranke

         
    • Kenneth Roy Cabrera Torres

      Thank youi Dr. Johannes Ranke (hazzy) for your answer.

      So, I must compile KDE 4, from source on a amd64 platform?
      Did I understand right?

      But, why it works on a x86 UBUNTU 8.04 platform, but not on
      a AMD64 one?
      I read the link you sent, but, it is a developer issue.
      I am a simple final user...

      Im trying to compile the last version of rkward, because
      on the respositories the last rkward version doesn't work either.

      I want to know if there a simple workaround for this problems,
      or if somebody had the same problem too, and how did he/she
      solved.

      Thank you for your help.

      Kenneth

       
    • Johannes Ranke

      Johannes Ranke - 2008-05-09

      Dear Kenneth,

      no, you do not have to compile KDE 4 from sources. Because of my limited knowledge of cmake, I think someone else should answer this. I wonder why cmake is looking for such a strange environmental variable like QT_QT_INCLUDE_DIR. Are you sure this is not a cut and paste error? Maybe you just need to set the QT_INCLUDE_DIR variable to the correct location. I wonder how you have QT 4.4 on your system, did you compile that from sources? The version in hardy of libqt4-dev is 4.3.4

      Best regards,

      Johannes Ranke

       
      • Kenneth Roy Cabrera Torres

        Thank you Hazzy (Dr. Johannes Ranke), for your answer.

        No, the error message show me that strange variable:

        "QT_QT_INCLUDE_DIR"

        with double QT

        I repeat the cut and paste form the error message:

        -- Found Qt-Version 4.4.0 (using /usr/bin/qmake-qt4)
        -- Found X11: /usr/lib/libX11.so
        CMake Error: This project requires some variables to be set,
        and cmake can not find them.
        Please set the following variables:
        QT_QT_INCLUDE_DIR

        CMake Error: Internal CMake error, TryCompile configure of cmake failed
        CMake Error: Could not compile simple test program:
        #include <QtCore/QtGlobal>
        int main()
        {
        #ifdef QT_VISIBILITY_AVAILABLE
        return 0;
        #else
        return 1;
        #endif
        }

        -- Configuring done

        How do I set the "QT_INCLUDE_DIR"?
        I test with this commands, are they right?

        export $QT_INCLUDE_DIR=/usr/include/qt4
        export $QT_QT_INCLUDE_DIR=/usr/include/qt4

        But, the problem continues.

        You ask me why do I have QT 4.4 and not the 4.3.4 that is
        the oficial hardy ubuntu release. I do not recompile QT,
        I got it form the repository: (hardy-backports).

        I do reinstall the libqt4-dev, and I still have the problem.

        Do you think I should uninstall the 4.4 QT version, and
        install the 4.3.4 QT version?

        Again, thank you very much for your help.

        Kenneth

         
        • Thomas Friedrichsmeier

          The usual way to set variables to cmake is to specify them in the cmake call like this:

          cmake ../whereever -DQT_INCLUDE_DIR=/usr/include/whereever

          So you could try with that.

          I don't really know, what the problem is, usually this variable should be detected automatically. However it is unlikely that this is a problem in rkward. Have you tried compiling any other KDE4 application?

          BTW, if all else fails, RKWard 0.4.9 had a problem in ubuntu, but a fixed recompiled version has been uploaded to hardy-updates recently. So you could just use that for the time being.

           
          • Kenneth Roy Cabrera Torres

            Dear Dr.Thomas Friedrichsmeier (tfry):

            It works!!!

            I type on the directory where I unzip and untar the tar.gz file.

            cmake . -DQT_QT_INCLUDE_DIR=/usr/include/qt4

            And now it compiles right!
            I install it, and I make some tests and it works fine, until now.

            Any way, I dont'n know why that variable is not set on
            my system, and how can I set it right. I reinstall QT libraries,
            and KDE 4 also.... but it didin't work either.

            Thank you, you are very kind.

            Thanks you, Dr. Friedrichsmeier and Dr. Ranke for your time.

            Have a nice day.

            Kenneth

             
    • Kenneth Roy Cabrera Torres

      Just a typo:

      The commands that I use were:

      export QT_INCLUDE_DIR=/usr/include/qt4
      export QT_QT_INCLUDE_DIR=/usr/include/qt4

      Without "$".

      Still the problem.

      Thank you.

       
      • Johannes Ranke

        Johannes Ranke - 2008-05-09

        Hi again,

        I just checked in

        /usr/share/cmake-2.4/Modules/FindQt4.cmake

        and as far as I understand this cmake module should be setting your $QT_QT_INCLUDE_DIR. But as I said, I don't really understand how cmake works, so someone else might be able to help you better. It's also possible that there is a problem with the QT 4.4 package in hardy-backports.

        Does someone else know more?

        Regards,

        Johannes Ranke