-
Notifications
You must be signed in to change notification settings - Fork 607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem building OpenEXR-2.2.1 in Visual Studio 2015 x64 #294
Comments
The develop branch as of this commit - 5e06341 has fixes for this issue. If you try it, please delete your existing cmake cache and regenerate before compilation. |
I have downloaded the develop branch of the commit 5e06341 and tried. |
I'm facing the same issue, I can INSTALL the project for Win32 (with Visual Studio 2017) but not x64. I get
I have changed all platform-related flags in CMAKE to a x64 build, (and also add Is there something wrong with the Cmake config ? |
That usually happens if cmake can't see the x64 toolset, for example, if you didn't run "x64 Native Tools Command Prompt for Visual Studio 2017". The best way to invoke cmake is to specify the toolset you want manually using the -G parameter, so you aren't subject to the defaults of the shell you are in.
|
The cmake setup for OpenEXR has been completely overhauled to use "modern cmake" paradigms. This does require a newer version of cmake, but please report any new issues you may have. Thanks for the report. |
I have successfully compiled and built ilmbase-2.2.1 library in Visual Studio 2015 x64.
But I am having issues in linking the dwaLookups project (both debug & release). The project has the following preprocessor definition
WIN32 _WINDOWS _DEBUG HAVE_CONFIG_H ILM_IMF_TEST_IMAGEDIR="D:/SDK/OpenEXR/openexr-2.2.1/IlmImfTest/" OPENEXR_DLL ILMIMF_EXPORTS CMAKE_INTDIR="Debug"
Runtime library set to Multithreaded Debug DLL (/MDd) and linked the debug version of following libraries
Half.lib, Iex-2_2.lib, IlmThread-2_2.lib
The project has the following linking errors
`
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl IlmThread::supportsThreads(void)" (_imp?supportsThreads@IlmThread@@YA_NXZ) referenced in function "int __cdecl cpuCount(void)" (?cpuCount@@yahxz)
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl IlmThread::Thread::Thread(void)" (_imp??0Thread@IlmThread@@qeaa@XZ) referenced in function "public: __cdecl `anonymous namespace'::LutHeaderWorker::Runner::Runner(class A0x2e87040a::LutHeaderWorker &,bool)" (??0Runner@LutHeaderWorker@?A0x2e87040a@@qeaa@AEAV12@_N@Z)
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl IlmThread::Thread::~Thread(void)" (_imp??1Thread@IlmThread@@UEAA@XZ) referenced in function "int
public: __cdecl
anonymous namespace'::LutHeaderWorker::Runner::Runner(class LutHeaderWorker::Runner &,bool)'::`1'::dtor$0" (?dtor$0@?0???0Runner@LutHeaderWorker@?A0x2e87040a@@qeaa@AEAV12@_N@Z@4HA)1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl IlmThread::Thread::start(void)" (_imp?start@Thread@IlmThread@@QEAAXXZ) referenced in function "public: __cdecl `anonymous namespace'::LutHeaderWorker::Runner::Runner(class A0x2e87040a::LutHeaderWorker &,bool)" (??0Runner@LutHeaderWorker@?A0x2e87040a@@qeaa@AEAV12@_N@Z)
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl IlmThread::Semaphore::Semaphore(unsigned int)" (_imp??0Semaphore@IlmThread@@qeaa@I@Z) referenced in function "public: __cdecl `anonymous namespace'::LutHeaderWorker::Runner::Runner(class A0x2e87040a::LutHeaderWorker &,bool)" (??0Runner@LutHeaderWorker@?A0x2e87040a@@qeaa@AEAV12@_N@Z)
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl IlmThread::Semaphore::~Semaphore(void)" (_imp??1Semaphore@IlmThread@@UEAA@XZ) referenced in function "int
public: __cdecl
anonymous namespace'::LutHeaderWorker::Runner::Runner(class LutHeaderWorker::Runner &,bool)'::`1'::dtor$1" (?dtor$1@?0???0Runner@LutHeaderWorker@?A0x2e87040a@@qeaa@AEAV12@_N@Z@4HA)1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl IlmThread::Semaphore::wait(void)" (_imp?wait@Semaphore@IlmThread@@QEAAXXZ) referenced in function "public: virtual __cdecl `anonymous namespace'::LutHeaderWorker::Runner::~Runner(void)" (??1Runner@LutHeaderWorker@?A0x2e87040a@@UEAA@XZ)
1>dwaLookups.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl IlmThread::Semaphore::post(void)" (_imp?post@Semaphore@IlmThread@@QEAAXXZ) referenced in function "public: virtual void __cdecl
anonymous namespace'::LutHeaderWorker::Runner::run(void)" (?run@Runner@LutHeaderWorker@?A0x2e87040a@@UEAAXXZ)
Kindly help me to resolve this issue.
The text was updated successfully, but these errors were encountered: