Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] Re: CMake DLL generation and .lib linking error


Chronological Thread 
  • From: Abe Stephens < >
  • To:
  • Cc: Bo Huang < >
  • Subject: [Manta] Re: CMake DLL generation and .lib linking error
  • Date: Thu, 30 Oct 2008 10:55:17 -0600

The CMake variable is BUILD_SHARED_LIBS. Take a look at /CMakeLists.txt line:33.

The code doesn't contain the declspec modifiers to export/import symbols on Windows... so the default build is static. Come to think of it, could you get away with a static build of all the Manta libraries and then explicitly export a small number of symbols used by the program you are embedding Manta within?

Abe

On Oct 30, 2008, at 10:43 AM, Bo Huang wrote:

Which flags in CMake dictates creation of DLLs rather than Libs?
 
I just noticed my MSVC projects generate .libs such as Manta_Core.lib rather than Manta_Core.dll. I could manually convert them but the settings will be gone when CMake regenerates the .vcprojs.
 
Also:
 
When I manually converted the vcproj for Manta_core from generating .lib to .dll, Winnm.lib was not linked and caused linking error for the timeBeginPeriod() function. I notice that this lib is mentioned in Core/CMakelist.txt, but doesn’t seem to have made a difference.
 
Thanks
 
Bo




Archive powered by MHonArc 2.6.16.

Top of page