Software - problem with cmake [Solved]

swordman - 26.06.2011, 12:36
Post subject: problem with cmake [Solved]
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!
towo - 26.06.2011, 12:43
Post subject:
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?
swordman - 26.06.2011, 13:34
Post subject:
Sorry... you're right... I forget to ad the log of the error:


-- 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

  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

  make[1]: Entering directory

  /usr/bin/cmake -E cmake_progress_report

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

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

  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

  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!

swordman - 06.07.2011, 10:04
Post subject:
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.
browe - 06.07.2011, 18:25
Post subject:
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.
All times are GMT - 12 Hours
Powered by PNphpBB2 © 2003-2010 The Zafenio Group