#301 svn-2908 compilation error on Ubuntu 12.04

open
nobody
5
2015-01-02
2012-06-05
No

Hi,

I've tried to compile under Ubuntu 12.04. There is an error:

~$ svn co https://piklab.svn.sourceforge.net/svnroot/piklab/trunk/piklab piklab
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-TQCp1Z/pkcs11: Nincs ilyen fájl vagy könyvtár
Checked out revision 2908.
~/piklab$ [b]cmake .[/b]
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE):
Could NOT find Qt3 (missing: QT_QT_LIBRARY QT_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindQt3.cmake:246 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Piklab.cmake:27 (find_package)
CMakeLists.txt:21 (include)

I've found the QT_ONLY parameter here: http://sourceforge.net/apps/mediawiki/piklab/index.php?title=Compilation_for_Linux
so I've succeeded

~/piklab$ rm CmakeCache.txt
~/piklab$ cmake -D QT_ONLY=1 .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found version "4.8.1")
-- checking for module 'libusb'
-- found libusb, version 0.1.12
-- Found LIBUSB
-- LIBUSB version: 0.1.12
-- Found readline: /usr/lib/x86_64-linux-gnu/libreadline.so
-- Looking for include files HAVE_PPDEV
-- Looking for include files HAVE_PPDEV - found
-- Looking for include files HAVE_PPBUS
-- Looking for include files HAVE_PPBUS - not found.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/lml/Letöltések/piklab-svn/piklab

~/piklab$ make
[...]
Scanning dependencies of target picbase
[ 19%] Building CXX object src/devices/pic/base/CMakeFiles/picbase.dir/pic.o
[ 19%] Building CXX object src/devices/pic/base/CMakeFiles/picbase.dir/pic_config.o
[ 19%] Building CXX object src/devices/pic/base/CMakeFiles/picbase.dir/pic_protection.o
[ 20%] Building CXX object src/devices/pic/base/CMakeFiles/picbase.dir/pic_register.o
Linking CXX static library libpicbase.a
[ 20%] Built target picbase
Scanning dependencies of target pic_xml_to_data
[ 21%] Building CXX object src/devices/pic/xml/CMakeFiles/pic_xml_to_data.dir/pic_xml_to_data.o
Linking CXX executable pic_xml_to_data
[ 21%] Built target pic_xml_to_data
[ 22%] Generating pic_data.cpp
Fatal: Need path as argument
Aborted (core dumped)
make[2]: *** [src/devices/pic/xml_data/pic_data.cpp] Error 134
make[1]: *** [src/devices/pic/xml_data/CMakeFiles/picxml.dir/all] Error 2
make: *** [all] Error 2

It seems pic_data.cpp is not generated.
How can I compile Piklab?

Discussion

  • László Meskó

    László Meskó - 2012-06-05

    Thank you

    Now I've checked out the kde4 version, and now cmake woks without the QT_ONLY parameter.
    However make still has the same problem:

    svn co https://piklab.svn.sourceforge.net/svnroot/piklab/trunk/piklab_kde4
    [...]
    A piklab_kde4/piklab.kdev4
    U piklab_kde4
    Checked out revision 2909.

    lml@lml-N5010:~/Letöltések/piklab-svn/piklab_kde4$ cmake .
    -- The C compiler identification is GNU
    -- The CXX compiler identification is GNU
    -- Check for working C compiler: /usr/bin/gcc
    -- Check for working C compiler: /usr/bin/gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Looking for Q_WS_X11
    -- Looking for Q_WS_X11 - found
    -- Looking for Q_WS_WIN
    -- Looking for Q_WS_WIN - not found.
    -- Looking for Q_WS_QWS
    -- Looking for Q_WS_QWS - not found.
    -- Looking for Q_WS_MAC
    -- Looking for Q_WS_MAC - not found.
    -- Found Qt4: /usr/bin/qmake (found version "4.8.1")
    -- Found Qt-Version 4.8.1 (using /usr/bin/qmake)
    -- Looking for include files CMAKE_HAVE_PTHREAD_H
    -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
    -- Looking for pthread_create in pthreads
    -- Looking for pthread_create in pthreads - not found
    -- Looking for pthread_create in pthread
    -- Looking for pthread_create in pthread - found
    -- Found Threads: TRUE
    -- Looking for _POSIX_TIMERS
    -- Looking for _POSIX_TIMERS - found
    -- Found Automoc4: /usr/bin/automoc4
    -- Found Perl: /usr/bin/perl
    -- Found Phonon: /usr/include
    -- Performing Test _OFFT_IS_64BIT
    -- Performing Test _OFFT_IS_64BIT - Success
    -- Performing Test HAVE_FPIE_SUPPORT
    -- Performing Test HAVE_FPIE_SUPPORT - Success
    -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
    -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
    -- Performing Test __KDE_HAVE_GCC_VISIBILITY
    -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
    -- Found KDE 4.8 include dir: /usr/include
    -- Found KDE 4.8 library dir: /usr/lib
    -- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
    -- Found automoc4: /usr/bin/automoc4
    -- checking for module 'libusb'
    -- found libusb, version 0.1.12
    -- Found LIBUSB
    -- LIBUSB version: 0.1.12
    -- Found readline: /usr/lib/x86_64-linux-gnu/libreadline.so
    -- Looking for include files HAVE_PPDEV
    -- Looking for include files HAVE_PPDEV - found
    -- Looking for include files HAVE_PPBUS
    -- Looking for include files HAVE_PPBUS - not found.
    -- Found SharedMimeInfo: /usr/bin/update-mime-database (found version "1.0", req
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/lml/Letöltések/piklab-svn/piklab
    lml@lml-N5010:~/Letöltések/piklab-svn/piklab_kde4$ make
    [...]
    Scanning dependencies of target pic_xml_to_data
    [ 19%] Building CXX object src/devices/pic/xml/CMakeFiles/pic_xml_to_data.dir/pic_xml_to_data.o
    Linking CXX executable pic_xml_to_data
    [ 19%] Built target pic_xml_to_data
    [ 19%] Generating pic_data.cpp
    Fatal: Need path as argument
    Aborted (core dumped)
    make[2]: *** [src/devices/pic/xml_data/pic_data.cpp] Error 134
    make[1]: *** [src/devices/pic/xml_data/CMakeFiles/picxml.dir/all] Error 2
    make: *** [all] Error 2

     
  • Nicolas Hadacek

    Nicolas Hadacek - 2012-06-05

    Two questions:
    1) what version of cmake are you using?
    2) Could you compile with envvar VERBOSE=1 and post the output?

     
  • László Meskó

    László Meskó - 2012-06-05

    I'm using cmake 2.8.7.

    make > make_output.txt
    /home/lml/Letöltések/piklab-svn/piklab_kde4/src/common/port/usb_port.cpp: In static member function ‘static bool Port::USB::findBulk(const usb_device*)’:
    /home/lml/Letöltések/piklab-svn/piklab_kde4/src/common/port/usb_port.cpp:72:7: warning: variable ‘configuration’ set but not used [-Wunused-but-set-variable]
    /home/lml/Letöltések/piklab-svn/piklab_kde4/src/common/port/usb_port.cpp:72:27: warning: variable ‘interface’ set but not used [-Wunused-but-set-variable]
    /home/lml/Letöltések/piklab-svn/piklab_kde4/src/common/port/usb_port.cpp:72:43: warning: variable ‘altsetting’ set but not used [-Wunused-but-set-variable]
    Fatal: Need path as argument
    Aborted (core dumped)
    make[2]: *** [src/devices/pic/xml_data/pic_data.cpp] Error 134
    make[1]: *** [src/devices/pic/xml_data/CMakeFiles/picxml.dir/all] Error 2
    make: *** [all] Error 2

    Attaching make_output.txt

     
  • László Meskó

    László Meskó - 2012-06-05

    make verbose output

     

Log in to post a comment.