What should I do to get a static library

Post Reply
ln_drift
Posts: 1
Joined: Fri Aug 14, 2020 11:29 am

What should I do to get a static library

Post by ln_drift »

Although bullet will built as a static library by default, I still messed it up.I just change USE_GLUT to false.but when i link it in my preject as static library ,i got some errors like this:
BulletCollisiond.lib(btCollisionDispatcher.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MTd_StaticDebug' doesn't match value 'MDd_DynamicDebug' in main.obj

what't happen ? i just get some *.lib files
PS: building platform: windows , the bullet cmake configure info is :
Selecting Windows SDK version 10.0.17763.0 to target Windows 6.1.7601.
CMAKE_EXE_LINKER_FLAGS_DEBUG=/INCREMENTAL:NO /debug /INCREMENTAL
OPENGL FOUND
opengl32glu32
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
CMake Warning (dev) at F:/Cmake/share/cmake-3.17/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (OpenGL)
does not match the name of the calling package (GLU). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
F:/Cmake/share/cmake-3.17/Modules/FindOpenGL.cmake:427 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
F:/Cmake/share/cmake-3.17/Modules/FindGLU.cmake:12 (include)
CMakeLists.txt:325 (FIND_PACKAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
Win64 using Glut/glut64.lib
WARNING: you are using the obsolete 'GLU' package, please use 'OpenGL' instead
Could NOT find GLUT (missing: GLUT_glut_LIBRARY GLUT_INCLUDE_DIR)
Configuring done
Post Reply