[SDL] SDL Linux Help
redteam316 at gmail.com
Thu Apr 26 20:45:38 PDT 2007
Okay, I AM relying on relative paths. I use Windows and Dos alot so I
know the differences calling progs between them. It appears that in Linux,
that most programs come with a configure script and then you make, make &&
install them from terminal/console. Well this installs them to a directory
similar to "Program Files" in windows would. All of my development in
windows uses relative paths. In windows, you can be in the browser(Windows
Explorer) and double click the executable and it will start fine regardless
of if you are in the "absolute path" or if you copied the folder to
somewhere else on your harddrive and double clicked on it. Essentially, what
I want to do is be able to double click on my program and it will run.
Obviously, konqueror must run the prog but the search path is only in the
system files directories or the root dir...
I want my code to be able to run regardless of if it's being clicked on in
Konqueror, Krusader, or some other file manager/browser. Likewise, if I give
my prog to Joe Shmoe my neighbor, or someone else that he will be able to
I've seen the notation you used before, but as __file__ or something
similar. When compiling progs for linux, should I always include __where__
or something in my paths in my code?
...or do I have to ALWAYS install my progs to test them as if I was a
beta-tester? For example...
In windows, I use ResHack alot. It's a resource editor. The exe comes in a
.zip file that you can extract anywhere to your harddrive. Regardless of
where I extract it(be it "Program Files" directory or "My SDL Progs"
directory), it just works. Why does it work, well thats because somehow in
the background the DOS PATH= has been set by windows before it executes.
I'll try that for the time being.
Are you telling me that in Konqueror, that it's not possible?...such as
it cannot start the program from the CWD?
Specify the CWD in the Work directory? What? Sorry, but please explain
this a little better. How would that help me when double clicking on the
If it would help, could you supply some snipplets of code as to how this
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL