I tried the solution suggested in this thread: http://forums.codelite.org/viewtopic.php?f=11&t=1449
but it did not solve my problem. all of my file types now use "$(FilePath)$(FileFullName)" in their compilation template, but it is still generating makefiles with absolute paths. since my dev environment and my live environment have slightly different configurations, this will not work. I have even checked my .codelite/config/build_settings.xml file, and verified that all instances of $(FileFullPath) have been replaced with the proper value.
absolute paths in make files... again
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Wed Jul 21, 2010 5:17 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Wed Jul 21, 2010 5:17 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: absolute paths in make files... again
does anyone have any suggestions for this? I'm out of ideas.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: absolute paths in make files... again
You can not completely remove the full paths from the makefile.
It requires some code changes to be able to do this
Another alternative (an idea I have been playing around for some time now) is providing a standalone command line tool that accepts as input the project file.
Eran
It requires some code changes to be able to do this
Another alternative (an idea I have been playing around for some time now) is providing a standalone command line tool that accepts as input the project file.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Wed Jul 21, 2010 5:17 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: absolute paths in make files... again
what is the purpose of using absolute paths? it makes more sense, to me, to use paths relative to the workspace.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: absolute paths in make files... again
The Makefile were not intended to be portable. The workspace / project were designed to be portable.elkvis wrote:what is the purpose of using absolute paths? it makes more sense, to me, to use paths relative to the workspace.
codelite is not a makefile generator it uses makefile as a tool for building the project. The project / workspace are the parts that are meant to be portable (and they are) and should be used on different machines.
Why don't you install another codelite on the second machine ?
FYI:
In earlier versions of gdb, (6.5-) using absolute paths fixed some problems with placing breakpoints in the source code.
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 18
- Joined: Wed Jul 21, 2010 5:17 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: absolute paths in make files... again
I have codelite installed on the other machines, but logging in to X on a remote linux machine, via NX, just to build code that can easily be built from the command line, incurs an unnecessary load on the system, which has better things to do, like build the code or continue to run the live production system.