Is it possbile to Compile Coin4 and SoQt with Cfg on MSVC

24 views
Skip to first unread message

Bilal Can

unread,
Jul 4, 2024, 1:51:27 AM7/4/24
to coin3d-discuss
Hi,

Until now, we were using the msvc libraries released in the git repo; however, with the new policy of the company, we need to activate Control Flow Guard, NXCOMPAT, etc. Is this possible with the library? Should I compile it own my own or is there any released binaries with these guards

/GS 
/NXCOMPAT
ControlFlowGuard (cfg)
DYNAMICBASE (Use address space layout randomization)

Bastiaan

unread,
Jul 4, 2024, 8:17:10 AM7/4/24
to coin3d-discuss
Hi,

I assume this will be possible. Coin is built using CMake, see https://stackoverflow.com/questions/53160599/enable-qspectre-and-control-flow-guard-switch-in-cmake for how to configure this. There is a runtime cost, but this is said to be small and the options are backwards compatible, so maybe this should be on by default.

It has been a while since I have dealt with Coin3D, so I am not sure how things are set up these days. You could try to fork the project on GitHub, add the necessary CMake options (and enabling them by default), and make a pull request. Ideally, binaries will be generated that you will be able to test.

Bastiaan.

Reply all
Reply to author
Forward
0 new messages