Page 1 of 1

Compile stk using codeblock in ubuntu.

PostPosted: 07 Sep 2011, 10:39
by vo_ngan_90
I cannot compile stk using codeblock in ubuntu.
I get this error:
WARNING: Can't read file's timestamp: /media/Data/Study/Current/STK/main/trunk/src/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa.cpp
Linking static library: Debug/libbullet.a
ar: creating Debug/libbullet.a
ar: Debug/bullet/src/BulletCollision/NarrowPhaseCollision/btGjkEpa.o: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

Re: Compile stk using codeblock in ubuntu.

PostPosted: 07 Sep 2011, 18:19
by Auria
Hi,

the current CodeBlocks projects may be outdated. Maybe you can just generate C::B projects using the new CMake build files?

Re: Compile stk using codeblock in ubuntu.

PostPosted: 10 Sep 2011, 01:20
by vo_ngan_90
Auria {l Wrote}:Hi,

the current CodeBlocks projects may be outdated. Maybe you can just generate C::B projects using the new CMake build files?

I don't now how to use CMake to generate CodeBlock project. Please help me!
I used cmake-gui, and got this errors:

CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMake was unable to find a build program corresponding to "MinGW Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:D:/Study/Current/STK/build/CMakeFiles/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:D:/Study/Current/STK/build/CMakeFiles/CMakeCXXCompiler.cmake
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!

Here is my configs:
Image

Re: Compile stk using codeblock in ubuntu.

PostPosted: 10 Sep 2011, 16:14
by Auria
I don't know the CMake GUI, but in a terminal it would be

mkdir cmake_build
cd cmake_build
cmake -G CodeBlocks ..

Re: Compile stk using codeblock in ubuntu.

PostPosted: 13 Sep 2011, 06:53
by vo_ngan_90
I think I get errors because I'm using cmake in windows. I'm also using this command (in windows) and get same errors:
cmake -G "CodeBlocks - MinGW Makefiles" ..
After switching to Ubuntu and install libcurl, I'm using this command:
cmake -G "CodeBlocks - Unix Makefiles" ..
and get no errors.

thank auria.