Not signed in (Sign In)

Choose a language

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorm@cCo
    • CommentTimeNov 17th 2007 edited
     # 1
    I tried to make a new recipe for gtk-qt-engine, which now uses cmake instead of configure.
    So I created the following recipe:

    # Recipe (MakeRecipe) for GTK-QT-Engine by Daniele Maccari, on Fri Nov 16 19:59:19 CET 2007
    # Recipe for version 0.8 by Daniele Maccari, on Fri Nov 16 19:59:19 CET 2007
    compile_version=1.9.0
    url="http://gtk-qt.ecs.soton.ac.uk/files/0.8/gtk-qt-engine-0.8.tar.bz2"
    file_size=59472
    file_md5=9fe75b7765b6a5b49901fcd6f4f4aa4b
    dir='gtk-qt-engine'
    recype_type=cmake

    However when I launch "Compile gtk-qt-engine" it gives me the following error:

    Compile: Unsupported configuration in recipe '/Files/Compile/LocalRecipes/GTK-QT-Engine/0.8/Recipe'.
    It's my fault? Compile version is 1.9.0

    Bye
    • CommentAuthorMohjive
    • CommentTimeNov 17th 2007
     # 2
    Yes, you've misspelled 'recipe_type'.
    • CommentAuthorm@cCo
    • CommentTimeNov 17th 2007 edited
     # 3
    Posted By: MohjiveYes, you've misspelled 'recipe_type'.
    Muahahahah!!! I feel so embarrassed :D
    Sorry for wasting your time :p

    And thanks, obviously.

    EDIT: ahem, I've just fixed it but the error persists...
    • CommentAuthorMohjive
    • CommentTimeNov 18th 2007
     # 4
    I took a closer look at the release log, and cmake is still a cvs feature, it's not in 1.9.0. So either you have to wait for next release or you have to use a cvs snapshot.
    • CommentAuthorm@cCo
    • CommentTimeNov 18th 2007
     # 5
    Posted By: MohjiveI took a closer look at the release log, and cmake is still a cvs feature, it's not in 1.9.0. So either you have to wait for next release or you have to use a cvs snapshot.
    I see. Well, I'll wait 'till the next release, no problem.
    Thansk again.

    P.S.: I thought it was a already implemented feature 'cause it's shown in the wiki page.
    • CommentAuthorshevegen
    • CommentTimeNov 18th 2007
     # 6
    "Yes, you've misspelled 'recipe_type'."

    Maybe there could be a small warn feature that checks for misspelled/unknown words,
    this way the user can quickly find out on his own what went wrong
    • CommentAuthorgiddie
    • CommentTimeNov 19th 2007
     # 7
    This might help you. I recently wanted to compile KDEsvn, which also uses CMake, and this is the recipe I used. Note the "makefile" type and the "pre_build" section.

    # Recipe (MakeRecipe) for KDESvn by Paul Gideon Dann, on Mon Nov 12 14:46:56 GMT 2007
    # Recipe for version 0.14.1 by Paul Gideon Dann, on Mon Nov 12 14:46:56 GMT 2007
    compile_version=1.9.0
    url="http://kdesvn.alwins-world.de/downloads/34"
    file="kdesvn-0.14.1.tar.bz2"
    file_size=1267828
    file_md5=cdd1e2244e1aee3641e76124edd300f4
    dir='kdesvn-0.14.1'
    recipe_type=makefile

    pre_build() {
    cmake -D CMAKE_INSTALL_PREFIX=$target .
    }
    • CommentAuthorMohjive
    • CommentTimeNov 20th 2007 edited
     # 8
    You should use a build directory by default when using CMake. Many projects required that. So the pre_build function should look like:

    pre_build() {
    mkdir ${dir}/_build
    pushd ${dir}/_build
    cmake -DCMAKE_INSTALL_PREFIX=$target ..
    }

    This is how Compile (cvs) does it currently.

    Edit: After looking at the Compile code, this might break during install.
    • CommentAuthorm@cCo
    • CommentTimeNov 20th 2007
     # 9
    Thanks both :D
    I tried the same as yours but just with "cmake ." inside the pre_build function (I'm not so expert in linux :P).
    I'll try the second option and let you know, bye.
    • CommentAuthorgiddie
    • CommentTimeNov 20th 2007
     # 10
    Just so you're aware, the CMAKE_INSTALL_PREFIX variable needs to be defined so that CMake knows to install the program in the /Programs folder. If it's not specified, it will try to install it in /usr/local or something similar. GoboLinux will prevent it and the Compile process will fail with an error.