Distributing 3D dylib

Everything related to 3D programming
matty47
User
User
Posts: 34
Joined: Fri Sep 26, 2003 10:21 pm

Distributing 3D dylib

Post 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?
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: Distributing 3D dylib

Post 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.
matty47
User
User
Posts: 34
Joined: Fri Sep 26, 2003 10:21 pm

Re: Distributing 3D dylib

Post by matty47 »

Thanks that worked.
User avatar
mk-soft
Always Here
Always Here
Posts: 5402
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Distributing 3D dylib

Post by mk-soft »

My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply