User forums > Using Code::Blocks

Converting EVERYTHING to relative paths

(1/1)

3DModelerMan:
Hi I was wondering if there was a way to convert all of my build options to relative paths automatically.
Thanks :D.

mariocup:
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

3DModelerMan:
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.

CuteAlien:
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).

Navigation

[0] Message Index

Go to full version