Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: 3DModelerMan on September 28, 2008, 05:23:35 pm

Title: Converting EVERYTHING to relative paths
Post by: 3DModelerMan on September 28, 2008, 05:23:35 pm
Hi I was wondering if there was a way to convert all of my build options to relative paths automatically.
Thanks :D.
Title: Re: Converting EVERYTHING to relative paths
Post by: mariocup on September 28, 2008, 07:04:00 pm
Hi 3dModelerMan,

if you use relative path (to your CB project) and specify e.g. the generated executable file e.g. obj/name.exe then you won't have problems in moving a project.
Is this what you intend?

BTW: There a lot of builtin variables to customize your project paths (http://wiki.codeblocks.org/index.php?title=Builtin_variables)

Bye,

Mario
Title: Re: Converting EVERYTHING to relative paths
Post by: 3DModelerMan on September 28, 2008, 11:53:21 pm
What I mean is, I used the project template for Irrlicht, and it automatically links and sets stuff with absolute paths. I was wondering if there was a way to convert everything to relative paths.
Title: Re: Converting EVERYTHING to relative paths
Post by: CuteAlien on September 29, 2008, 05:10:11 am
I'm not sure if the Irrlicht template is that much up-to-date. But getting Irrlicht to run (also with relative paths) is easy.

First add the include path in: build options - Search directories - compiler.
Then add the following libs in:  build options - Linker settings:
your_relative_path/irrlicht/lib/Linux/libIrrlicht.a
GL
GLU
Xxf86vm
Xext
X11
Xrandr

Maybe GLU isn't even needed anymore (but won't hurt). If any of those libraries is missing then install it (as -dev version).