|
|
Home » U++ TheIDE » U++ TheIDE: Installation, Compiling and Running of theide » How to import existing MinGW/C++ projects into TheIDE
How to import existing MinGW/C++ projects into TheIDE [message #2870] |
Fri, 28 April 2006 20:14  |
guenthk
Messages: 3 Registered: April 2006 Location: Germany
|
Junior Member |
|
|
We had hoped that we could utilize TheIDE as a development environment for our existing C++ project on the Windows and Linux, just as you can import existing source trees in Eclipse or KDevelop, but I couldn't find out how to achieve that.
Our project (see http://lavape.sf.net) is based on Qt4 and runs on Windows, Linux, and further Unixes. On Windows we'd like to support also the MinGW g++ compiler, but we have existing custom makefiles that we'd like to use also for MinGW. The project workspace contains a number of subdirectories (belonging to sub-projects having their own makefiles).
Is it possible to import such a project structure into TheIDE?
Many thanks in advance for your help.
Klaus.
|
|
|
Re: How to import existing MinGW/C++ projects into TheIDE [message #2878 is a reply to message #2870] |
Sat, 29 April 2006 08:00   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
guenthk wrote on Fri, 28 April 2006 14:14 | We had hoped that we could utilize TheIDE as a development environment for our existing C++ project on the Windows and Linux, just as you can import existing source trees in Eclipse or KDevelop, but I couldn't find out how to achieve that.
Our project (see http://lavape.sf.net) is based on Qt4 and runs on Windows, Linux, and further Unixes. On Windows we'd like to support also the MinGW g++ compiler, but we have existing custom makefiles that we'd like to use also for MinGW. The project workspace contains a number of subdirectories (belonging to sub-projects having their own makefiles).
Is it possible to import such a project structure into TheIDE?
Many thanks in advance for your help.
Klaus.
|
Basically, you have two options:
- retain current makefiles, but that will turn TheIDE just into a kind of text editor
- convert the project into U++ packages. Usually, this involves simply adding all files to the packages (and then trying to compile until it works). With 'very custom' makefiles you will likely need to play with custom build steps and conditional compiler/library options a lot....
Be warned, U++ build system is quite different from traditional makefiles, which has significant drawback of being totally incompatible and a couple of significant advantages (up to 4x faster build times in debug mode, modularity, improved portability..).
Mirek
|
|
|
Re: How to import existing MinGW/C++ projects into TheIDE [message #2879 is a reply to message #2870] |
Sat, 29 April 2006 08:24   |
gprentice
Messages: 260 Registered: November 2005 Location: New Zealand
|
Experienced Member |
|
|
guenthk wrote on Sat, 29 April 2006 06:14 | We had hoped that we could utilize TheIDE as a development environment for our existing C++ project on the Windows and Linux, just as you can import existing source trees in Eclipse or KDevelop, but I couldn't find out how to achieve that.
Our project (see http://lavape.sf.net) is based on Qt4 and runs on Windows, Linux, and further Unixes. On Windows we'd like to support also the MinGW g++ compiler, but we have existing custom makefiles that we'd like to use also for MinGW. The project workspace contains a number of subdirectories (belonging to sub-projects having their own makefiles).
Is it possible to import such a project structure into TheIDE?
Many thanks in advance for your help.
Klaus.
|
In addition to what Mirek said -
If you have external make files, why do you want to use U++ and why would you want to import a "source tree" into a U++ project. Is it because you want to use U++ code navigation Assist++ ?
You could see this thread.
http://www.arilect.com/upp/forum/index.php?t=msg&th=159& amp; amp; amp;start=0&
and this one
http://www.arilect.com/upp/forum/index.php?t=msg&th=183& amp; amp; amp;start=0&
Also read http://upp.sourceforge.net/app$ide$PackagesAssembliesAndNest s$en-us.html
to understand packages, nests and assemblies.
If you want to add files to a package that are not within the package folder or subfolders, then in the lower lefthand pane of theIDE, right click and select "insert any file(s)" - then browser to a folder, select all the files you want to add and click OK. After that, check the package .upp file to see how it has added the files you selected.
Graeme
[Updated on: Thu, 04 May 2006 15:05] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Re: How to import existing MinGW/C++ projects into TheIDE [message #2905 is a reply to message #2903] |
Sat, 29 April 2006 16:07  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Quote: |
For us, the main problem seems to be the very rudimentary state of the U++ documentation and the fact that Qt and Qt applications make heavy use of macros in C++, which might disturb the U++ code analyzer.
|
Well, that is the problem. At current stage of development, analyzer ingnores #include files (because otherwise it would be too slow), therefore knows nothing about macros.
However, there is a workaround - "Ignore list". Try to add macro names to it (it is item in Assist menu) and parser will simply ignore them. Of course, solves just basic issue (just enough to make it work for U++ library...)
Quote: |
unrelated to the class/method in question. Will this problem disappear when using the U++ build system?
|
Actually, it is not about using build system. It is just that only files that are "in project" are scaned using the parser.
Quote: |
In order to make use of the U++ build system: Would I have to make U++ packages from our existing sub-projects?
|
Yes. However, while enforcing directory structure just like in U++ is desirable (because it makes your project portable), you could also use "open any file" and keep files in original folders - however that will put full pathes to the .upp file.
Thinking about it, if your project is not very big (e.g. less than 20 files), you could consider puttin it all into single package, arrange so that .upp file is its "root" (because all package files are relative to .upp file location).
Quote: |
Will this work without also using U++ built-in packages and libraries?
|
Yes.
Quote: |
Is it possible to use the same U++ configuration (*.upp) files on Windows as well as Linux?
|
Of course, that is the point!!!!
Quote: |
When using the U++ build system: Does U++ provide an easy way to jump from the compiler's error output to the respective erroneous source line by a single (or double) click?
|
Yes. Double-click or F4.
Mirek
P.S.: there was another related Qt question a couple of days ago here. Perhaps you should cooperate; I am no Qt expert and just barely suspect that in order to compile, you will have to add custom build steps for "moc"...
P.P.S.: I am really not sure whether this will work... Admitedly, TheIDE is designed with U++ library in mind (just like MS Visual Studio is designed with MFC/.NET in mind).
|
|
|
Goto Forum:
Current Time: Sun Apr 27 01:31:11 CEST 2025
Total time taken to generate the page: 0.01229 seconds
|
|
|