cmake error

Feedback
Anonymous
2013-09-11
2013-09-12
  • Anonymous - 2013-09-11

    I created a build directory and did cmake .. from there. I'm getting this error:

    CMake Error at CMakeLists.txt:518 (ADD_SUBDIRECTORY):
      The source directory
    
         /home/dan/source/stellarium-0.12.3/landscapes
    
      does not contain a CMakeLists.txt file.
    

    Search results for that error message imply that I must be doing something very wrong like trying to compile the binary, but I've successfully compiled older versions of stellarium. I'm using cmake 2.8.10.

     
  • Alexander Wolf

    Alexander Wolf - 2013-09-11

    Are you using instructions for building from our wiki?

     
  • Anonymous - 2013-09-11

    Yes.

     
  • Alexander Wolf

    Alexander Wolf - 2013-09-11

    Please check your environment - I can't reproduce this issue.

     
  • Anonymous - 2013-09-11

    I assumed the problem was at my end, but what am I checking for? I have the dependencies listed in the wiki, and I can configure stellarium 0.12.0 just fine. What else should I check?

     
  • Alexander Wolf

    Alexander Wolf - 2013-09-11

    Please go to you build directory and run rm -rf * && cmake .. and show full log of cmake.

     
  • Anonymous - 2013-09-11

    This is the output:

    -- The C compiler identification is GNU 4.7.2
    -- The CXX compiler identification is GNU 4.7.2
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- 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
    -- Found GCC 4.7
    -- Looking for pow10
    -- Looking for pow10 - found
    -- 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 suitable version "4.8.4", minimum required is "4.8.0") 
    -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
    -- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
    -- Looking for gethostbyname
    -- Looking for gethostbyname - found
    -- Looking for connect
    -- Looking for connect - found
    -- Looking for remove
    -- Looking for remove - found
    -- Looking for shmat
    -- Looking for shmat - found
    -- Looking for IceConnectionNumber in ICE
    -- Looking for IceConnectionNumber in ICE - found
    -- Found X11: /usr/lib64/libX11.so
    -- Found OpenGL: /usr/lib64/libGL.so  
    -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7") 
    -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
    -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
    -- Found Iconv: /usr/lib64/libc.so
    -- Found Gettext: /usr/bin/msgmerge (found version "0.18.1") 
    -- Found xgettext: /usr/bin/xgettext
    CMake Error at CMakeLists.txt:518 (ADD_SUBDIRECTORY):
      The source directory
    
        /home/dan/downloads/installers/stellarium-0.12.3/landscapes
    
      does not contain a CMakeLists.txt file.
    
    -- Configuring incomplete, errors occurred!
    

    I attached the logs from CMakeFiles in case you need them, but they seemed too long to post.

     
  • Alexander Wolf

    Alexander Wolf - 2013-09-11

    It's weird. Are you get source code from bzr repo of from tarball?

     
  • Anonymous - 2013-09-11

    It's a tarball. I followed the "Linux (source)" link on the top of the stellarium.org home page. Nothing fancy.

     
  • Alexander Wolf

    Alexander Wolf - 2013-09-11

    Please check size of tarball - I think you are download it partially.

     
  • Anonymous - 2013-09-11

    That was it. It was missing the last couple MB. I'm sorry to bug you with such a dumb problem. Chrome didn't report an error with the download, and it decompressed without errors, so I didn't think to check that.

     
  • barrykgerdes

    barrykgerdes - 2013-09-11

    What system are you building in?
    It is rather odd /home/dan/downloads/installers/stellarium-0.12.3/landscapes
    should not be part of the compile if you have installed stellarium in /home/dan/stellarium-0.12.3 and are using the recomended build folder of builds/unix that folder should not come into play at all.

    I did a bzr up in ubuntu 12.04 earlier got build 6215 and compiled using a terminal (I don't use Creator normally) as per the wiki and I got the executive in a few minutes with no bother.

    /home/barry/stellarium/landscapes (my environment) definitely has a CmakeList.txt file

    Barry

     
    Last edit: barrykgerdes 2013-09-11
  • Anonymous - 2013-09-11

    I didn't think that directory should be part of the compile, and that was causing some of my confusion. I did not have a CMakeList.txt file before, but now that I downloaded the tarball again I do. I can compile it now. Thanks for your help.

     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks