New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths doesnt seem to work in my machine #8
Comments
I'll take a closer look this evening, but in the meantime, make sure you're running the latest version. I've added a debug printf statement to help diagnose this issue in the past (see Main.cpp#L72), but I'm not seeing that in your output. |
I just pushed a commit. Can you try it again with that version? I'm using Xcode 5.0.2 on OS X 10.9.1, so the Xcode project should work fine for you. Keep in mind the best way to run this C++ project is to run it from Xcode directly. Building and running a standalone binary isn't really supported. The working directory is being set in the Xcode project configuration, see image below. |
I assumed the current working directory will be set from the location where program starts (like JAVA for example, I am new to this). After manually setting the working dir as shown in your image, it started working. Thanks for your time PS: For the record, I am using XCode 5.0 on 10.9.0. I started perfectly, i'll try it and post here if I face any issues. |
Here is the output
Using GLFW 2.7.5.
CPU Count: 1
GL Renderer: NVIDIA Corporation NVIDIA GeForce GT 650M OpenGL Engine 2.1 NVIDIA-8.18.22 310.40.05f01
GLFW_ACCELERATED: 1
GLFW_RED_BITS: 8
GLFW_GREEN_BITS: 8
GLFW_BLUE_BITS: 8
GLFW_ALPHA_BITS: 8
GLFW_DEPTH_BITS: 0
GLFW_STENCIL_BITS: 0
GLFW_REFRESH_RATE: 0
GLFW_FSAA_SAMPLES: 8
Window Dimensions: 1536x960
Background thread (tid = 1) created.
Background thread is starting.
Error: Failed to load texture.
rm: ./GenProgram: No such file or directory
rm: ./GenDiff1.txt: No such file or directory
rm: ./GenDiff2.txt: No such file or directory
sh: ./bin/gocode/gocode: No such file or directory
sh: ./bin/gocode/gocode: No such file or directory
Background thread has ended.
Background thread has been shut down.
~App()
~InputManager()
Returning 0 from main().
Even the data/Background.tga was not loading, It part returned True only after I replaced it with absolute path.
Any way to set the base path in this case ? I am using XCode5
The text was updated successfully, but these errors were encountered: