• # Erreurs de compilation sous Debian Sid

    Posté par (site web personnel) . En réponse à la dépêche Sortie d'UltraCopier 0.2 et Catchcopy. Évalué à 3.

    Erreur cmake 2.6 :
    marge$ mkdir build
    marge$ cd build
    marge$ cmake -C ..
    loading initial cache file ..
    (...)
    CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
    ERROR: cmake/modules/FindKDE4Internal.cmake not found in
    /home/haypo/.kde/share/apps;/usr/share/kde4/apps
    Call Stack (most recent call first):
    CMakeLists.txt:3 (find_package)


    CMake Warning (dev) in CMakeLists.txt:
    No cmake_minimum_required command is present. A line of code such as

    cmake_minimum_required(VERSION 2.6)

    should be added at the top of the file. The version specified may be lower
    if you wish to support older CMake versions for this project. For more
    information run "cmake --help-policy CMP0000".
    This warning is for project developers. Use -Wno-dev to suppress it.

    -- Configuring incomplete, errors occurred!

    Euh, tout ça pour me dire que les outils de développement KDE ne sont pas installés ! Après un "sudo apt-get install kdelibs5-dev" :
    (...)
    CMake Error at /usr/share/kde4/apps/cmake/modules/FindQt4.cmake:1258 (FILE):
    file Internal CMake error when trying to open file:
    /home/haypo/ultra/src/resources_X11.qrc for reading.
    Call Stack (most recent call first):
    src/CMakeLists.txt:33 (QT4_ADD_RESOURCES)

    Après avoir bidouillé un fichier ../src/resources_X11.qrc bidon (fichier RCC vide) :
    CMake Error in src/CMakeLists.txt:
    Cannot find source file "AddFolderThread.cpp". Tried extensions .c .C .c++
    .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx

    Effectivement, le fichier en question n'existe pas. En remplaçant AddFolderThread.cpp par AddFolder.cpp dans src/CMakeLists.txt ça a l'air enfin ok ;-)

    --

    avec qmake :
    marge$ cd src
    marge$ qmake -project
    marge$ qmake
    marge$ make
    (...)
    In file included from CopyThread.h:26,
    from CopyThread.cpp:14:
    structDef.h:16:24: error: QLocalSocket: Aucun fichier ou dossier de ce type

    Il s'agit de Qt 4.5.3 sous Debian Sid.