[Kde-bindings] Building qyoto on Ubuntu 12.04

Dimitar Dobrev dpldobrev at yahoo.com
Sun Sep 30 19:13:28 UTC 2012


    Well, this is a good one. I can see in your output that libcppparser.so is properly generated and installed so I'm almost out of ideas. You may try manually copying libcppparser.so from lib/ to bin/ (so that it neighbours smokegen) and see if that changes anything.
    Arno, any thoughts?



________________________________
 From: Antonio Macrì <ing.antonio.macri at gmail.com>
To: kde-bindings at kde.org 
Sent: Sunday, September 30, 2012 9:21 PM
Subject: Re: [Kde-bindings] Building qyoto on Ubuntu 12.04
 

Il 30/09/2012 19:13, Dimitar Dobrev ha scritto:

Hi, Antonio,
>
>libcppparser.so is one of the libraries created by smokegen. If
        it's missing, there's something wrong with smokegen. Check if
        you have libcppparser.so in /home/antonio/qyoto/lib. If so, make
        sure you have permission to read it (I've always build Qyoto
        with admin privileges so this may be the problem with your
        setup). If not, check if you have something like
        libcppparser2.so or libcppparser.so.2, etc, and if so, create a
        link named libcppparser.so and try again. Else please post here
        what you get in the console after you make install smokegen.
>
Hello Dimitar, thank you for answer!

libcppparser.so is in lib/ folder and I have permission to read:

    -rw-r--r-- 1 root    root    660646 set 30 19:37 libcppparser.so

After make install:

    antonio at belldell:~/qyoto/smokegen/build$ make install
    [ 61%] Built target cppparser
    [ 80%] Built target smokegen
    [ 90%] Built target generator_smoke
    [ 92%] Built target generator_dump
    [ 95%] Built target smokebase
    [ 97%] Built target smokeapi
    [100%] Built target smokedeptool
    Install the project...
    -- Install configuration: ""
    -- Installing: /home/antonio/qyoto/bin/smokegen
    -- Removed runtime path from "/home/antonio/qyoto/bin/smokegen"
    -- Installing:
    /home/antonio/qyoto/include/smokegen/generatorenvironment.h
    -- Installing:
    /home/antonio/qyoto/include/smokegen/generator_export.h
    -- Installing:
    /home/antonio/qyoto/include/smokegen/generatorpreprocessor.h
    -- Installing:
    /home/antonio/qyoto/include/smokegen/generatorvisitor.h
    -- Installing:
    /home/antonio/qyoto/include/smokegen/name_compiler.h
    -- Installing: /home/antonio/qyoto/include/smokegen/options.h
    -- Installing:
    /home/antonio/qyoto/include/smokegen/type_compiler.h
    -- Installing: /home/antonio/qyoto/include/smokegen/type.h
    -- Installing: /home/antonio/qyoto/include/smoke.h
    -- Installing: /home/antonio/qyoto/share/smokegen/string.h
    -- Installing: /home/antonio/qyoto/lib/libcppparser.so
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/SmokeConfig.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/FindLibraryWithDebug.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/FindPhonon.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/FindQImageBlitz.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/FindQScintilla.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/FindQwt5.cmake
    -- Installing:
/home/antonio/qyoto/share/smoke/cmake/HandleImportedTargetsInCMakeRequiredLibraries.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/MacroLogFeature.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/MacroOptionalAddBindings.cmake
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/MacroOptionalFindPackage.cmake
    -- Installing:
    /home/antonio/qyoto/lib/smokegen/generator_smoke.so
    -- Installing:
    /home/antonio/qyoto/lib/smokegen/generator_dump.so
    -- Installing: /home/antonio/qyoto/bin/smokeapi
    -- Removed runtime path from "/home/antonio/qyoto/bin/smokeapi"
    -- Installing: /home/antonio/qyoto/lib/libsmokebase.so.3.0.0
    -- Installing: /home/antonio/qyoto/lib/libsmokebase.so.3
    -- Installing: /home/antonio/qyoto/lib/libsmokebase.so
    -- Installing:
    /home/antonio/qyoto/share/smoke/cmake/SmokeVersionConfig.cmake
    antonio at belldell:~/qyoto/smokegen/build$ 


Even if I build everything as root without setting
    CMAKE_INSTALL_PREFIX, the same error occurs:

    antonio at belldell:~/qyoto$ sudo su
    [sudo] password for antonio: 
    root at belldell:/home/antonio/qyoto#
    ............
    root at belldell:/home/antonio/qyoto/smokegen/build# make install
    [ 61%] Built target cppparser
    [ 80%] Built target smokegen
    [ 90%] Built target generator_smoke
    [ 92%] Built target generator_dump
    [ 95%] Built target smokebase
    [ 97%] Built target smokeapi
    [100%] Built target smokedeptool
    Install the project...
    -- Install configuration: ""
    -- Installing: /usr/local/bin/smokegen
    -- Removed runtime path from "/usr/local/bin/smokegen"
    -- Installing:
    /usr/local/include/smokegen/generatorenvironment.h
    -- Installing: /usr/local/include/smokegen/generator_export.h
    -- Installing:
    /usr/local/include/smokegen/generatorpreprocessor.h
    -- Installing: /usr/local/include/smokegen/generatorvisitor.h
    -- Installing: /usr/local/include/smokegen/name_compiler.h
    -- Installing: /usr/local/include/smokegen/options.h
    -- Installing: /usr/local/include/smokegen/type_compiler.h
    -- Installing: /usr/local/include/smokegen/type.h
    -- Installing: /usr/local/include/smoke.h
    -- Installing: /usr/local/share/smokegen/string.h
    -- Installing: /usr/local/lib/libcppparser.so
    -- Installing: /usr/local/share/smoke/cmake/SmokeConfig.cmake
    -- Installing:
    /usr/local/share/smoke/cmake/FindLibraryWithDebug.cmake
    -- Installing: /usr/local/share/smoke/cmake/FindPhonon.cmake
    -- Installing:
    /usr/local/share/smoke/cmake/FindQImageBlitz.cmake
    -- Installing: /usr/local/share/smoke/cmake/FindQScintilla.cmake
    -- Installing: /usr/local/share/smoke/cmake/FindQwt5.cmake
    -- Installing:
/usr/local/share/smoke/cmake/HandleImportedTargetsInCMakeRequiredLibraries.cmake
    -- Installing:
    /usr/local/share/smoke/cmake/MacroLogFeature.cmake
    -- Installing:
    /usr/local/share/smoke/cmake/MacroOptionalAddBindings.cmake
    -- Installing:
    /usr/local/share/smoke/cmake/MacroOptionalFindPackage.cmake
    -- Installing: /usr/local/lib/smokegen/generator_smoke.so
    -- Installing: /usr/local/lib/smokegen/generator_dump.so
    -- Installing: /usr/local/bin/smokeapi
    -- Removed runtime path from "/usr/local/bin/smokeapi"
    -- Installing: /usr/local/lib/libsmokebase.so.3.0.0
    -- Installing: /usr/local/lib/libsmokebase.so.3
    -- Installing: /usr/local/lib/libsmokebase.so
    -- Installing:
    /usr/local/share/smoke/cmake/SmokeVersionConfig.cmake
    # now smokeqt:
    ........
    root at belldell:/home/antonio/qyoto/smokeqt/build# make
    [  0%] Generating smokedata.cpp, x_1.cpp, x_2.cpp, x_3.cpp,
    x_4.cpp, x_5.cpp, x_6.cpp, x_7.cpp, x_8.cpp, x_9.cpp, x_10.cpp,
    x_11.cpp, x_12.cpp, x_13.cpp, x_14.cpp, x_15.cpp, x_16.cpp,
    x_17.cpp, x_18.cpp, x_19.cpp, x_20.cpp
    /usr/local/bin/smokegen: error while loading shared libraries:
    libcppparser.so: cannot open shared object file: No such file or
    directory
    make[2]: *** [qtcore/smokedata.cpp] Errore 127
    make[1]: *** [qtcore/CMakeFiles/smokeqtcore.dir/all] Errore 2
    make: *** [all] Errore 2
    root at belldell:/home/antonio/qyoto/smokeqt/build# 


Permissions:

    root at belldell:/usr/local/lib# ll
    totale 692
    drwxr-xr-x  6 root   root      4096 set 30 19:56 ./
    drwxr-xr-x 13 root   root      4096 set 10 19:01 ../
    -rw-r--r--  1 root   root    660646 set 30 19:56 libcppparser.so
    lrwxrwxrwx  1 root   root        17 set 30 19:56 libsmokebase.so
    -> libsmokebase.so.3
    lrwxrwxrwx  1 root   root        21 set 30 19:56
    libsmokebase.so.3 -> libsmokebase.so.3.0.0
    -rw-r--r--  1 root   root     20090 set 30 19:56
    libsmokebase.so.3.0.0
    drwxr-xr-x  2 root   root      4096 set 30 19:56 smokegen/


Thank you again!





_______________________________________________
Kde-bindings mailing list
Kde-bindings at kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20120930/e3143a5b/attachment.html>


More information about the Kde-bindings mailing list