Mar 30 2004, 06:50 AM
Post
#1
|
|
|
Group: Members Posts: 69 Joined: 26-February 04 Member No.: 2,014 |
Hi.
History: First, I followed the directions at this group for "Compiler Setup" under development how-to's on one of my PCs. With some time, effort, and help from other Linux users, they worked. It compiled the example application for the x86 and the arm. They both worked. The arm one worked on the Z. Then, I struggled with getting Linux connectivity set up. In the process, I recompiled so many kernels and reinstalled the OS so many times that I removed my old QT compiler setup. "That's ok," I thought. "I've recorded exactly what I did." With help from people on this group, my Linux connectivity now works. However, when I do what I did the first time to get the compiler set up, it doesn't work this time. I've tried reinstalling the original OS I used and following the instructions 3 times. I seem to keep getting the same errors. Here are the steps I performed, copied from my screen: [clint@localhost gcc2.95.3]$ su Password: [root@localhost gcc2.95.3]# rpm -U --oldpackage cpp-2.95.3.1owl.i386.rpm error: open of cpp-2.95.3.1owl.i386.rpm failed: No such file or directory [root@localhost gcc2.95.3]# rpm -U --oldpackage cpp-2.95.3-1owl.i386.rpm error: Failed dependencies: cpp = 3.2.2-5 is needed by (installed) gcc-3.2.2-5 /usr/bin/cpp is needed by (installed) XFree86-4.3.0-2 [root@localhost gcc2.95.3]# cd /setup bash: cd: /setup: No such file or directory [root@localhost gcc2.95.3]# cd /home/clint/setup [root@localhost setup]# ls compiler connectivity gcc2.95.1-3 gcc2.95.3 terminal [root@localhost setup]# cd gcc 2.95.1-3 bash: cd: gcc: No such file or directory [root@localhost setup]# cd gcc2.95.1-3 [root@localhost gcc2.95.1-3]# ls cpp-2.95.1-3.i386.rpm gcc-2.95.1-3.i386.rpm [root@localhost gcc2.95.1-3]# rpm -U --oldpackage cpp-2.95.1.1-3.i386.rpm error: open of cpp-2.95.1.1-3.i386.rpm failed: No such file or directory [root@localhost gcc2.95.1-3]# rpm -U --oldpackage cpp-2.95.1-3.i386.rpm [root@localhost gcc2.95.1-3]# rpm -U --oldpackage gcc-2.95.1-3.i386.rpm [root@localhost gcc2.95.1-3]# cd /home/clint/support bash: cd: /home/clint/support: No such file or directory [root@localhost gcc2.95.1-3]# cd /home/clint/ [root@localhost clint]# ls setup [root@localhost clint]# cd setup [root@localhost setup]# ls compiler connectivity gcc2.95.1-3 gcc2.95.3 terminal [root@localhost setup]# cd compiler [root@localhost compiler]# ls binutils-cross-arm-2.11.2-0.i386.rpm gcc-cross-sa1100-2.95.2-0.i386.rpm qtopia-free-1.5.0-1.i386.rpm dev-arm-qpe.sh glibc-arm-2.2.2-0.i386.rpm dev-x86-qpe.sh linux-headers-arm-sa1100-2.4.6-3.i386.rpm [root@localhost compiler]# rpm -Uvh gcc-cross-sa1100-2.95.2-0.i386.rpm Preparing... ########################################### [100%] 1:gcc-cross-sa1100 ########################################### [100%] [root@localhost compiler]# rpm -Uvh binutils-cross-arm-2.11.2-0.i386.rpm Preparing... ########################################### [100%] 1:binutils-cross-arm ########################################### [100%] [root@localhost compiler]# rpm -Uvh glibc-arm-2.2.2-0.i386.rpm Preparing... ########################################### [100%] 1:glibc-arm ########################################### [100%] [root@localhost compiler]# rpm -Uvh linux-headers-arm-sa1100-2.4.6-3.i386.rpm Preparing... ########################################### [100%] 1:linux-headers-arm-sa110########################################### [100%] [root@localhost compiler]# rpm -Uvh qtopia-free-1.5.0-1.i386.rpm Preparing... ########################################### [100%] 1:qtopia-free ########################################### [100%] [root@localhost compiler]# cd /home/clint/setup [root@localhost setup]# ls compiler connectivity gcc2.95.1-3 gcc2.95.3 terminal [root@localhost setup]# cd compiler [root@localhost compiler]# ls binutils-cross-arm-2.11.2-0.i386.rpm gcc-cross-sa1100-2.95.2-0.i386.rpm qtopia-free-1.5.0-1.i386.rpm dev-arm-qpe.sh glibc-arm-2.2.2-0.i386.rpm dev-x86-qpe.sh linux-headers-arm-sa1100-2.4.6-3.i386.rpm [root@localhost compiler]# mv dev-arm-qpe.sh /home [root@localhost compiler]# mv dev-x86-qpe.sh /home [root@localhost compiler]# cd /home [root@localhost home]# ls clint dev-arm-qpe.sh dev-x86-qpe.sh [root@localhost home]# source dev-x86-qpe.sh Altered environment for Sharp Zaurus Development x86 [root@localhost home]# cp -r /opt/Qtopia/example /home [root@localhost home]# cd [root@localhost root]# cd /home [root@localhost home]# ls clint dev-arm-qpe.sh dev-x86-qpe.sh example [root@localhost home]# cd example [root@localhost example]# ls examplebase.ui example.control example.cpp example.desktop example.h example.html Example.png example.pro main.cpp [root@localhost example]# rm Makefile rm: cannot lstat `Makefile': No such file or directory [root@localhost example]# make clean make: *** No rule to make target `clean'. Stop. [root@localhost example]# tmake -o Makefile example.pro [root@localhost example]# make /opt/Qtopia/bin/uic examplebase.ui -o ./examplebase.h g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -fno-default-inline -DNO_DEBUG -I/opt/Qtopia/include -I/opt/Qtopia/include -o main.o main.cpp In file included from /opt/Qtopia/include/qcstring.h:50, from /opt/Qtopia/include/qstring.h:43, from /opt/Qtopia/include/qvariant.h:42, from examplebase.h:12, from example.h:3, from main.cpp:1: /usr/include/string.h:33:20: stddef.h: No such file or directory In file included from /opt/Qtopia/include/qcstring.h:50, from /opt/Qtopia/include/qstring.h:43, from /opt/Qtopia/include/qvariant.h:42, from examplebase.h:12, from example.h:3, from main.cpp:1: /usr/include/string.h:39: type specifier omitted for parameter `size_t' /usr/include/string.h:39: parse error before `)' token /usr/include/string.h:42: type specifier omitted for parameter `size_t' /usr/include/string.h:42: parse error before `)' token /usr/include/string.h:51: type specifier omitted for parameter `size_t' /usr/include/string.h:51: parse error before `)' token /usr/include/string.h:58: type specifier omitted for parameter `size_t' /usr/include/string.h:58: parse error before `)' token /usr/include/string.h:61: type specifier omitted for parameter `size_t' /usr/include/string.h:61: parse error before `)' token /usr/include/string.h:65: type specifier omitted for parameter `size_t' /usr/include/string.h:65: parse error before `)' token /usr/include/string.h:75: type specifier omitted for parameter `size_t' /usr/include/string.h:75: parse error before `)' token /usr/include/string.h:86: type specifier omitted for parameter `size_t' /usr/include/string.h:86: parse error before `)' token /usr/include/string.h:93: type specifier omitted for parameter `size_t' /usr/include/string.h:93: parse error before `)' token /usr/include/string.h:99: type specifier omitted for parameter `size_t' /usr/include/string.h:99: parse error before `)' token /usr/include/string.h:106: syntax error before `(' token In file included from /opt/Qtopia/include/qcstring.h:50, from /opt/Qtopia/include/qstring.h:43, from /opt/Qtopia/include/qvariant.h:42, from examplebase.h:12, from example.h:3, from main.cpp:1: /usr/include/string.h:120: syntax error before `(' token /usr/include/string.h:133: type specifier omitted for parameter `size_t' /usr/include/string.h:133: parse error before `)' token /usr/include/string.h:176: syntax error before `(' token /usr/include/string.h:180: syntax error before `(' token /usr/include/string.h:215: type specifier omitted for parameter `size_t' /usr/include/string.h:215: parse error before `,' token /usr/include/string.h:222: type specifier omitted for parameter `size_t' /usr/include/string.h:222: parse error before `)' token /usr/include/string.h:224: type specifier omitted for parameter `size_t' /usr/include/string.h:224: parse error before `)' token /usr/include/string.h:230: syntax error before `(' token /usr/include/string.h:236: syntax error before `(' token /usr/include/string.h:248: type specifier omitted for parameter `size_t' /usr/include/string.h:248: parse error before `)' token /usr/include/string.h:253: type specifier omitted for parameter `size_t' /usr/include/string.h:253: parse error before `)' token /usr/include/string.h:257: type specifier omitted for parameter `size_t' /usr/include/string.h:257: parse error before `)' token /usr/include/string.h:260: type specifier omitted for parameter `size_t' /usr/include/string.h:260: parse error before `)' token /usr/include/string.h:263: type specifier omitted for parameter `size_t' /usr/include/string.h:263: parse error before `)' token /usr/include/string.h:291: type specifier omitted for parameter `size_t' /usr/include/string.h:291: parse error before `)' token /usr/include/string.h:302: type specifier omitted for parameter `size_t' /usr/include/string.h:302: parse error before `,' token /usr/include/string.h:330: type specifier omitted for parameter `size_t' /usr/include/string.h:330: parse error before `)' token /usr/include/string.h:332: type specifier omitted for parameter `size_t' /usr/include/string.h:332: parse error before `)' token /usr/include/string.h:338: type specifier omitted for parameter `size_t' /usr/include/string.h:338: parse error before `)' token In file included from /opt/Qtopia/include/qstring.h:43, from /opt/Qtopia/include/qvariant.h:42, from examplebase.h:12, from example.h:3, from main.cpp:1: /opt/Qtopia/include/qcstring.h: In function `uint cstrlen(const char*)': /opt/Qtopia/include/qcstring.h:87: `strlen' undeclared (first use this function) /opt/Qtopia/include/qcstring.h:87: (Each undeclared identifier is reported only once for each function it appears in.) In file included from /opt/Qtopia/include/qwindowdefs.h:48, from /opt/Qtopia/include/qwidget.h:42, from examplebase.h:13, from example.h:3, from main.cpp:1: /usr/include/limits.h:124:26: no include path in which to find limits.h make: *** [main.o] Error 1 OK, QT people, what did I not do these 3 times that I did the first time that I got it working? It worked before. These error messages indicate to me that the string.h header file can't be found, but you can see where redhat told me that the header file packages were installed. What is going on here? My first thought is to give up on buying QT and try Squeak, but I don't know if Squeak will work in real-time. Any ideas, anyone? Clint Reese |
|
|
|
![]() |
Apr 3 2004, 02:30 PM
Post
#2
|
|
|
Group: Members Posts: 69 Joined: 26-February 04 Member No.: 2,014 |
QUOTE I can explain why, I just know what worked for me.
I have Fedora Core 1 which is pretty much RedHat 9 as I understand it. I followed how-to's with all the gcc2.95 references and had several errors, but then found I DID NOT HAVE TO DO the backward compatible gcc rpms. Just used what came with default install of Fedora. Everything worked. Maybe this will give you a clue to your problem. http://www.zaurususergroup.com/index.php?n...iewtopic&t=2045 or this one http://www.zaurususergroup.com/index.php?n...viewtopic&t=431 jdf Sorry for starting a new thread. I just found out that I should have looked under "Linux Issues" instead of QT/Qtopia. I should have looked under both before posting. The second link which you gave describes EXACTLY the problems which I've been having. I'm just a month late. I seem to be at the point where markb was when he was getting the errors about the JPEG stuff. Onward! Anyway, thank you for posting so helpfully. Clint Reese |
|
|
|
ClintReese QT "Compiler Setup" worked before. Why not now? Mar 30 2004, 06:50 AM
ClintReese I neglected to mention my distribution and system ... Mar 30 2004, 07:08 AM
lardman Firstly, why are you running as root (other than f... Mar 30 2004, 07:14 AM
ClintReese
That's what it looked like to me too.
These ... Mar 30 2004, 07:40 AM
jdf I CAN'T explain why, I just know what worked for m... Mar 30 2004, 09:58 AM
ClintReese QUOTEI can explain why, I just know what worked fo... Mar 31 2004, 08:14 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 18th May 2013 - 06:25 AM |