Author Topic: Help With Compile Enviroment Settings  (Read 7870 times)

zAlexandr

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Help With Compile Enviroment Settings
« 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.
Zaurus SL-C1000, Sharp ROM 1.01
CF WLAN D-Link

zAlexandr

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Help With Compile Enviroment Settings
« Reply #1 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.
Zaurus SL-C1000, Sharp ROM 1.01
CF WLAN D-Link

zAlexandr

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Help With Compile Enviroment Settings
« Reply #2 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.
Zaurus SL-C1000, Sharp ROM 1.01
CF WLAN D-Link

zAlexandr

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Help With Compile Enviroment Settings
« Reply #3 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!!!.
Zaurus SL-C1000, Sharp ROM 1.01
CF WLAN D-Link

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Help With Compile Enviroment Settings
« Reply #4 on: December 08, 2006, 03:34:52 am »
Isn't it just fun when you answer all your own questions :-)

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Cresho

  • Hero Member
  • *****
  • Posts: 1609
    • View Profile
    • http://home.earthlink.net/~cresho/
Help With Compile Enviroment Settings
« Reply #5 on: December 08, 2006, 04:09:11 am »
Zaurus C-3200 (internal 8gb seagate drive) with buuf icon theme, cacko 1.23 full,  and also Meanie's pdaxqtrom-Debian/Open Office
Zaurus SL-5500 Sharp Rom 3.13 with steel theme
pretec pocket pc wi fi
ambicom bt2000-cf bluetooth-made in taiwan
simpletech 1gb cf
pny 1gb sd
patriot 2gb
ocz or patriot 4gb sd(failed after 2 weeks)only on z
creative csw-5300 speakers in stereo
DigiLife DDV-1000 for video, Audio, Picture recording playable on the zaurus
Mustek DV4500-video recorder, pictures, voice record on sd for z

zaurusthemes.biz | ZaurusVideo | Zaurus Software

zAlexandr

  • Newbie
  • *
  • Posts: 10
    • View Profile
    • http://
Help With Compile Enviroment Settings
« Reply #6 on: December 08, 2006, 07:20:13 am »
Zaurus SL-C1000, Sharp ROM 1.01
CF WLAN D-Link