Compile stk using codeblock in ubuntu.

Compile stk using codeblock in ubuntu.

Postby vo_ngan_90 » 07 Sep 2011, 10:39

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
User avatar
vo_ngan_90
 
Posts: 21
Joined: 15 Aug 2011, 09:19
Location: VietNam

Re: Compile stk using codeblock in ubuntu.

Postby Auria » 07 Sep 2011, 18:19

Hi,

the current CodeBlocks projects may be outdated. Maybe you can just generate C::B projects using the new CMake build files?
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compile stk using codeblock in ubuntu.

Postby vo_ngan_90 » 10 Sep 2011, 01:20

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
User avatar
vo_ngan_90
 
Posts: 21
Joined: 15 Aug 2011, 09:19
Location: VietNam

Re: Compile stk using codeblock in ubuntu.

Postby Auria » 10 Sep 2011, 16:14

I don't know the CMake GUI, but in a terminal it would be

mkdir cmake_build
cd cmake_build
cmake -G CodeBlocks ..
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Compile stk using codeblock in ubuntu.

Postby vo_ngan_90 » 13 Sep 2011, 06:53

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.
User avatar
vo_ngan_90
 
Posts: 21
Joined: 15 Aug 2011, 09:19
Location: VietNam

Who is online

Users browsing this forum: No registered users and 1 guest