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