OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

5 Pages V  < 1 2 3 4 5 >  
Reply to this topicStart new topic
> Native Gcc Compiler For X/qt, almost ready
ArchiMark
post May 2 2006, 07:54 PM
Post #31





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(Meanie @ May 2 2006, 08:49 PM)
run ldconfig and then try again
*


OK, tried that and here's what I got:

CODE
#ldconfig
ldconfig: File /usr/lib/libc.so is too small, not checked.
# gcc -o hello hello.cpp
/mnt/zgcc/bin/ld: cannot open output file hello: Read-only system
collect2: ld returned 1 exit status
#


Any more suggestions??

Thanks,

Mark
Go to the top of the page
 
+Quote Post
Meanie
post May 2 2006, 08:06 PM
Post #32





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(ArchiMark @ May 3 2006, 01:54 PM)
QUOTE(Meanie @ May 2 2006, 08:49 PM)
run ldconfig and then try again
*


OK, tried that and here's what I got:

CODE
#ldconfig
ldconfig: File /usr/lib/libc.so is too small, not checked.
# gcc -o hello hello.cpp
/mnt/zgcc/bin/ld: cannot open output file hello: Read-only system
collect2: ld returned 1 exit status
#


Any more suggestions??

Thanks,

Mark
*




well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
Go to the top of the page
 
+Quote Post
ArchiMark
post May 3 2006, 06:16 PM
Post #33





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(Meanie @ May 2 2006, 09:06 PM)
well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
*


Oooppsss.... that makes sense, Meanie.... rolleyes.gif

Anyway, copied sample files to /hdd3/hello-test and tried again.....below is what I got this time...geez, and this is just a little test file.....

blink.gif

CODE
cd /hdd3/hello-test
# ls
Makefile   hello.cpp
# gcc -o hello hello.cpp
# /tmp/cc9nDkEr.o: In function `main':
> /tmp/cc9nDkEr.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
Syntax error: "(" unexpected
# /tmp/cc9nDkEr.o(.text+0x14): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(char const*)
Syntax error: word unexpected (expecting ")")
# *)
Syntax error: unexpected ")"
# /tmp/cc9nDkEr.o(.text+0x24): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(ostream &(*)(ostream &))
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x38): undefined reference to `cout'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x40): undefined reference to `endl(ostream &)'
Syntax error: word unexpected (expecting ")")
collect2: ld returned 1 exit status
Go to the top of the page
 
+Quote Post
Meanie
post May 3 2006, 07:48 PM
Post #34





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(ArchiMark @ May 4 2006, 12:16 PM)
QUOTE(Meanie @ May 2 2006, 09:06 PM)
well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
*


Oooppsss.... that makes sense, Meanie.... rolleyes.gif

Anyway, copied sample files to /hdd3/hello-test and tried again.....below is what I got this time...geez, and this is just a little test file.....

blink.gif

CODE
cd /hdd3/hello-test
# ls
Makefile   hello.cpp
# gcc -o hello hello.cpp
# /tmp/cc9nDkEr.o: In function `main':
> /tmp/cc9nDkEr.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
Syntax error: "(" unexpected
# /tmp/cc9nDkEr.o(.text+0x14): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(char const*)
Syntax error: word unexpected (expecting ")")
# *)
Syntax error: unexpected ")"
# /tmp/cc9nDkEr.o(.text+0x24): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(ostream &(*)(ostream &))
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x38): undefined reference to `cout'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x40): undefined reference to `endl(ostream &)'
Syntax error: word unexpected (expecting ")")
collect2: ld returned 1 exit status

*



how about just running make

btw, you are trying to compile a c++ file with a c compiler which of course fails. you can compile c programs with a c++ compiler but not the other way around

gcc = c compiler
g++ = c++ compiler

.c extension usually means c program
.cpp extension usually means c++ program
Go to the top of the page
 
+Quote Post
ArchiMark
post May 3 2006, 08:25 PM
Post #35





Group: Members
Posts: 1,026
Joined: 25-June 03
From: Silicon Valley
Member No.: 208



QUOTE(Meanie @ May 3 2006, 08:48 PM)
how about just running make

btw, you are trying to compile a c++ file with a c compiler which of course fails. you can compile c programs with a c++ compiler but not the other way around

gcc = c compiler
g++ = c++ compiler

.c extension usually means c program
.cpp extension usually means c++ program
*


Oooopppss, again.....batting 1000 here.... rolleyes.gif

You're absolutely right, Meanie....need to watch (and think about...) what I'm doing...

Just ran make and all is good!!

Thanks as always, Meanie!!

Mark
Go to the top of the page
 
+Quote Post
dinorex
post Jun 8 2006, 08:57 AM
Post #36





Group: Members
Posts: 88
Joined: 20-February 06
From: Sydney
Member No.: 9,186



Meanie,

thx for your awesome zgcc-2.95.2.cramfs package, which is under the pdaXqtrom env't, however, I've got questions to ask...

1/ it seems that i still cannot compile the Trolltech Qt tutorials (the 14 steps) as the QPainter.rotate() functions is not encap-ed, actually what's the version of Qt is included?

2/ is it exactly the same as pdaXrom env't? if that's so, can I using the pdaXqtrom to directly produce the 'pdaXrom' ipks so that I don't need to make use of the pdaXrom env't?

i've tried using 'qt-mt_3.3.4_armv5tel.ipk' for 'upgrading' the Qt module, and try to compile a 'freshmeat game' writing in Qt (qgo-1.5-r1.tar.gz) and it still cannot be compiled successfully. can that be compiled in pdaXrom? if so, what module should I add back to the pdaXqtrom so that i can make it under this env't?

3/ for OpenGL modules, I have tried your ipks to install in sharp rom, but it turns out error mesgs (some files are failed to extract...), can that module be embedded in this package as well in your future versions?
Go to the top of the page
 
+Quote Post
Meanie
post Jun 9 2006, 02:51 AM
Post #37





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(dinorex @ Jun 9 2006, 02:57 AM)
Meanie,

thx for your awesome zgcc-2.95.2.cramfs package, which is under the pdaXqtrom env't, however, I've got questions to ask...

1/ it seems that i still cannot compile the Trolltech Qt tutorials (the 14 steps) as the QPainter.rotate() functions is not encap-ed, actually what's the version of Qt is included?

2/ is it exactly the same as pdaXrom env't? if that's so, can I using the pdaXqtrom to directly produce the 'pdaXrom' ipks so that I don't need to make use of the pdaXrom env't?

i've tried using 'qt-mt_3.3.4_armv5tel.ipk' for 'upgrading' the Qt module, and try to compile a 'freshmeat game' writing in Qt (qgo-1.5-r1.tar.gz) and it still cannot be compiled successfully. can that be compiled in pdaXrom? if so, what module should I add back to the pdaXqtrom so that i can make it under this env't?

3/ for OpenGL modules, I have tried your ipks to install in sharp rom, but it turns out error mesgs (some files are failed to extract...), can that module be embedded in this package as well in your future versions?
*


well, this is to be expected. zgcc is a qt/e compiler not qt. sharp rom is based on like qt/e 1.5 which is as ancient as it can get. the libraries i included are for 1.5 so i can build apps compatible for this ancient environment. the pdaxrom libraries and headers i included have only been tested for gtk2 and some minimal gnome necessary for compiling all the apps in pdaxqtrom. qt3 libs and apps are not included yet.
pdaxqtrom != pdaxrom. it is only a small subset of it with the most common apps that use gtk available. kde and qt apps have not been tested yet, and sdl apps will not work at all due to the different sdl libraries used. apps compiled under pdaxqtrom not tied to qt/e or sdl will mostly work on pdaxrom but it is better to compile them for pdaxrom using a softfloat compiler instead of a hardfloat one which is used by pdaxqtrom.
Go to the top of the page
 
+Quote Post
yh2006
post Jun 9 2006, 07:48 PM
Post #38





Group: Members
Posts: 7
Joined: 9-June 06
Member No.: 10,121



Hi meanie,

I've installed zgcc compiler image to my c1000 using the install shell script.java script:emoticon(':)') The installation went fine and I was able to compile and run the hello example. However, I got the following errors when trying the hello-qt example:

java script:emoticon(':blink:')

$ cd hello/
$ ls
Makefile hello.cpp hello.h hello.pro main.cpp wc.t
$ make
g++ -c -pipe -DQT_QWS_SL3000 -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/QtPalmtop/include -o hello.o hello.cpp
In file included from hello.cpp:11:
hello.h:14: qwidget.h: No such file or directory
hello.cpp:12: qpushbutton.h: No such file or directory
hello.cpp:13: qtimer.h: No such file or directory
hello.cpp:14: qpainter.h: No such file or directory
hello.cpp:15: qpixmap.h: No such file or directory
In file included from hello.cpp:11:
hello.h:18: parse error before `{'
hello.h:22: syntax error before `:'
hello.h:26: `QPaintEvent' was not declared in this scope
hello.h:26: parse error before `)'
hello.h:32: parse error before `}'
hello.cpp:22: type specifier omitted for parameter
hello.cpp:22: parse error before `*'
hello.cpp:23: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `Hello::Hello(...)':
hello.cpp:23: `parent' undeclared (first use this function)
hello.cpp:23: (Each undeclared identifier is reported only once
hello.cpp:23: for each function it appears in.)
hello.cpp:23: `name' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `QWidget'
hello.cpp:23: `text' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `t'
hello.cpp:23: class `Hello' does not have any field named `b'
hello.cpp:25: `QTimer' undeclared (first use this function)
hello.cpp:25: `timer' undeclared (first use this function)
hello.cpp:25: parse error before `('
hello.cpp:26: implicit declaration of function `int timeout(...)'
hello.cpp:26: implicit declaration of function `int SIGNAL(...)'
hello.cpp:26: implicit declaration of function `int animate(...)'
hello.cpp:26: implicit declaration of function `int SLOT(...)'
hello.cpp:26: implicit declaration of function `int connect(...)'
hello.cpp:29: implicit declaration of function `int resize(...)'
hello.cpp: At top level:
hello.cpp:38: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::animate()':
hello.cpp:40: `FALSE' undeclared (first use this function)
hello.cpp:40: implicit declaration of function `int repaint(...)'
hello.cpp: At top level:
hello.cpp:51: `QMouseEvent' was not declared in this scope
hello.cpp:51: `e' was not declared in this scope
hello.cpp:52: structure `Hello' not yet defined
hello.cpp:52: invalid declarator
hello.cpp:52: syntax error before `{'
hello.cpp:65: `QPaintEvent' was not declared in this scope
hello.cpp:65: parse error before `)'
hello.cpp:66: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::paintEvent(...)':
hello.cpp:70: `t' undeclared (first use this function)
hello.cpp:74: `QFontMetrics' undeclared (first use this function)
hello.cpp:74: parse error before `='
hello.cpp:75: `fm' undeclared (first use this function)
hello.cpp:77: implicit declaration of function `int width(...)'
hello.cpp:78: implicit declaration of function `int height(...)'
hello.cpp:81: `QPixmap' undeclared (first use this function)
hello.cpp:81: parse error before `('
hello.cpp:82: `pm' undeclared (first use this function)
hello.cpp:85: `QPainter' undeclared (first use this function)
hello.cpp:85: parse error before `;'
hello.cpp:89: `p' undeclared (first use this function)
hello.cpp:90: implicit declaration of function `int font(...)'
hello.cpp:93: `QColor' undeclared (first use this function)
hello.cpp:93: parse error before `::'
hello.cpp:101: implicit declaration of function `int bitBlt(...)'
make: *** [hello.o] Error 1
$

Do I need to make some modifications to get it compile and execute?

Also, would you please suggest how to remove/unmount the zgcc cramfs cleanly/completely.
I got the image from a link from the zbook-3k pdf file. I'm not sure this is the latest version or not and would like to install the one from this thread.

Thanks.
Go to the top of the page
 
+Quote Post
Meanie
post Jun 10 2006, 05:09 AM
Post #39





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(yh2006 @ Jun 10 2006, 01:48 PM)
Hi meanie,

    I've installed zgcc compiler image to my c1000 using the install shell script.java script:emoticon(':)') The installation went fine and I was able to compile and run the hello example. However, I got the following errors when trying the hello-qt example:

java script:emoticon(':blink:')

$ cd hello/
$ ls
Makefile  hello.cpp  hello.h    hello.pro  main.cpp  wc.t
$ make
g++ -c -pipe -DQT_QWS_SL3000 -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/QtPalmtop/include -o hello.o hello.cpp
In file included from hello.cpp:11:
hello.h:14: qwidget.h: No such file or directory
hello.cpp:12: qpushbutton.h: No such file or directory
hello.cpp:13: qtimer.h: No such file or directory
hello.cpp:14: qpainter.h: No such file or directory
hello.cpp:15: qpixmap.h: No such file or directory
In file included from hello.cpp:11:
hello.h:18: parse error before `{'
hello.h:22: syntax error before `:'
hello.h:26: `QPaintEvent' was not declared in this scope
hello.h:26: parse error before `)'
hello.h:32: parse error before `}'
hello.cpp:22: type specifier omitted for parameter
hello.cpp:22: parse error before `*'
hello.cpp:23: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `Hello::Hello(...)':
hello.cpp:23: `parent' undeclared (first use this function)
hello.cpp:23: (Each undeclared identifier is reported only once
hello.cpp:23: for each function it appears in.)
hello.cpp:23: `name' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `QWidget'
hello.cpp:23: `text' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `t'
hello.cpp:23: class `Hello' does not have any field named `b'
hello.cpp:25: `QTimer' undeclared (first use this function)
hello.cpp:25: `timer' undeclared (first use this function)
hello.cpp:25: parse error before `('
hello.cpp:26: implicit declaration of function `int timeout(...)'
hello.cpp:26: implicit declaration of function `int SIGNAL(...)'
hello.cpp:26: implicit declaration of function `int animate(...)'
hello.cpp:26: implicit declaration of function `int SLOT(...)'
hello.cpp:26: implicit declaration of function `int connect(...)'
hello.cpp:29: implicit declaration of function `int resize(...)'
hello.cpp: At top level:
hello.cpp:38: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::animate()':
hello.cpp:40: `FALSE' undeclared (first use this function)
hello.cpp:40: implicit declaration of function `int repaint(...)'
hello.cpp: At top level:
hello.cpp:51: `QMouseEvent' was not declared in this scope
hello.cpp:51: `e' was not declared in this scope
hello.cpp:52: structure `Hello' not yet defined
hello.cpp:52: invalid declarator
hello.cpp:52: syntax error before `{'
hello.cpp:65: `QPaintEvent' was not declared in this scope
hello.cpp:65: parse error before `)'
hello.cpp:66: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::paintEvent(...)':
hello.cpp:70: `t' undeclared (first use this function)
hello.cpp:74: `QFontMetrics' undeclared (first use this function)
hello.cpp:74: parse error before `='
hello.cpp:75: `fm' undeclared (first use this function)
hello.cpp:77: implicit declaration of function `int width(...)'
hello.cpp:78: implicit declaration of function `int height(...)'
hello.cpp:81: `QPixmap' undeclared (first use this function)
hello.cpp:81: parse error before `('
hello.cpp:82: `pm' undeclared (first use this function)
hello.cpp:85: `QPainter' undeclared (first use this function)
hello.cpp:85: parse error before `;'
hello.cpp:89: `p' undeclared (first use this function)
hello.cpp:90: implicit declaration of function `int font(...)'
hello.cpp:93: `QColor' undeclared (first use this function)
hello.cpp:93: parse error before `::'
hello.cpp:101: implicit declaration of function `int bitBlt(...)'
make: *** [hello.o] Error 1
$                                                     

      Do I need to make some modifications to get it compile and execute?

      Also, would you please suggest how to remove/unmount the zgcc cramfs cleanly/completely.
I got the image from a link from the zbook-3k pdf file. I'm not sure this is the latest version or not and would like to install the one from this thread.

Thanks.
*



add /qpe to the end INCPATH in the Makefile
Go to the top of the page
 
+Quote Post
yh2006
post Jun 10 2006, 11:29 AM
Post #40





Group: Members
Posts: 7
Joined: 9-June 06
Member No.: 10,121



Meanie,

I added /qpe to the end of INCPATH in the Makefile so it reads like -I$(QTDIR)/include/qpe, but it gives the same errors as before.
QTDIR is pointing at /home/QtPalmtop( I checked with echo) and I notice that
/include is empty. Am I doing something wrong during installation or setting up the INCPATH?

Do I need to install the GTK library if I want to compile GTK apps?


Thanks for answering my newbie questions.
Go to the top of the page
 
+Quote Post
Meanie
post Jun 10 2006, 03:40 PM
Post #41





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(yh2006 @ Jun 11 2006, 05:29 AM)
Meanie,

    I added /qpe to the end of INCPATH in the Makefile so it reads like -I$(QTDIR)/include/qpe, but it gives the same errors as before.
    QTDIR is pointing at /home/QtPalmtop( I checked with echo) and I notice that
/include is empty. Am I doing something wrong during installation or setting up the INCPATH?

    Do I need to install the GTK library if I want to compile GTK apps?


    Thanks for answering my newbie questions.
*


you need to link /home/QtPalmtop/include to /mnt/zgcc/include
ie ln -s /mnt/zgcc/include /home/QtPalmtop/include

for gtk apps, you will need gtk, x, glib... best is to install pdaxqtrom-base
Go to the top of the page
 
+Quote Post
bam
post Jun 10 2006, 08:43 PM
Post #42





Group: Members
Posts: 1,213
Joined: 9-June 05
From: Gobi Desert, Mongolia
Member No.: 7,306



any chance in you making a gcc image sans the x stuff, as I dont use x/qt stuff anymore. Or "what" would I have to remove in your current image?
Go to the top of the page
 
+Quote Post
Meanie
post Jun 15 2006, 04:02 AM
Post #43





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(bam @ Jun 11 2006, 02:43 PM)
any chance in you making a gcc image sans the x stuff, as I dont use x/qt stuff anymore. Or "what" would I have to remove in your current image?
*


if you can find an old version of the image, it was without the xqt stuff
the old image didnt have perl so it was much smaller, so there's just lots of include headers and libraries that were added for xqt as well.

i am gonna make it even bigger by adding qt 3.3 headers and libraries smile.gif
Go to the top of the page
 
+Quote Post
miskinis
post Jun 15 2006, 11:17 AM
Post #44





Group: Members
Posts: 333
Joined: 8-January 05
From: North East, USA Today
Member No.: 6,159



QUOTE(bam @ Jun 11 2006, 04:43 AM)
[...] as I dont use x/qt stuff anymore. [...]


Bam, I was hoping to setup this xqt environment to get Space Trader
working. I'm having some issues on the 5500, but I was hoping this
graphical environment would be suitable for Space Trader...

John
Go to the top of the page
 
+Quote Post
bam
post Jun 15 2006, 04:51 PM
Post #45





Group: Members
Posts: 1,213
Joined: 9-June 05
From: Gobi Desert, Mongolia
Member No.: 7,306



oof, maybe I can setup a minimal xqt rootless mode.....I was hoping for a qtopia version...
Go to the top of the page
 
+Quote Post

5 Pages V  < 1 2 3 4 5 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th October 2014 - 02:53 PM