cmake . -G Xcode

andreasky
Posts: 9
Joined: Tue Oct 06, 2009 1:31 pm

cmake . -G Xcode

Post by andreasky »

Hi,

I downloaded Bullet 2.75 and CMake 2.8.

I searched on the Bullet User's Guide how to install it in OSX and found:

cmake . –G Xcode

I open OS X terminal and wrote this command, however I got error message. Please, could you tell me what folder should I run this command in?

Many thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: cmake . -G Xcode

Post by Erwin Coumans »

Have you tried it in the root of Bullet? There should be a CMakelist.txt.

If you are unfamiliar with using terminal/console commands, try using the graphical user interface of cmake (cmake-gui) and point to the Bullet source folder.
Thanks,
Erwin
andreasky
Posts: 9
Joined: Tue Oct 06, 2009 1:31 pm

Re: cmake . -G Xcode

Post by andreasky »

I used the graphical user interface of CMake and I got Bullet installed, thanks. However I cannot find any library in the "lib" folder. It just contains "readme.txt" file.

On the other hand, "libBulletCollision.a", "libBulletDynamics.a", and "libLinearMath.a" file are in "../src/BulletCollision/Debug", "../src/BulletDynamics/Debug", and "../src/LinearMath/Debug" folders.

The problem is that I tried to compile HelloWorld example found at:

http://bulletphysics.org/mediawiki-1.5. ... ello_World

and I got errors after building it.
andreasky
Posts: 9
Joined: Tue Oct 06, 2009 1:31 pm

Re: cmake . -G Xcode

Post by andreasky »

I got the Hello World file compiled succesfully! I just added the library files to the project with Project>Add to Project.

For personal curiosity: how can one run cmake?

After setting "bullet-2.75" as the current directory I inserted "cmake . -G Xcode" in the terminal and got the message:

"-bash: cmake: command not found"

Please, could you tell me how to write correctly the previous command?

Thank you!
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: cmake . -G Xcode

Post by Erwin Coumans »

If cmake isn't recognized, you haven't installed cmake properly (or it is not added to the path).

It seems you are using Linux? Perhaps you can ask some linux guru for help, or register on the cmake mailing list and ask for help there?

When using cmake on Mac OSX and Windows it works great. Perhaps you can try it under Windows instead? Here is some further information of cmake-gui under Windows:
http://bulletphysics.org/mediawiki-1.5. ... om_scratch

Thanks a lot,
Erwin
andreasky
Posts: 9
Joined: Tue Oct 06, 2009 1:31 pm

Re: cmake . -G Xcode

Post by andreasky »

Thanks, Erwin!

When istalled Bullet successfully, I had follwed the instructions at the same link you provided me!

I use OS X 10.5.

How can I add Cmake to the path in OSX?

Many thanks.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: cmake . -G Xcode

Post by Erwin Coumans »

How can I add Cmake to the path in OSX?
Have you downloaded and installed cmake, and restart your terminal? You should be able to run cmake or cmake-gui from a terminal.
http://www.cmake.org/files/v2.8/cmake-2 ... versal.dmg
Make sure to Install Command-Line Links (don't skip this!):
Picture 2.png
But it might be better to just run CMake from the Application folder (it starts cmake-gui)
Thanks,
Erwin
You do not have the required permissions to view the files attached to this post.
andreasky
Posts: 9
Joined: Tue Oct 06, 2009 1:31 pm

Re: cmake . -G Xcode

Post by andreasky »

Thank you!
I had skipped to install "Command Line Tools"!

Now I can use both the OS X terminal and the CMake GUI!
:D