openexr
openexr copied to clipboard
struggling on windows
I'm trying to compile on Windows, and running into some problems. I'm not really 100% sure what I'm doing, however I'm looking to run tests after installing to ensure it worked correctly (a lot of warnings and errors popped up during the build, though in the end it copied everything to the requested install directory at c:\Program Files\OpenEXR). The commands I used to install were (in empty subdirectory openEXR/build):
cmake -G "Visual Studio 15 2017 Win64" architecture=x86 address-model=64 --PYILMBASE_OVERRIDE_PYTHON2_INSTALL_DIR="C:\Python27\Lib\site-packages" --PYILMBASE_OVERRIDE_PYTHON3_INSTALL_DIR="C:\Python38\Lib\site-packages" -DPython_Executable="C:\Python38\python.exe" -DPython2_EXECUTABLE="C:\Python27\python.exe" -DBOOST_ROOT="C:\Program Files\boost\boost_1_75_0" -DCMAKE_INSTALL_PREFIX="C:\Program Files\OpenEXR" ..
cmake --build . --target install --config Release
I have a full directory of stuff under Program Files\OpenEXR. The questions are:
- How can I test my install? I have tried opening [openEXRsource]\build\RUN_TESTS.vcxproj and building "RUN_TESTS", however it can't seem to find its required exes:
2>Test project C:/Users/tk421/dev/openexr-2.5.2/build 2> Start 1: IlmBase.Half 2>Could not find executable C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/HalfTest.exe 2>Looked in the following places: 2>C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/HalfTest.exe 2>C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/HalfTest.exe.exe 2>C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/Debug/HalfTest.exe 2>C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/Debug/HalfTest.exe.exe 2>Debug/C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/HalfTest.exe 2>Debug/C:/Users/tk421/dev/openexr-2.5.2/build/bin/Debug/HalfTest.exe.exe
- I added the python 2 and 3 executables as above, and during the configure step it said:
-- Found Python2 libraries: 27 -- -> Will install to: Lib/site-packages -- Found Python3 libraries: 38 -- -> Will install to: Lib/site-packages
However after install, I can't see anything different in either site-packages directory.
Thanks for any help you can give me.
It looks like you built the Release version and are trying to run tests on a non-existing Debug version.
Is this still an issue? The v2.5.2 release is quite old, I'd recommend moving to the latest release if at all possible, it resolves quite a few build issues.