Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Do I need to install twice?
@ 2009-04-01 16:33 Lloyd Sargent
  2009-04-01 18:38 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Lloyd Sargent @ 2009-04-01 16:33 UTC (permalink / raw)
  To: buildroot

Okay, I'm really, close to finishing the wxWidgets make and  
configuration files.

HOWEVER, I'm a little stumped. If I do the following:

	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(WXWIDGETS_DIR) install

The include directory is deleted so I am unable to build files for  
WxWidgets. But my libraries are in the right place.

To have include files I can build against I added this line:

	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(WXWIDGETS_DIR) install

It gets me the include files but I've this bad feeling that it isn't  
the right way to do it.

So have I got this right? Or have I just made a blunder?

Cheers,

Lloyd

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Do I need to install twice?
  2009-04-01 16:33 [Buildroot] Do I need to install twice? Lloyd Sargent
@ 2009-04-01 18:38 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2009-04-01 18:38 UTC (permalink / raw)
  To: buildroot

>>>>> "Lloyd" == Lloyd Sargent <lloyd@cannasoftware.com> writes:

 Lloyd> HOWEVER, I'm a little stumped. If I do the following:

 Lloyd> 	$(MAKE) DESTDIR=$(TARGET_DIR) -C $(WXWIDGETS_DIR) install

 Lloyd> The include directory is deleted so I am unable to build files for
 Lloyd> WxWidgets. But my libraries are in the right place.

 Lloyd> To have include files I can build against I added this line:

 Lloyd> 	$(MAKE) DESTDIR=$(STAGING_DIR) -C $(WXWIDGETS_DIR) install

 Lloyd> It gets me the include files but I've this bad feeling that it isn't
 Lloyd> the right way to do it.

 Lloyd> So have I got this right? Or have I just made a blunder?

No, it's because of the difference between TARGET_DIR and
STAGING_DIR. TARGET_DIR is your final target rootfs, where you
normally don't need header files and so on. For libraries we
additionally install them into STAGING_DIR and tell gcc to look for
header files there.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-01 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-01 16:33 [Buildroot] Do I need to install twice? Lloyd Sargent
2009-04-01 18:38 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox