Memo‎ > ‎

How to build my own codes

posted Jan 19, 2013, 11:53 AM by Teng-Yok Lee
This is a memo for the group members in Gravity. My code relies on several 3rd party libraries and my own libraries. Here is a memo about how to build it.

3rd Party Libraries:

URL: svn+ssh://<your_user_name>@exavis.cse.ohio-state.edu/home/leeten/SVN/lib/trunk

After you check out the folder to a local folder (e.g. d:/lib).
  1. Open cmake-gui. Put the box "Where is the source code" as d:/lib/src and the box "Where to build the binaries" as d:/lib/src/build/<version_of_visual_studio>/<arch>. (For instance, if you are using Visual Studio 2010 and you want to build x64 version, put <version_of_visual_studio> as 2010 and <arch> as x64.
  2. Set up the install path in CMAKE_INSTALL_PREFIX. I will suggest the value as d:/lib/src/install/<version_of_visual_studio>/<arch>.
  3. Click configure and then Generate.
  4. Open d:/lib/src/build/<version_of_visual_studio>/<arch>/lib.sln to build the libraries.
  5. In this solution,build the project INSTALL
MyLib: My own libraries:

URL: svn+ssh://<your_user_name>@exavis.cse.ohio-state.edu/home/leeten/SVN/mylib/trunk

After you check out the folder to a local folder (e.g. d:/mylib).
  1. Open cmake-gui. Put the box "Where is the source code" as d:/mylib/ and the box "Where to build the binaries" as d:/mylib/build/<version_of_visual_studio>/<arch>. (For instance, if you are using Visual Studio 2010 and you want to build x64 version, put <version_of_visual_studio> as 2010 and <arch> as x64.
  2. Set up the install path in CMAKE_INSTALL_PREFIX. I will suggest the value as d:/mylib/install/<version_of_visual_studio>/<arch>.
  3. Set WITH_CUDA as ON if you have CUDA Toolkit.
  4. Set WITH_OPENCV as ON if you have OpenCV installed.
  5. Set WITH_OPENGL as ON if you have OpenGL installed.
  6. Set WITH_STATIC_LINK as ON.
  7. Set THIRDPARTY_DIR as the path you setup before.
  8. Click configure and then Generate.
  9. Open d:/lib/src/build/<version_of_visual_studio>/<arch>/lib.sln to build the libraries.
  10. In this solution,build the project INSTALL

Comments