DarthMike / indielib-crossplatform

IndieLib is a cross-platform Game Graphics engine. Main focus is OpenGL ES 2.0 for mobile iOS operating system, and OpenGL desktop. **NOT SUPPORTED ANYMORE**
zlib License
61 stars 27 forks source link

Resource path loading fix for linux #19

Open M-F-K opened 12 years ago

M-F-K commented 12 years ago

In the Tutorials / Tests the resource paths are relative to the compiled windows binary. Therefore the paths fails loading on linux. We need to move the compiled linux binary to the bin// folder ( and of cause do this for other platforms as well). After this all paths should be changed in the code.


rev. 579 adds code for 'workingpath' handling in every tests, even in unittests, for unix system. Only need to modify makefile to deploy binary to the directory:

/bin/linux All relative paths consider a 2 level deep hierarchy from where 'resources' directory is. --- have partly fixed this issue (rev 624), - Now unittests builds and runs ( but not yet from the /bin/linux path ) . The result yields the following output: Working path changed to: /home/michael/indielib/linux/tests/unittestsSuccess: 10 tests passed. Test time: 0.00 seconds. Not sure if all unittests are run - where can one see where which unittest are included ?
DarthMike commented 12 years ago

I'm not sure if this issue is still valid. any steps needed?

M-F-K commented 12 years ago

1 small issue still needed, figure out how you can specify output directory for the compiled binary, or how you do a post compile move of the file. At present time im manually doing a mv ./filename ../../../../bin/linux/filename after the compile.

DarthMike commented 10 years ago

Moving this to 0.7, because of dependency on CMake task.