OS/X OpenGL

Michael Hall mik3hall at gmail.com
Wed May 17 12:30:36 UTC 2023



> On May 10, 2023, at 3:02 AM, Michael Hall <mik3hall at gmail.com> wrote:
> 
> On my prior I noted java invocation including something like…
> 
> DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1
> 
> These do not appear to work. 

For completeness. I figured this out. I had used them before and at some point sent an email with…

> Handy also are the environment variables 
> DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1 outputdir/HalfPipe.app/Contents/runtime/Contents/Home/bin/java
> 
> You need to not use the default java command from a system library as OS/X SIP security will prevent this from working.

So using instead the embedded java command from one of my applications…

DYLD_PRINT_LIBRARIES=1 DYLD_PRINT_APIS=1 /Users/mjh/HalfPipe/halfpipe_jpkg/outputdir/HalfPipe.app/Contents/runtime/Contents/Home/bin/java -cp .:testdemo.jar:glmacx86.jar -XstartOnFirstThread \
	--enable-native-access=ALL-UNNAMED --enable-preview \
	-Djava.library.path=/Users/mjh/Documents/java/panama/mesa-23.0.1/os/lib:/usr/local/Cellar/freeglut/3.4.0/lib \
	demos.panamagl.offscreen.DemoTeapot_Offscreen_macOS

These environment variables work…

dyld[2377]: re-using existing shared cache (/System/Volumes/Preboot/Cryptexes/OS/System/Library/dyld/dyld_shared_cache_x86_64h):
dyld[2377]:         0x7FF81B887000->0x7FF83EA06FFF init=5, max=5 __TEXT
dyld[2377]:         0x7FF85B887000->0x7FF85D5BEFFF init=1, max=3 __DATA_CONST
dyld[2377]:         0x7FF85D5BF000->0x7FF85F53EFFF init=3, max=3 __DATA
dyld[2377]:         0x7FF89B887000->0x7FF8A632EFFF init=1, max=1 __LINKEDIT
…

I’m not sure how I determined it was security then. I wasn’t seeing any clues now. But it appears to remain true if you want to use these that the system builtin java command will not work.

https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/DynamicLibraries/100-Articles/LoggingDynamicLoaderEvents.html




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230517/c3cd1d36/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: apple-touch-icon-precomposed.png
Type: image/png
Size: 15781 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230517/c3cd1d36/apple-touch-icon-precomposed-0001.png>


More information about the panama-dev mailing list