[Solved] How to distribute the engine3d.dylib ?

Mac OSX specific forum
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

[Solved] How to distribute the engine3d.dylib ?

Post by Niffo »

I am able to execute a program using OGRE in the IDE (InitEngine3D() returns "1"), but i am not able to execute the compiled program on a standalone directory with the engine3d.dylib inside (InitEngine3D() returns "0").
This is on MacOS only, it works well on Windows.
I have all tried : putting the dylib in the executable directory, in the app package, specifying a relative path in InitEngine3D(), specifying an absolute path in InitEngine3D(), ...
Do you know how to do ?
Last edited by Niffo on Thu Jan 04, 2018 9:18 pm, edited 2 times in total.
Niffo
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: How to distribute the engine3d.dylib ?

Post by jack »

perhaps this tip by Danilo will work http://www.purebasic.fr/english/viewtop ... 21#p448421
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: How to distribute the engine3d.dylib ?

Post by Niffo »

Thank you for your answer, but i don't think my problem has something to do with SDL :-/
Niffo
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: How to distribute the engine3d.dylib ?

Post by jack »

I think you missed the point, the technique should work in your case also, just substitute SDL for OGRE
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: How to distribute the engine3d.dylib ?

Post by Niffo »

When i say "using OGRE", i want to say "using integrated PB 3D fonctions" ;)
Niffo
Niffo
Enthusiast
Enthusiast
Posts: 500
Joined: Tue Jan 31, 2006 9:43 am
Location: France

Re: How to distribute the engine3d.dylib ?

Post by Niffo »

OK, i found the problem. All is my fault, i was using a 32 bits engine3d.dylib on a 64bits executable ! Sorry for the inconvenience, you can delete this thread.
Niffo
Post Reply