Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
swordmanOffline
Post subject: problem with cmake [Solved]  PostPosted: 26.06.2011, 12:36



Joined: 2011-06-26
Posts: 3

Status: Offline
Since I'm mew here I wish to say "Hi all!" to the community Smile
Now, the problem...
I'm trying ti compile a software with the cmake tool.
I tried installing the build-essential package before, but it was already installed Smile
After that i apt-get cmake... and no errors.. good
but when I try to compile using it... I always get a check error about the c++ compile..
Now, I've tried it the manual way... and It seems ok to me, I can compile even with codeblocks... what should I check?
PS: I'm quite new to bedian-like distro.. I come from kubuntu, but I find the two quite different..

Thanks in advance for the help!


Last edited by swordman on 06.07.2011, 10:02; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
towoOffline
Post subject:   PostPosted: 26.06.2011, 12:43



Joined: 2010-09-13
Posts: 496
Location: Pößneck / Thüringen
Status: Offline
      Quote:
but when I try to compile using it... I always get a check error about the c++ compile..

How about real error messages from your terminal?
 
 View user's profile Send private message  
Reply with quote Back to top
swordmanOffline
Post subject:   PostPosted: 26.06.2011, 13:34



Joined: 2011-06-26
Posts: 3

Status: Offline
Sorry... you're right... I forget to ad the log of the error:

      Code:

-- The CXX compiler identification is GNU
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
  The C++ compiler "/usr/bin/c++" is not able to compile a simple test
  program.

  It fails with the following output:

   Change Dir: /home/tix/Data/Dev/Move/MoveAPI/psmoveapi-1/build/CMakeFiles/CMakeTmp

 

  Run Build Command:/usr/bin/make "cmTryCompileExec/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make
  CMakeFiles/cmTryCompileExec.dir/build

  make[1]: Entering directory
  `/home/tix/Data/Dev/Move/MoveAPI/psmoveapi-1/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report
  /home/tix/Data/Dev/Move/MoveAPI/psmoveapi-1/build/CMakeFiles/CMakeTmp/CMakeFiles
  1

  Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o

  /usr/bin/c++ -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
  /home/tix/Data/Dev/Move/MoveAPI/psmoveapi-1/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx


  Linking CXX executable cmTryCompileExec

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec.dir/link.txt --verbose=1

  /usr/bin/c++ CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -o
  cmTryCompileExec -rdynamic

  /usr/bin/ld: cannot find -lgcc_s

  collect2: ld returned 1 exit status

  make[1]: *** [cmTryCompileExec] Error 1

  make[1]: Leaving directory
  `/home/tix/Data/Dev/Move/MoveAPI/psmoveapi-1/build/CMakeFiles/CMakeTmp'

  make: *** [cmTryCompileExec/fast] Error 2

 

 

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:4 (project)


-- Configuring incomplete, errors occurred!
 
 View user's profile Send private message  
Reply with quote Back to top
swordmanOffline
Post subject:   PostPosted: 06.07.2011, 10:04



Joined: 2011-06-26
Posts: 3

Status: Offline
Hi all!
Today I solved the problem...
I'm not sure what the error was, but I tried to upgrade everything and now cmake seems to work ok.
 
 View user's profile Send private message  
Reply with quote Back to top
broweOffline
Post subject:   PostPosted: 06.07.2011, 18:25



Joined: 2010-09-12
Posts: 152
Location: Canada
Status: Offline
Thats part of the fun with sid... every time you type "apt-get dist-upgrade" it either fixes or breaks something. Keep an eye on the forums to reduce the chances of breakage.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio