OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: danboid on August 12, 2006, 06:03:20 pm

Title: Native Compiling & Gpe Root Login
Post by: danboid on August 12, 2006, 06:03:20 pm
I've installed all these

gcc-symlinks binutils-symlinks automake autoconf make diffutils
libc6-dev gtk+-dev pkgconfig ncurses-dev libpng-dev libjpeg-dev
libungif-dev libx11-dev libxext-dev libxpm-dev libxft-dev
libxrender-dev libxt-dev xproto-dev libz-dev libungif4

packages on OZ 3.5.4.1 on a spitz (as listed on http://wiki.openzaurus.org/Howto_%28probab...e_3.5.4.1rc4%29 (http://wiki.openzaurus.org/Howto_%28probably%29_compile_emacs_from_cvs_on_oz/gpe_3.5.4.1rc4%29) )  except for automake which says it won't install as it depends on perl. When I try configuring a program it aborts with the error

C compiler cannot create executables

??

I'm trying to compile ROX- my fave GTK filemanager. I want a ROX desktop under OZ- is there not feed somewhere that already has a ROX desktop for OZ 3.5.4.x?

That doc above mentions the need to hack  /usr/lib/libc.so - is this step still required to compile natively under OZ?

I want to be logged into GPE as root so that I can eject cards as well as read, write and delete files on cards under a graphical filemanager - gpe or rox- but the login screen doesn't seem to want to let me login as root. What can I do about this?
Title: Native Compiling & Gpe Root Login
Post by: DaemonsGR on August 12, 2006, 07:26:47 pm
I have the same problem with compiling libchm!!
Title: Native Compiling & Gpe Root Login
Post by: koen on August 13, 2006, 03:43:38 am
Use OpenEmbedded instead of native compilation, that way hrw can add it into the feeds, much less anti-social
Title: Native Compiling & Gpe Root Login
Post by: danboid on August 13, 2006, 05:05:04 am
Koen:

Fair enough. I do want to help the OZ project along but at the same time I really want to see an app being compiled on my Z- its just one of those 'must dos' I have with my Z. The apps I really want in oz are

rox filer

latest dillo

pymp

audacity

zynaddsubfx

amule

hydrogen

I don't know if the Z will have enough CPU power to make zyn worthwhile but someone needs to try it
Title: Native Compiling & Gpe Root Login
Post by: koen on August 13, 2006, 06:21:19 am
Quote
except for automake which says it won't install as it depends on perl.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138424\"][{POST_SNAPBACK}][/a][/div]

try adding the perl feed
Title: Native Compiling & Gpe Root Login
Post by: koen on August 13, 2006, 06:39:42 am
Quote
I have the same problem with compiling libchm!!
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=138433\")

[a href=\"http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/libchm]http://www.openembedded.org/filebrowser/or...packages/libchm[/url]

that took about 5 minutes of work to create.
Title: Native Compiling & Gpe Root Login
Post by: lardman on August 13, 2006, 02:40:44 pm
I agree that a .bb is more useful, but it would still be useful to know how to install a working native toolchain.

Koen, can you let us know (HowTo, etc.) once you've got your arm board setup and compiling things (R, OOo, etc.)?


Si
Title: Native Compiling & Gpe Root Login
Post by: danboid on August 13, 2006, 03:06:32 pm
What's the address of the perl feed?

An up to date howto would be great!
Title: Native Compiling & Gpe Root Login
Post by: koen on August 13, 2006, 03:13:11 pm
Quote
I agree that a .bb is more useful, but it would still be useful to know how to install a working native toolchain.

Koen, can you let us know (HowTo, etc.) once you've got your arm board setup and compiling things (R, OOo, etc.)?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138519\"][{POST_SNAPBACK}][/a][/div]

That won't be using OZ, and I have no idea how much the gcc3 and gcc4 toolchains differ.
Title: Native Compiling & Gpe Root Login
Post by: koen on August 13, 2006, 03:14:06 pm
Quote
What's the address of the perl feed?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138523\"][{POST_SNAPBACK}][/a][/div]

Try visiting the url where the feeds are with your browser and go up one dir
Title: Native Compiling & Gpe Root Login
Post by: Da_Blitz on August 14, 2006, 04:01:40 am
is there any chance that the gcc packages will be fixed?

i know a .bb file is handy but it sucks when you want to write a small program or two on your Z

stuff it ill submit a bug report
Title: Native Compiling & Gpe Root Login
Post by: koen on August 14, 2006, 05:05:53 am
Quote
is there any chance that the gcc packages will be fixed?

i know a .bb file is handy but it sucks when you want to write a small program or two on your Z

stuff it ill submit a bug report
[div align=\"right\"][a href=\"index.php?act=findpost&pid=138569\"][{POST_SNAPBACK}][/a][/div]

gcc 4.1.1 works fine over here as a native toolchain, so I don't get what you want to have fixed.
Title: Native Compiling & Gpe Root Login
Post by: lardman on August 14, 2006, 07:33:25 am
Quote
OZ 3.5.4.1 on a spitz

Quote
That won't be using OZ, and I have no idea how much the gcc3 and gcc4 toolchains differ.

My mistake, as I've been building from .dev, I'd thought that GCC 4.xx was used for the releases too.

Si
Title: Native Compiling & Gpe Root Login
Post by: Da_Blitz on August 15, 2006, 12:04:54 am
i used whatever is in the feeds (3.4.4)

it wont matter for the next day or two as my Z is going down for a planned "hardware upgrade"
Title: Native Compiling & Gpe Root Login
Post by: DaemonsGR on September 02, 2006, 07:00:31 am
Is native compiling not fixed yet?

checking for strcasecmp() in string.h... no
checking for strcasecmp() in strings.h... no
configure: error: No case-insensitive string comparison function found.
root@spitz:~/wxGTK-2.6.3#
Title: Native Compiling & Gpe Root Login
Post by: koen on September 02, 2006, 07:27:39 am
did you install the package containing strings.h?

See http://dominion.kabel.utwente.nl/koen/cms/...ng-ooo-natively (http://dominion.kabel.utwente.nl/koen/cms/building-ooo-natively) for a list of packages I installed to get non-crosscompilable stuff compiled
Title: Native Compiling & Gpe Root Login
Post by: koen on September 02, 2006, 07:48:15 am
Quote
root@spitz:~/wxGTK-2.6.3#
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=140526\")

[a href=\"http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/wxwidgets]http://www.openembedded.org/filebrowser/or...kages/wxwidgets[/url]

So you can ask hrw to add that to the feeds.
Title: Native Compiling & Gpe Root Login
Post by: DaemonsGR on September 02, 2006, 09:36:27 am
Thnx! Ill check it.

How much time did OOo took on Z???
Title: Native Compiling & Gpe Root Login
Post by: koen on September 02, 2006, 09:59:14 am
Quote
How much time did OOo took on Z???
[div align=\"right\"][a href=\"index.php?act=findpost&pid=140535\"][{POST_SNAPBACK}][/a][/div]

haven't compiled it yet, it expects some bit from mozilla that I haven't installed yet, but I suspect compiling will take some days.
Title: Native Compiling & Gpe Root Login
Post by: DaemonsGR on September 02, 2006, 11:24:33 am
I install all that packages but I get the same error!!

Any more help??

Thnx,
Tasos
Title: Native Compiling & Gpe Root Login
Post by: DaemonsGR on September 02, 2006, 11:49:26 am
configure:14164: checking for a BSD-compatible install
configure:14219: result: ./install-sh -c
configure:14292: checking for strip
configure:14308: found /usr/bin/strip
configure:14319: result: strip
configure:14577: checking if make is GNU make
configure:14591: result: yes
configure:14658: checking whether ln -s works
configure:14662: result: yes
configure:15018: checking for strcasecmp() in string.h
configure:15044: g++ -o conftest    conftest.cc  >&5
/usr/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure:15050: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.6.3"
| #define PACKAGE_STRING "wxWidgets 2.6.3"
| #define PACKAGE_BUGREPORT "wx-dev@lists.wxwidgets.org"
| #define __LINUX__ 1
| #define __UNIX__ 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
|
|               #include <string.h>
|
| int
| main ()
| {
|
|                   strcasecmp("foo", "bar");
|
|   ;
|   return 0;
| }
configure:15077: result: no
configure:15086: checking for strcasecmp() in strings.h
configure:15112: g++ -o conftest    conftest.cc  >&5
/usr/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
configure:15118: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.6.3"
| #define PACKAGE_STRING "wxWidgets 2.6.3"
| #define PACKAGE_BUGREPORT "wx-dev@lists.wxwidgets.org"
| #define __LINUX__ 1
| #define __UNIX__ 1
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| /* end confdefs.h.  */
|
|                   #include <strings.h>
|
| int
| main ()
| {
|
|                       strcasecmp("foo", "bar");
|
|   ;
|   return 0;
| }
configure:15145: result: no
configure:15154: error: No case-insensitive string comparison function found.
Title: Native Compiling & Gpe Root Login
Post by: koen on September 02, 2006, 01:13:32 pm
we resolved it on IRC, the solution:

Code: [Select]
ln -s /lib/libgcc_s.so.1 /lib/libgcc_s.so
ln /usr/lib/libz.so.1 /usr/lib/libz.so -sf
ln -sf /usr/lib/libstdc\+\+.so.6 /usr/lib/libstdc\+\+.so  
Title: Native Compiling & Gpe Root Login
Post by: Hrw on September 02, 2006, 02:53:47 pm
we need to improve those packages...