Hello,
I’m using XCode 3.2.6 and when I execute a compiled application (e.g. myExample.app or myExampleDebug.app) the files stored in ‘data’ folder are not loaded. Details are given below.
All my files are stored in ‘(Some_Folder)/of_v0.7.4_osx_release/apps/myApps/myExample/bin/data/’ and when I access to them I use the following relative path:
- “./data/file.txt” when I use ifstream (e.g. to load some parameters);
- “videofile.avi” when I use loadMovie from ofVideoPlayer class.
When I click on ‘Build and Run’ everything works fine, the files are loaded. However, when I get into the folder of the compiled application and I double click either on myExample or myExampleDebug the software runs but nothing is loaded.
My goal is to generate a standalone application (.app) that I can distribute. So I can tell to people to place the files into the folder “./data/” that has to be in the same folder of myExample.app.
Do you have any idea of how I can sort this problem out?
Thanks