Author Topic: Cross compiling cpp(gcc-cross-2.95)-QT library not found  (Read 7285 times)

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« on: June 08, 2004, 09:18:21 pm »
i tried to cross compile a program with ./configure script, i have everything necessary installed....

this are the steps i have followed

source dev-arm-qpe.sh
./configure
.
error statement:

....Checking for QT library ...not found
.....giving up

any ideas on thi s? thanks a lot

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #1 on: June 09, 2004, 08:48:17 pm »
You need to obtain the QPE SDK from Trolltech (Either the GPL or Commercial edition) depending on which type of software you are developing:

http://www.trolltech.com/download/qtopia/i...ndex.html?cid=6
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #2 on: June 09, 2004, 10:28:50 pm »
but i have already installed qtopia-free-1.5.0-1.i386.rpm.....i

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #3 on: June 10, 2004, 06:15:51 am »
Which program are you compiling? Are you sure it looks for the embedded version of Qt ?
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #4 on: June 10, 2004, 06:47:43 am »
For starters, your configure command needs to be more like this:

CC=arm-linux-gcc ./configure --target=arm-linux

If that still doesn\'t work, then either:

- The Qtopia SDK didn\'t install properly
or
- Something is wrong with your dev-arm-qpe.sh
or
- The configure script isn\'t working properly

Did you follow the cross-compiler howto all the way through, even building the example Qtopia app, just to confirm the toolchain is working?
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #5 on: June 10, 2004, 10:12:14 pm »
i tried to execute this :

CC=arm-linux-gcc ./configure --target=arm-linux

here are the results :

loading cache ./config.cache
checking for gcc... arm-linux-gcc
checking whether the C compiler (arm-linux-gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

doc

  • Full Member
  • ***
  • Posts: 191
    • View Profile
    • http://
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #6 on: June 10, 2004, 10:46:42 pm »
Either you don\'t have gcc configured right or you haven\'t installed the cross compiler rpms?

What version/distro of Linux are you using?

I have built apps using Red Hat 9 and Fedora Core 1.  Haven\'t tried Core 2 yet.
By your command...

Doc
Sharp SL-5500 PDA
Sharp 2.78 ROM
Viking 256MB SD
Socket LP-E CF Ethernet

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #7 on: June 13, 2004, 10:23:25 pm »
im using redhat 9 kernel 2.4.26, may i know how to configure both c and c++ compilers? thanks
Quote
Either you don\'t have gcc configured right or you haven\'t installed the cross compiler rpms?

What version/distro of Linux are you using?

I have built apps using Red Hat 9 and Fedora Core 1.  Haven\'t tried Core 2 yet.

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #8 on: June 13, 2004, 10:36:14 pm »
Quote
....Checking for QT library ...not found
.....giving up

any ideas on thi s? thanks a lot


Do you have QT in your library path? Where is your config script looking for QT?

If all else fails, post your configure script.


John
C860, SMC Model SMC2642W, various sized memory cards

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #9 on: June 13, 2004, 11:05:25 pm »
Quote
Quote
....Checking for QT library ...not found
.....giving up

any ideas on thi s? thanks a lot


Do you have QT in your library path? Where is your config script looking for QT?

If all else fails, post your configure script.


John



QT ? a file named \"QT\"?

the library path :
file:/opt/Qtopia/sharp/lib    or   file:/opt/Qtopia/lib ?

i run dev-arm-pde.sh before i execute ./configure, could it be the configuration in dev-arm-pde.sh not correct?

waalkman

  • Full Member
  • ***
  • Posts: 176
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #10 on: June 14, 2004, 12:03:27 am »
Quote from: \"summer00\"
Quote
Quote
....Checking for QT library ...not found
.....giving up

any ideas on thi s? thanks a lot


Do you have QT in your library path? Where is your config script looking for QT?

If all else fails, post your configure script.


John


Quote

QT ? a file named \"QT\"?  


Well no, Qtopia itself.

Quote

the library path :
file:/opt/Qtopia/sharp/lib    or   file:/opt/Qtopia/lib ?


Good, so where is your ./configure file looking for it?

Quote

i run dev-arm-pde.sh before i execute ./configure, could it be the configuration in dev-arm-pde.sh not correct?


Mmmm, maybe. Post it so brighter minds than mine can have a look-see.


John
C860, SMC Model SMC2642W, various sized memory cards

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #11 on: June 14, 2004, 12:15:10 am »
#################
# file dev-rm-qpe.sh#
#################

#!/bin/bash
# dev-arm-qpe.sh script
# location : /usr/bin
#

if [ -z ${ORG_PATH} ]
then
ORG_PATH=${PATH}
export ORG_PATH
fi

if [ -z ${ORG_LD_LIBRARY_PATH} ]
then
ORG_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
export ORG_LD_LIBRARY_PATH
fi

#CROSSCOMPILE=/opt/Embedix/tools/arm-linux:/usr/local/x86/2.95.3/bin:/opt/Embedix/tools/arm-linux
QPEDIR=/opt/Qtopia/sharp
QTDIR=/opt/Qtopia/sharp
PATH=$QTDIR/bin:$QPEDIR/bin:$CROSSCOMPILE/bin:${ORG_PATH}
TMAKEPATH=/opt/Qtopia/tmake/lib/qws/linux-sharp-g++/

LD_LIBRARY_PATH=/usr/src/qt-embedded-free-3.3.2/lib:${ORG_LD_LIBRARY_PATH}

### Commented out next line. No need to set LD_LIBRARY_PATH !
### LD_LIBRARY_PATH=$QTDIR/lib:${ORG_LD_LIBRARY_PATH}

export QPEDIR QTDIR PATH LD_LIBRARY_PATH TMAKEPATH PS1
echo \"Altered environment for Sharp Zaurus Development ARM\"


i think if this script is executed, then ./configure will follow tha paths above....correct me if im wrong , thanks

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #12 on: June 14, 2004, 01:43:09 am »
It\'s possible that even with the paths set correctly that configure has been badly set up or is searching for a higher version of QT than the Z uses - have a look in config.log for the exact error - and also the path it is using

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

summer00

  • Newbie
  • *
  • Posts: 42
    • View Profile
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #13 on: June 14, 2004, 02:29:46 am »
my root/config.log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:533: checking for gcc
configure:646: checking whether the C compiler (gcc  ) works
configure:662: gcc -o conftest    conftest.c  1]&5
configure:688: checking whether the C compiler (gcc  ) is a cross-compiler
configure:693: checking whether we are using GNU C
configure:721: checking whether gcc accepts -g
configure:753: checking how to run the C preprocessor
configure:837: checking for c++
configure:869: checking whether the C++ compiler (c++  ) works
configure:885: c++ -o conftest    conftest.C  1]&5
configure:911: checking whether the C++ compiler (c++  ) is a cross-compiler
configure:916: checking whether we are using GNU C++
configure:944: checking whether c++ accepts -g
configure:976: checking how to run the C++ preprocessor
configure:994: c++ -E  conftest.C ]/dev/null 2]conftest.out
configure:1020: checking whether gcc needs -traditional
configure:1069: checking for moc
configure:1106: checking for uic
configure:1141: checking location of Qt header files


seems like it stoped at Qt header files

zenyatta

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
    • http://
Cross compiling cpp(gcc-cross-2.95)-QT library not found
« Reply #14 on: June 14, 2004, 04:28:23 am »
summer00: now you need to look inside configure at line 1141 and find out what exactly it is trying to do when it fails. It will check for the existence of certain files in certain directories. You can then find those files and copy them to the directories where configure is looking.

z.
SL-5500, 256MB Kingston CF card, 128MB EDGE SD card, Thomson HED-155 headphones
OpenZaurus 3.5.3 / Opie (kernel 64-0)