Author Topic: Converting EVERYTHING to relative paths  (Read 4532 times)

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
Converting EVERYTHING to relative paths
« 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.

mariocup

  • Guest
Re: Converting EVERYTHING to relative paths
« Reply #1 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

Offline 3DModelerMan

  • Multiple posting newcomer
  • *
  • Posts: 21
Re: Converting EVERYTHING to relative paths
« Reply #2 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.

Offline CuteAlien

  • Multiple posting newcomer
  • *
  • Posts: 57
Re: Converting EVERYTHING to relative paths
« Reply #3 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).