Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on Mac http://sldev.free.fr/forum/viewtopic.php?f=6&t=2535 |
Page 1 of 1 |
Author: | linyifei [ 2024-07-17 12:13:41 ] | ||
Post subject: | Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on Mac | ||
I attempted to build Cool VL Viewer v1.32.2.5 this afternoon. The build appeared to run correctly but when I copied the application to the Applications folder of my "recreation" Mac and attempted to run it, it immediately crashed on startup (log attached below). The application is looking for a dynamic library (libopenal.dylib) and not finding it. So I went to my build machine and attempted to run Cool VL Viewer v1.32.2.5 on that, and it started up and ran, but only after it had asked me to allow the app to access the build directory tree, presumably to access the dynamic library above. I used my normal build process which worked fine up to v1.32.2.3. I did not build v1.32.2.4 because I have a small enough Inventory to have avoided the problem that release addressed. Has something changed, or have I screwed up the build somehow? ![]()
|
Author: | Henri Beauchamp [ 2024-07-17 13:53:38 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
You can disable OpenAL for building line 137 of indra/cmake/00-BuildOptions.cmake (change it for set(OPENAL OFF)), and the viewer will run using only FMOD like it did previously on macOS. However, the libopenal.dylib should be properly copied into the app resources directory together with the other libraries (see scripts/viewer_manifest.py) , so macOS should find it... Someone more knowledgeable than me about macOS would have to look at this (maybe a rpath to set for that library ?... Dunno). In the mean time, I will disable again OpenAL support for macOS in next release... |
Author: | ZaneZimer [ 2024-07-17 16:01:33 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
This feels related to the draconian security that MacOS has implemented. I have also been building the Mac version for a while now, with no issues. I checked the .5 build (that I had crafted over the weekend but never run) and I got a similar behavior. All the expected libs are present in the Resources folder yet launching via my 'keyboard accelerator' failed. The accelerator has full disk access. I decided to invoke via Terminal using the 'open' command and it started right up with no errors. The Terminal app also has full disk access. After shutting down the command line initiated instance, I could then use my 'keyboard accelerator' app to launch without error. I'm wondering if some sort of application 'signature/hash' changed and MacOS decided that might be a security violation. |
Author: | Henri Beauchamp [ 2024-07-17 17:14:06 ] | |||||||||
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on | |||||||||
That's a very valuable feedback, thank you ! Maybe the OpenAL library has been signed differently by LL... Dunno. ![]() |
Author: | ZaneZimer [ 2024-07-17 17:59:10 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
It just occurred to me that I also did spurious reboot in the middle of my testing. That could have contributed to 'it works for me now'. I wasn't as diligent with my testing, unfortunately. It does feel like the OS decided for whatever reason, even if temporarily, to block access to some of the files. I have half a suspicion if we turned off OpenAL during the build, then perhaps another lib would have caused a similar issue. Just my speculations though. I don't develop on a Mac very much. |
Author: | linyifei [ 2024-07-17 20:41:47 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
On checking, I find the "missing" library is in the Resources folder of the app I built, so the why the viewer is claiming it is missing I do not know. I will try the workaround Henri suggests above. |
Author: | linyifei [ 2024-07-22 12:11:03 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
Cool VL Viewer v1.32.2.6 built and ran just fine. |
Author: | Henri Beauchamp [ 2024-07-22 12:15:35 ] | |||||||||
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on | |||||||||
![]() Yet, if someone knowledgeable with macOS stuff could have a look into this, I'd be grateful to them... |
Author: | ZaneZimer [ 2024-07-22 12:42:02 ] |
Post subject: | Re: Cool VL Viewer Cool VL Viewer v1.32.2.5 build problem on |
I wish I were more knowledgeable on this item. I can use OpenAL though when I build (I turned it back on in 00-BuildOptions.cmake, and disabled FMOD). Since I managed to get Cool VL Viewer to load once, after getting the same initial behaviour as linyifei, it's worked every time. Maybe Catten will have more insights when they build. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |