Closed KarenHuang2016 closed 6 years ago
I changed the CocosUsePrebuiltLibs.cmake file this way at https://github.com/cocos2d/cocos2d-x/blob/42c2ff27e097e25879f38174cfd0b431ae85f9ec/cmake/Modules/CocosUsePrebuiltLibs.cmake#L20
if(WINDOWS)
if (${MSVC_VERSION} EQUAL 1900 OR ${MSVC_VERSION} GREATER 1900)
set(_bullet_libs bullet libbullet-2015)
else()
set(_bullet_libs bullet libbullet)
endif(${MSVC_VERSION})
else()
# sequence is important
set(_bullet_libs BulletDynamics libBulletDynamics BulletCollision libBulletCollision BulletMultiThreaded libBulletMultiThreaded LinearMath libLinearMath MiniCL libMiniCL)
endif(WINDOWS)
Change the line https://github.com/cocos2d/cocos2d-x/blob/42c2ff27e097e25879f38174cfd0b431ae85f9ec/cmake/Modules/CocosUsePrebuiltLibs.cmake#L206
to ${_root}/prebuilt/${PLATFORM_FOLDER}/${CMAKE_BUILD_TYPE}-lib
And also changed folder names in external/bullet/prebuilt/win32/debug and release to debug-lib and release-lib
Now the cmake have support Windows MSVC compiler, you can have a try using GitHub latest code(https://github.com/cocos2d/cocos2d-x/commit/4675ee79cd134ca63c8fd258c4e8a49f14fe9639 and later)
please close this issue @minggo
Environment: Windows Server 2012 R2 + VS2015 Update 3 + cocos2d-x v3 branch latest srouce code
We tried to build cocos2d-x on Windows. It failed due to fatal error C1083: Cannot open include file: 'bullet/LinearMath/btIDebugDraw.h': No such file or directory. This issue is caused by v3 branch revision 4ce443b . It seems the cl command lacks the include path for btIDebugDraw.h. Could you please take a look at this? Thanks in advance!
Steps to Reproduce:
Actual result: The full log file is attached. cocos2dx_x86_build.txt