DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Building to chroot OR how to remove "built-in values"
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jan 2009
Default Building to chroot OR how to remove "built-in values" - 01-19-2009, 04:36 AM

Hi

My problem is this. I have a Ubuntu distro (actually a vmware partition but this is irrelevant) installed running Eclipse ganymede. In this distro I also have a Midinux env starting at (/home/user/DEK/virbuild) for which I need to compile.

To switch to the the Midinux env i use chroot from inside Ubuntu.

Since I have not been able to get Eclipse working directly when chrooted in Midinux I will need to have Eclipse running on Ubuntu but set up so that it points out gcc, includes and libraries using Midinux paths instead.

1. Is it possible to somehow chroot Eclipse to use the midinux root (/home/user/DEK/virbuild) after it has started?

2. When trying to change env paths manually in Eclipse I only manage to point gcc and as to midinux env (/home/user/DEK/virbuild/usr/bin). The compiling finishes fine but linking does not.

I have added include directories relative to the midinux root in "Eclipse->C/C++ General->Paths and Symbols->Includes". But somehow when I build I still get

Invoking: GCC C Linker
gcc -L/home/user/DEK/virbuild/usr/lib -o"PhotoFlow_GTK" ./src/PAdriver.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
/usr/bin/../lib/libatk-1.0.so.0: undefined reference to `g_assertion_message_expr'
collect2: ld returned 1 exit status
make: *** [PhotoFlow_GTK] Error 1

As you can see even though i stated -L/home/user/DEK/virbuild/usr/lib it is using /usr/bin/../lib/*. This must be because Eclipse insists on using "built-in values" path /usr/bin and resolves this first.

I have the following "built-in values":
/usr/bin
/usr/include
/usr/lib/gcc/i486-linux-gnu/4.2.4/include

In "Eclipse->C/C++ General->Paths and Symbols->Library Paths" I have added the midinux lib include base (/home/user/DEK/virbuild/usr/lib) but this doesn't seem to be sufficient.

In Eclipse->C/C++ Build->Environment" I have checked the "replace native environment with specified one" and added only pahts relative to (/home/user/DEK/virbuild/(usr|bin|lib etc)).

I think everythin would be fine if I could remove the "built-in values".
Is there anyway to do this and to make Eclipse only use the search paths I specify, alternatively start Eclipse chrooted?

- Martin
Reply With Quote
  (#2 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Mar 2009
Default 03-19-2009, 08:54 PM

Completely different system and source problem (I'm just trying to get rid of warnings, as the paths for me are invalid) but I also need to figure out how to remove the "built-in values" for the include paths.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Special" folder layout for an EAR application - Migration from JBuilder doraemon Eclipse 1 11-13-2008 01:01 PM
Eclipse CDT "An internal error occurred during: "Launching"" aluminumpork Eclipse 1 10-08-2008 05:48 AM
Eclipse Debug error - "Process Model Delta" bboyle18 Eclipse 2 09-02-2008 08:20 PM
Error:"Cannot complete the request." while adding plugins using an update site. amit123solanki Eclipse 0 07-28-2008 08:33 AM
How to supress html validation errors in "target" folder thebugslayer Eclipse 0 02-27-2008 09:06 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com