[swift-users] Build problems, Qt paths

Bernhard Reiter bernhard at intevation.de
Wed Jul 13 09:47:20 CEST 2011


Remko,

Am Dienstag, 12. Juli 2011 22:28:45 schrieb Remko Tronçon:
> Other distributions such as debian also follow their own way of doing
> Qt include headers in /usr/include, but Debian provides a softlinked
> hierarchy in /usr/share/qt4 for example.

http://packages.debian.org/sid/i386/libqt4-dev/filelist
looks similiar, so it seems like providing more fine grained options
or more advise for people that try to build swift on unix is
a good idea. ;)

> You could try creating such a hierarchy yourself, using 'ln' and 'lndir',
> e.g. mkdir -p myqt4/include
>    lndir /usr/include/qt4/QtGui myqt4/include
>    lndir /usr/include/qt4/QtCore myqt4/include
>    ...
>    ln -s /usr/lib myqt4/lib
> and then point your 'qtdir' to it.
> (haven't tried these commands myself)

As there is no lndir on MeeGo1.2 that I've found, I've tried the following,
which of course did not work:
 mkdir -p myqt4/include
  for i in `ls /usr/include/qt4` ; do lndir $i myqt4/include  ; done
    -bash: lndir: command not found
  for i in `ls /usr/include/qt4` ; do echo $i ;  for j in 
`ls /usr/include/qt4/$i` ; do echo /usr/include/qt4/$i/$j; 
ln -s /usr/include/qt4/$i/$j myqt4/include ; done  ; done
    # quite a few clashes, does not feel right

  CC Sluift/lua.o
  LINK Sluift/sluift
scons: *** [Swift/QtUI/ChatList/ChatListDelegate.o] TypeError 
`File /home/bernhard/hacking/swift/swift-1.0/myqt4/include/QtCore found where 
directory expected.' trying to evaluate `${_concat(INCPREFIX, CPPPATH, 
INCSUFFIX, __env__, RDirs, TARGET, SOURCE)}'

Next attempt:
  rm -r myqt4/
  mkdir -p myqt4/include
  mkdir myqt4/lib
  for i in `ls /usr/include/qt4` ; do ln -s /usr/include/qt4/$i 
myqt4/include/ ; done

Now I can compile and swift starts.

Thanks,
Bernhard

-- 
Managing Director + Owner: www.Intevation.net <- A Free Software Company
Kolabsys.com: Board Member          FSFE.org: Founding GA Member
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: </lists/pipermail/swift-users/attachments/20110713/7d35ed9a/attachment.pgp>


More information about the swift-users mailing list