![]() ![]() Generate macOS Project cd cocos2d-xĬmake. to compile, or open Cocos2d-x.sln in Explorer to use the generated project. G "Visual Studio 15 2017" -Tv141Įxecute cmake -build. You should use out-of-source builds, this means you need to create a different directory than cocos2d-x to execute the cmake command.Įxecute make help to see all build targets, make build specified target Generate Visual Studio projects cd cocos2d-xĬmake. If the CMake version is lower than 3.1, please upgrade. ![]() Open your terminal and execute: cmake -version CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generates native makefiles and workspaces that can be used in the compiler environment of your choice. ![]() CMake is an open-source, cross-platform family of tools designed to build, test and package software. sdk / System / Library / Frameworks / OpenGL. app / Contents / Developer / Platforms / MacOSX. rm - rf build / inst / mkdir build cd build echo "*** Running cmake" cmake - DOPENGL_INCLUDE_DIR =/ Applications / Xcode. Here is a similar script for macOS: echo "*** Removing build" cd. DDOXYGEN_EXECUTABLE =/ home / opensubdiv / dev / opensource / doxygen / inst / bin / doxygen \ DGLFW_LOCATION =/ home / opensubdiv / dev / opensource / glfw / build \ rm - rf build / inst / mkdir build cd build echo "*** Running cmake" cmake - DPTEX_LOCATION =/ home / opensubdiv / dev / opensource / ptex / install \ Here is a similar script for *Nix-based platforms: echo "*** Removing build" cd. Make sure you modify them to suit your build workflow. Notice that the following scripts start by recursively removing the. dll bin / Debug / \ cp - f c : / Users / opensubdiv / demo / src / ptex / 圆4 / lib / Ptex. dll bin / Release / \ cp - f c : / Users / opensubdiv / demo / src / ptex / 圆4 / lib / Ptex. dll bin / Debug / \ cp - f c : / Users / opensubdiv / demo / src / zlib - 1.2.7 / contrib / vstudio / vc10 / 圆4 / ZlibDllRelease / zlibwapi. Mkdir - p bin / \ cp - f c : / Users / opensubdiv / demo / src / zlib - 1.2.7 / contrib / vstudio / vc10 / 圆4 / ZlibDllRelease / zlibwapi. D "PTEX_LOCATION:string=c:/Users/opensubdiv/demo/src/ptex/圆4" \ D "OPENCL_LIBRARIES:string=c:/ProgramData/NVIDIA Corporation/NVIDIA GPU Computing SDK 4.2/OpenCL/common/lib/圆4/OpenCL.lib" \ D "_OPENCL_CPP_INCLUDE_DIRS:string=c:/ProgramData/NVIDIA Corporation/NVIDIA GPU Computing SDK 4.2/OpenCL/common/inc" \ D "OPENCL_INCLUDE_DIRS:string=c:/ProgramData/NVIDIA Corporation/NVIDIA GPU Computing SDK 4.2/OpenCL/common/inc" \ D "GLFW_LOCATION:string=c:/Program Files/glfw-2.7.7.bin.WIN64" \ "c:/Program Files (x86)/CMake 2.8/bin/cmake.exe" \ # Replace the "." with a full path to the root of the OpenSubdiv source tree if necessary Here is an example CMake configuration script for a full typical windows-basedīuild that can be run in GitShell : #/bin/tcsh Where cmake_setup is a configuration script. Here is a typical workflow: git clone https : ///PixarAnimationStudios/OpenSubdiv.git Ĭd mkdir build cd build source. Re-run the configuration step fairly often. The GUI solution will probably become a burden for active developpers who tend to DNO_CLEW = 1 // disable CLEW wrapper library DNO_DOC = 1 // disable documentation build DNO_REGRESSION = 1 // disable regression tests build DNO_TUTORIALS = 1 // disable tutorials build DNO_EXAMPLES = 1 // disable examples build DCMAKE_BUILD_TYPE = - DCMAKE_INSTALL_PREFIX = - DCMAKE_LIBDIR_BASE = - DCUDA_TOOLKIT_ROOT_DIR = - DPTEX_LOCATION = - DGLFW_LOCATION = - DTBB_LOCATION = - DICC_LOCATION = - DNO_LIB = 1 // disable the opensubdiv libs build (caveat emptor) The following configuration arguments can be passed to the CMake command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |