Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: cmake ?

  1. #1
    Join Date
    Apr 2008
    Location
    W MI
    Beans
    160
    Distro
    Ubuntu 9.10 Karmic Koala

    cmake ?

    I'm getting along OK in ubuntu but still have trouble with stuff in command line. It'll get easier with time and practice I suppose.... but here I feel like a dummy. I'm pretty sure I've collected/installed all dependencies and this should be easy :shrug: ...I'm trying to install the latest Stellarium 0.10.0 - and it uses cmake instead of configure to generate the make file. When I try, I get this message...

    steve@ubuntudesktop:~/Documents/stellarium10.0$ cmake
    cmake version 2.4-patch 7
    Usage

    cmake [options] <path-to-source>
    cmake [options] <path-to-existing-build>

    Command-Line Options
    -C <initial-cache> = Pre-load a script to populate the cache.
    -D <var>:<type>=<value> = Create a cmake cache entry.
    -G <generator-name> = Specify a makefile generator.
    -E = CMake command mode.
    -i = Run in wizard mode.
    -L[A][H] = List non-advanced cached variables.
    -N = View mode only.
    -P <file> = Process script mode.
    --graphviz=[file] = Generate graphviz of dependencies.
    --debug-trycompile = Do not delete the try compile directories..
    --debug-output = Put cmake in a debug mode.
    --help-command cmd [file] = Print help for a single command and exit.
    --help-command-list [file] = List available listfile commands and exit.
    --help-module module [file] = Print help for a single module and exit.
    --help-module-list [file] = List available modules and exit.
    --copyright [file] = Print the CMake copyright and exit.
    --help = Print usage information and exit.
    --help-full [file] = Print full help and exit.
    --help-html [file] = Print full help in HTML format.
    --help-man [file] = Print a UNIX man page and exit.
    --version [file] = Show program name/version banner and exit.

    Generators

    The following generators are available on this platform:
    KDevelop3 = Generates KDevelop 3 project files.
    Unix Makefiles = Generates standard UNIX makefiles.

    NOTE

    CMake no longer configures a project when run with no arguments. In order to
    configure the project in the current directory, run

    cmake .


    Not sure what to do here????

  2. #2
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: cmake ?

    hi stevek123,

    what happens if you run this code in the stelarium directory:
    Code:
    ./configure && make && sudo make install
    Last edited by Michael.Godawski; December 11th, 2008 at 08:59 AM.
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  3. #3
    Join Date
    Apr 2008
    Location
    W MI
    Beans
    160
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: cmake ?

    wow Mike - you're fast!
    I get bashed when I run ./configure.... in the directory where I unloaded the code (stellarium10.0)

    and it says in the install file that cmake is used and it is listed in the dependencies
    Last edited by stevek123; December 11th, 2008 at 09:01 AM. Reason: more info

  4. #4
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: cmake ?

    I guess I found it here:
    run this and have a look at this guide:
    Code:
    cmake ../..
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  5. #5
    Join Date
    Mar 2006
    Location
    brooklyn, ny
    Beans
    290
    Distro
    Xubuntu 11.10 Oneiric Ocelot

    Re: cmake ?

    EDIT: beaten (and gave wrong advice)

  6. #6
    Join Date
    Apr 2008
    Location
    W MI
    Beans
    160
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: cmake ?

    actually I tried that cmake ../.. and it gave me this...

    steve@ubuntudesktop:~/Documents/stellarium10.0$ cmake ../..
    CMake Error: The source directory "/home/steve" does not appear to contain CMakeLists.txt.
    Specify --help for usage, or press the help button on the CMake GUI.

    huh??? FWIW, it is specific in the code i downloaded that I must have cmake 2.4.7 - which I do.

    plus I dont know where to find the cmake GUI... not in menus that i can see

    and why did it look in /home/steve? should have been /home/steve/documents/stellarium10.0... and it IS there!
    Last edited by stevek123; December 11th, 2008 at 09:17 AM.

  7. #7
    Join Date
    Jun 2007
    Beans
    12,906

    Re: cmake ?

    see here (from install text in source

    http://stellarium.org/wiki/index.php...ation_on_Linux

  8. #8
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: cmake ?

    ok, the latest version in synaptics is 0.9.1-4. This will work for sure, but let's try to compile this one. I am downloading the sourceright now to check it.
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  9. #9
    Join Date
    Mar 2008
    Location
    Cracow in Heart
    Beans
    1,938

    Re: cmake ?

    hey mc4man,
    I have posted this guide already in my previous posts, but nonetheless you are allowed to think with us

    stevek123
    did you follow all the steps in the guide, like installing all the dependencies:
    Code:
    sudo apt-get install build-essential libfreetype6-dev cmake libpng12-dev zlib1g-dev \
         libglu1-mesa-dev libgl1-mesa-dev gcc g++ gettext libboost-dev libboost-thread-dev \
         libjpeg-dev libboost-filesystem-dev subversion libqt4-dev graphviz doxygen qt4-designer
    Keep it real. Keep it nice.
    [SIGPIC][/SIGPIC]Shooting Ubuntu



  10. #10
    Join Date
    Apr 2008
    Location
    W MI
    Beans
    160
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: cmake ?

    yah Mike - I already run 0.9... but wanted the upgrade - told you I'm a dummy... missed the step to make the build directory. OOPS. it wanted to cmake but gave me this error...

    CMake Error: The installed Qt version 4.3.4 is too old, at least version 4.4.1 is required
    -- Configuring done

    Guess I didnt get all depends... BUT qt4.4.1 is NOT listed in synaptic. Now what ???
    FWIW I'm running hardy...

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •