Engine3d.so problem with compiled executables.
Engine3d.so problem with compiled executables.
I have created an executable of my Elite Multiplayer project this works 100% fine in the ide not a problem at all. When I create an executable for it in the same directory as the source files (complete with Engine3d.so) it cannot initialise the 3d engine.
Anyone have any idea why this is, my computer is:
AMD Athlon 64 3400
1.25Gb ram
Ubuntu Linux 8.10 (all updated)
ATI Radeon Sapphire HD2600 (512Mb)
PureBasic 4.3
It happens with all 3d executables.
Anyone have any idea why this is, my computer is:
AMD Athlon 64 3400
1.25Gb ram
Ubuntu Linux 8.10 (all updated)
ATI Radeon Sapphire HD2600 (512Mb)
PureBasic 4.3
It happens with all 3d executables.
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
How do you start the executable? Through terminal or through a filebrowser? Those filebrowsers often don't run the executables within their directory.
Try the following on a terminal:
Try the following on a terminal:
Code: Select all
cd /path/to/your/exec/
./theexecutablefile
bye,
Daniel
Daniel
-
- Addict
- Posts: 2345
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
The documentation says many things if the day is long (And here its only the half truth, because the current directory often is the executable directory). Try it the way I told you.EdzUp[SD] wrote:apparently its missing the .so file, but the help documentation for PB tells you to copy the Engine3d file to the application directory
Or try it with this at the first line of your code:
Code: Select all
SetCurrentDirectory(GetPathPart(ProgramFilename()))
bye,
Daniel
Daniel
initEngine3D() accepts an argument... the path to the engine3d.so ..
i.E
this should do the trick 
and AFAIK only an absolute path works atm ... so that's maybe the bug ...
i.E
Code: Select all
InitEngine3D("/home/username/yourapp/engine3.so")

and AFAIK only an absolute path works atm ... so that's maybe the bug ...
I used
Also /home/edzup/Programming/purebasic/projects/Elite_Multiplayer/
Still causes an error that it cant find engine3d.so, yes ive even tried changing to the application directory, still nothing.
Code: Select all
InitEngine3d( "./engine3d.so" )
Still causes an error that it cant find engine3d.so, yes ive even tried changing to the application directory, still nothing.