Page 1 of 1

Distributing 3D dylib

Posted: Sun May 10, 2020 5:34 am
by matty47
Using PB5.72 x64 on MacBook OSX 10.14.5
I have compiled a 3d programme which runs OK when executed from the IDE. When I create an executable (.app) I place the Engine3D.dylib in the same directory as the app file but get an error that the 3d engine cannot be initialised. Searched the forum but could not find a definitive guide as to how to distribute a stand alone app that uses the 3d engine.
Probably something simple but has me baffled.
Help?

Re: Distributing 3D dylib

Posted: Mon May 11, 2020 1:33 am
by wombats
The default current directory when running a compiled app is the /AppName.app/Contents/ folder, so this is where the InitEngine3D command looks for engine3d.dylib if a different location hasn't been specified. Open the app file (right-click and select Show Package Contents). Put engine3d.dylib in the Contents folder.

Re: Distributing 3D dylib

Posted: Mon May 11, 2020 2:34 am
by matty47
Thanks that worked.

Re: Distributing 3D dylib

Posted: Mon May 11, 2020 10:32 am
by mk-soft