Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Create Makefile behaviour
Create Makefile behaviour [message #21841] |
Mon, 08 June 2009 10:10  |
|
Hi U++ community 
I recently started using the 'create makefile' feature and noticed this behaviour:
- for DLL packages, the generated makefile complains that 'main' cannot be found (which is reasonable, because the DLL package has no main) is this feature not suppose to be used on DLL packages?
- the generated makefile contains a hardcoded path, the $(UPPDIR1) directory ex. points to /home/jan/src/myproject/ this means, the Makefile will 'break' as soon as the physical location changes, that does not make it very usefull.
- on Darwin (MacOs) the -Wl,-O,2 and --start-group parameters are not available?? so builds on darwin fail...
(if I edit out the -Wl,-O,2 and start-group/end-group parameters, it builds fine.)
I would like to see the 'Create Makefile' feature become more useful, any thoughts?
Greetings,
Jan Wilmans
Jan (skyhawk)
|
|
|
Re: Create Makefile behaviour [message #21937 is a reply to message #21841] |
Thu, 11 June 2009 19:27   |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
skyhawk wrote on Mon, 08 June 2009 04:10 | Hi U++ community 
I recently started using the 'create makefile' feature and noticed this behaviour:
- for DLL packages, the generated makefile complains that 'main' cannot be found (which is reasonable, because the DLL package has no main) is this feature not suppose to be used on DLL packages?
- the generated makefile contains a hardcoded path, the $(UPPDIR1) directory ex. points to /home/jan/src/myproject/ this means, the Makefile will 'break' as soon as the physical location changes, that does not make it very usefull.
- on Darwin (MacOs) the -Wl,-O,2 and --start-group parameters are not available?? so builds on darwin fail...
(if I edit out the -Wl,-O,2 and start-group/end-group parameters, it builds fine.)
I would like to see the 'Create Makefile' feature become more useful, any thoughts?
Greetings,
Jan Wilmans
|
Well, "create makefile" is deprecated in favor of "export project", which has much better results w.r.t. paths and other things (BTW, the src package is using this variant).
As for DLL, I guess you are the first one trying I would need more details I guess... (e.g. based on fact that rest of your posts deals with Ubuntu, is that really .dll or in fact it is .so?)
Mirek
|
|
|
|
|
|
Re: Create Makefile behaviour [message #32163 is a reply to message #32162] |
Thu, 28 April 2011 20:53   |
|
Mindtraveller wrote on Thu, 28 April 2011 19:38 | BTW, is it possible to use incremental build with exported project? As for now, executing "make" leads to total rebuild.
|
Hi Pavel,
First time you execute make it rebuilds everything, but if you change some of the sources later and call make again, only the changed sources (and files depending on them) are rebuild. If it behaves differently for you than there is something broken 
Honza
|
|
|
|
Re: Create Makefile behaviour [message #32165 is a reply to message #32164] |
Thu, 28 April 2011 21:23   |
chickenk
Messages: 171 Registered: May 2007 Location: Grenoble, France
|
Experienced Member |
|
|
Mindtraveller wrote on Thu, 28 April 2011 21:09 | UPDATE: It looks like I've found the cause. In Makefile I manually change CXX from "c++" to "g++46". Building with "c++" is incremental, while Makefile with "g++46" rebuilds from the scratch. Investigation continues...
|
and what do the commands "make CXX=g++46" and "CXX=g++46 make" give with the original Makefile? Maybe also try with 'gmake' instead of 'make' to verify GNUisms...
[Updated on: Thu, 28 April 2011 21:24] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Sat Apr 26 18:27:13 CEST 2025
Total time taken to generate the page: 0.02816 seconds
|