OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => Qt/Qtopia => Topic started by: zAlexandr on November 29, 2006, 05:07:13 pm

Title: Help With Compile Enviroment Settings
Post by: zAlexandr on November 29, 2006, 05:07:13 pm
Fresh installed Suse 9.3 (try with 10 too).
The packages was installed with Yast for qtopia development.

Installed Packages:
binutils-cross-arm-2.11.2-0.i386.rpm
gcc_old-2.95.3-7.i586.rpm
gcc-cross-sa1100-2.95.2-0.i386.rpm
glibc-arm-2.2.2-0.i386.rpm
linux-headers-arm-sa1100-2.4.6-3.i386.rpm
qtopia-free-1.7.0-1su82.i386.rpm
and
tmake-1.13.tar.gz


The enviroment script:
QPEDIR=/opt/Qtopia
QTDIR=/opt/Qtopia
PATH=/opt/gcc295/bin:$QTDIR/bin:$QPEDIR/bin:/opt/Qtopia/tmake-1.13:$PATH
TMAKEPATH=/opt/Qtopia/tmake-1.13/lib/qws/linux-x86-g++/
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QPEDIR QTDIR PATH TMAKEPATH LD_LIBRARY_PATH PS1
echo "Altered environment for Sharp Zaurus Development x86"


When try to compile example, compiler showed errors:


 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/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:50: string.h: No such file or directory
In file included from /opt/gcc295/lib/gcc-lib/i486-suse-linux/2.95.3/include/syslimits.h:7,
                 from /opt/gcc295/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h:11,
                 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:
/opt/gcc295/lib/gcc-lib/i486-suse-linux/2.95.3/include/limits.h:117: limits.h: No such file or directory
In file included from /opt/Qtopia/include/qtopia/qcom.h:33,
                 from /opt/Qtopia/include/qtopia/applicationinterface.h:24,
                 from /opt/Qtopia/include/qpe/qpeapplication.h:148,
                 from main.cpp:2:
/opt/Qtopia/include/qtopia/quuid.h:34: memory.h: No such file or directory
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 `int cstrncmp(const char *, const char *, unsigned int)':
/opt/Qtopia/include/qcstring.h:107: implicit declaration of function `int strncmp(...)'
In file included from /opt/Qtopia/include/qtopia/qcom.h:33,
                 from /opt/Qtopia/include/qtopia/applicationinterface.h:24,
                 from /opt/Qtopia/include/qpe/qpeapplication.h:148,
                 from main.cpp:2:
/opt/Qtopia/include/qtopia/quuid.h: In method `QUuid::QUuid()':
/opt/Qtopia/include/qtopia/quuid.h:56: implicit declaration of function `int memset(...)'
make: *** [main.o] Error 1


Some essential packages missing?
Thank you.
Title: Help With Compile Enviroment Settings
Post by: zAlexandr on December 01, 2006, 03:00:36 am
The first problem is fixed.  
This was in "glibc" library i.e. it must be installed on Suse for development.
Title: Help With Compile Enviroment Settings
Post by: zAlexandr on December 01, 2006, 03:02:18 am
Quote
The first problem is fixed.   
This was in "glibc" library i.e. it must be installed on Suse for development.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147666\"][{POST_SNAPBACK}][/a][/div]

But now I have linker problems it showed that "QPEAppplication::QPEAppplication()" not found and all members from QWidget.
Title: Help With Compile Enviroment Settings
Post by: zAlexandr on December 08, 2006, 03:01:08 am
Quote
Quote
The first problem is fixed.   
This was in "glibc" library i.e. it must be installed on Suse for development.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147666\"][{POST_SNAPBACK}][/a][/div]

But now I have linker problems it showed that "QPEAppplication::QPEAppplication()" not found and all members from QWidget.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=147667\"][{POST_SNAPBACK}][/a][/div]

It works!!!  
The problem was: Qtopia 1.7 SDK binaries for x86 compiled with gcc 3.3.5. So, we don't need gcc 2.95 for linux compilation, we need it for cross-compilation ONLY!!!.
Title: Help With Compile Enviroment Settings
Post by: InSearchOf on December 08, 2006, 03:34:52 am
Isn't it just fun when you answer all your own questions :-)

Late
Title: Help With Compile Enviroment Settings
Post by: Cresho on December 08, 2006, 04:09:11 am
Title: Help With Compile Enviroment Settings
Post by: zAlexandr on December 08, 2006, 07:20:13 am