Open3D icon indicating copy to clipboard operation
Open3D copied to clipboard

Windows install separate debug and release libs

Open Jason1820 opened this issue 6 years ago • 2 comments

I have noticed that Open3D now creates separate Debug and Release folders in the build directory. However, these are not then carried through to the install folder. When I link open3d with find_package I specify the install folder as it contains the cmake config file. However, when trying to link I get

Severity Code Description Project File Line Suppression State Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj Main D:\Projects\LiStar\build\Open3D.lib(PointCloud.obj) 1

Depending on whether I built debug or release most recently. I often swap between debug and release builds so this is difficult for me to deal with.

Can we have separate libraries for debug and release versions as some other libraries do? e.g. librealsense

Jason1820 avatar Aug 03 '20 14:08 Jason1820

@Jason1820 is it possible to achieve this by configuring different -DCMAKE_INSTALL_PREFIX=\path\to\install?

yxlao avatar Aug 12 '20 10:08 yxlao

I change my prefix to be open3d/install. But I think that this would only affect the current builds install location. You would need to change the prefix twice. I would like to have it setup such that I can switch between Debug, Release, dynamic and release in visual studio without re-building open3d. I managed to achieve this with a script but it is not a clean install procedure for other developers in my team to follow

Jason1820 avatar Sep 09 '20 10:09 Jason1820