OESF | ELSI (coming soon) | Community Links (coming soon) | LinuxPDA | Ibiblio


Welcome Guest ( Log In | Register )

Reply to this topicStart new topic
> Compile Woes, Continued!, Now hello.cpp spews lots of errors!
post Jul 7 2006, 05:08 AM
Post #1

Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265

Since last asked this questionhttp://www.oesf.org/forums/index.php?showtopic=20052, I've been able to successfully install those packages I've listed, as well as make and a few others. Unfortunately, when I try to compile hello.cpp I get a whole slew (pages and pages) of errors; and when I try to run any configure script, it still can't find the compiler.

What am I still missing?

Also, I'm curious: would this process be easier using BitBake? I don't have access to BitBake right now, so I'm stuck with compiling directly on the Zaurus. but it would be useful to know.

Finally, I apologize for starting this new thread: the old one went off-topic and died! (I appreciated the new topic though, since it answered another question I had.)
Go to the top of the page
+Quote Post
post Jul 7 2006, 09:10 AM
Post #2

Group: Members
Posts: 69
Joined: 17-March 05
Member No.: 6,651

QUOTE(snowfarthing @ Jul 7 2006, 02:08 PM)
run any configure script, it still can't find the compiler.


Think a step by step approach called for.

Your output from hello.cpp shows your compiler can't find the most basic header files.

The only header you need for a rudimentary hello.c is stdio.h eg:-

#include <stdio.h>

int main (int argc, char *argv[])
printf("Hello, world\n");

The compilation commandline can be as simple as:-

arm-gcc(or whatever yours is called) hello.c -o hello

It will expect stdio.h to be in /usr/include

If the above does not compile, your installation is truely screwed up.

Put the highlighted code above in a file called hello.c and try to compile using the highlighted commandline from within that directory and come back with the results.

If that works will need to see what you are trying to compile and what the Makefile contains.


Go to the top of the page
+Quote Post
post Jul 13 2006, 07:38 AM
Post #3

Group: Members
Posts: 32
Joined: 29-October 04
Member No.: 5,265

I tried to compile both hello.cpp and hello.c; as explained, but neither of them worked. So, at the time, my compiling environment was rather screwed up.

Since then, however, my environment has become really screwed up! I tried installing LaTeX, but kept running into "medium full" errors. It took me a while to realize that this was because all the symbolic links to these files completely filled system memory. This started causing Opie to behave in erratic ways.

So I decided to reinstall everything from scratch, this time using 64-0 image (hoping that it wouldn't keep anything in system memory) and even trying to install Opie on an SD card instead of memory. Because the computers I have access to right now cannot recognize my SD card (one formatted as FAT) and Rock Ridge extensions (don't ask me why; given that these run Windows XP I would have thought so), I'm rather limited as to what I can do.

To further complicate matters, something happened to my ext2 SD card: two directories are now text-files. I suspect that something became corrupted; and as the files I lost are really important, I don't want to do anything with the SD card until I can fsck it (which will probably be at least one and a half to two and a half weeks, since I'm currently at conference and my father-in-law is visiting).

So, in the meantime, I'll be taking a break from my Zaurus. Afterward, I'll seriously tackle the two problems:

First, how do I set up a make environment on my Zaurus?

Second, how do I use BitBake, and what are its limitations? In particular, will I be able to compile anything that I can compile under a normal Linux box?
Go to the top of the page
+Quote Post
post Jul 13 2006, 09:08 AM
Post #4

Group: Members
Posts: 1,014
Joined: 4-January 05
From: Enschede, The Netherlands
Member No.: 6,107

ipkg install libc6-dev gcc gcc-symlinks g++ g++symlinks make binutils binutils-symlinks libtool coreutils


Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 1st March 2017 - 09:59 AM