[Qgis-developer] Re: Posting parameters for the various Qt libs

anibal alarcon anibal.alarcon at gmail.com
Mon Aug 17 20:33:37 EDT 2009


Hi Tim

Run ldd on your generated binary and check that it has libs referenced
> properly for each (in particular Qt) lib. See my example below this
> message. If not you should either:
> 
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to qt lib dir>
> 
> or (system wide so use sudo)
> 
> edit /etc/ld.so.conf
> 
> add the path to qt lib dir there
> 
> run ldconfig

I dont have binary, cant check libs referenced

I do export... and nano /etc/ld.so.conf after run ldconfig but nothing

I found this link thats some similar... in akonadi framework of KDE

http://mail.kde.org/pipermail/kde-buildsystem/2008-July/004877.html


I do not know if it would fix

Thanks in advance
Best regards

Anibal


El lun, 17-08-2009 a las 14:06 +0200, Tim Sutton escribió:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi
> 
> (thread back on list)
> 
> 
> 
> anibal alarcon wrote:
> > Hi Tim
> > I did the following:
> > 
> > 1. Unisntalled qgis(1.1) and his bindings except python-qgis 1.1.0
> > 2. Again built qgis 1.2 in another path (/home/anibal/aplica) and work
> > fine, except at the end:
> > .
> > -- Installing: /home/anibal/aplica/share/qgis/i18n/qgis_sq_AL.qm
> > -- Installing: /home/anibal/aplica/share/qgis/i18n/qt_ar.qm
> > -- Installing: /usr/lib/python2.5/site-packages/qgis/__init__.py
> > CMake Error at python/cmake_install.cmake:36 (FILE):
> >   file INSTALL cannot copy file
> >   "/home/anibal/dev/cpp/qgis/python/__init__.py" to
> >   "/usr/lib/python2.5/site-packages/qgis/__init__.py".
> > Call Stack (most recent call first):
> >   cmake_install.cmake:64 (INCLUDE)
> > 
> > make: *** [install] Error 1
> > 
> > but built qgis executable. 
> >
> 
> Ok this is a general QGIS compilation error you should ask on the list.
> There have been quite a few python related updates in the last few days
> and you may have caught a snapshot in the middle of them. Try updating
> svn and then doing:
> 
> cd build
> ccmake ..
> c
> g
> make install
> 
> (to force regeneration of make files)
> 
> > 3. Deleted the directory 1_hello_world_qgis_style
> > 4. Again svn co
> > https://svn.osgeo.org/qgis/trunk/code_examples/1_hello_world_qgis_style
> > cd 1_hello_world_qgis_style
> > mkdir build
> > export LIB_DIR=/home/anibal/aplica
> > cmake ..
> > make
> > 
> > I modified in main.cpp (prueba.shp exist)
> > 
> >   QString myPluginsDir        = "/home/anibal/apps/lib/qgis";
> >   QString myLayerPath         = "/home/anibal/gnu2win/";
> >   QString myLayerBaseName     = "prueba";
> >   QString myProviderName      = "ogr";
> 
> Did you say you used 'aplica' as your qgis install path? mPluginsDir
> should match...
> 
> > 
> > After cmake .. some warnings but said:
> > 
> > -- Generating done
> > -- Build files have been written
> > to: /home/anibal/dev/cst/1_hello_world_qgis_style/build
> > 
> > After make
> > 
> > anibal at debialinmov:~/dev/cst/1_hello_world_qgis_style/build$ make
> > Linking CXX executable timtut1
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `QStandardItemModel::mimeTypes() const'
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `QPainter::drawImage(QPointF const&, QImage const&)'
> > /home/anibal/aplica/lib/libqgis_gui.so: undefined reference to
> > `QPainter::fillRect(QRect const&, QColor const&)'
> > /home/anibal/aplica/lib/libqgis_gui.so: undefined reference to
> > `QFileDialog::setVisible(bool)'
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `QStandardItemModel::dropMimeData(QMimeData const*, Qt::DropAction, int,
> > int, QModelIndex const&)'
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `QStandardItemModel::mimeData(QList<QModelIndex> const&) const'
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `QPainter::drawPixmap(QPointF const&, QPixmap const&)'
> > /home/anibal/aplica/lib/libqgis_core.so: undefined reference to
> > `qFlagLocation(char const*)'
> > collect2: ld returned 1 exit status
> > make[2]: *** [timtut1] Error 1
> > make[1]: *** [CMakeFiles/timtut1.dir/all] Error 2
> > make: *** [all] Error 2
> > 
> 
> Run ldd on your generated binary and check that it has libs referenced
> properly for each (in particular Qt) lib. See my example below this
> message. If not you should either:
> 
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to qt lib dir>
> 
> or (system wide so use sudo)
> 
> edit /etc/ld.so.conf
> 
> add the path to qt lib dir there
> 
> run ldconfig
> 
> 
> Then try to run the binary again.
> 
> Regards
> 
> Tim
> 
> [build] ldd timtut1
> 	linux-vdso.so.1 =>  (0x00007fffa7bff000)
> 	libQtSvg.so.4 => /usr/lib/libQtSvg.so.4 (0x00007f689f736000)
> 	libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007f689eaf8000)
> 	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f689e8e6000)
> 	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f689e5df000)
> 	libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0x00007f689e397000)
> 	libQtSql.so.4 => /usr/lib/libQtSql.so.4 (0x00007f689e157000)
> 	libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00007f689de33000)
> 	libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00007f689d9e6000)
> 	libpthread.so.0 => /lib/libpthread.so.0 (0x00007f689d7ca000)
> 	libdl.so.2 => /lib/libdl.so.2 (0x00007f689d5c6000)
> 	libqgis_core.so.1.2.0 =>
> /home/timlinux/apps/qgis_trunk/lib/libqgis_core.so.1.2.0
> (0x00007f689cf70000)
> 	libqgis_gui.so.1.2.0 =>
> /home/timlinux/apps/qgis_trunk/lib/libqgis_gui.so.1.2.0 (0x00007f689ccd2000)
> 	libgeos-3.1.0.so => /usr/lib/libgeos-3.1.0.so (0x00007f689c98a000)
> 	libgdal1.6.0.so.1 => /usr/lib/libgdal1.6.0.so.1 (0x00007f689c018000)
> 	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f689bd0b000)
> 	libm.so.6 => /lib/libm.so.6 (0x00007f689ba86000)
> 	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f689b86e000)
> 	libc.so.6 => /lib/libc.so.6 (0x00007f689b4fc000)
> 	libz.so.1 => /lib/libz.so.1 (0x00007f689b2e4000)
> 	libaudio.so.2 => /usr/lib/libaudio.so.2 (0x00007f689b0cb000)
> 	libpng12.so.0 => /usr/lib/libpng12.so.0 (0x00007f689aea4000)
> 	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f689ac1e000)
> 	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f689a9d8000)
> 	libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f689a7cf000)
> 	libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f689a5b4000)
> 	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f689a2ef000)
> 	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f689a0e5000)
> 	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f6899eb3000)
> 	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f6899cb0000)
> 	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f6899a94000)
> 	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f689988f000)
> 	librt.so.1 => /lib/librt.so.1 (0x00007f6899687000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007f689f98f000)
> 	libproj.so.0 => /usr/lib/libproj.so.0 (0x00007f6899446000)
> 	libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x00007f6899232000)
> 	libgdal.so.1 => /home/timlinux/apps/lib/libgdal.so.1 (0x00007f6898889000)
> 	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f6898602000)
> 	libodbc.so.1 => /usr/lib/libodbc.so.1 (0x00007f68983a0000)
> 	libodbcinst.so.1 => /usr/lib/libodbcinst.so.1 (0x00007f6898193000)
> 	libltdl.so.7 => /usr/lib/libltdl.so.7 (0x00007f6897f89000)
> 	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f6897d5f000)
> 	libxerces-c.so.28 => /usr/lib/libxerces-c.so.28 (0x00007f6897787000)
> 	libjasper.so.1 => /usr/lib/libjasper.so.1 (0x00007f689752f000)
> 	libhdf5-1.6.6.so.0 => /usr/lib/libhdf5-1.6.6.so.0 (0x00007f689720e000)
> 	libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x00007f6896fe6000)
> 	libdf.so.4 => /usr/lib/libdf.so.4 (0x00007f6896d34000)
> 	libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007f6896b14000)
> 	libgif.so.4 => /usr/lib/libgif.so.4 (0x00007f689690b000)
> 	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00007f68966e8000)
> 	libnetcdf.so.4 => /usr/lib/libnetcdf.so.4 (0x00007f68964b4000)
> 	libpq.so.5 => /usr/lib/libpq.so.5 (0x00007f689628f000)
> 	libcurl-gnutls.so.4 => /usr/lib/libcurl-gnutls.so.4 (0x00007f6896051000)
> 	libidn.so.11 => /usr/lib/libidn.so.11 (0x00007f6895e1e000)
> 	liblber-2.4.so.2 => /usr/lib/liblber-2.4.so.2 (0x00007f6895c0f000)
> 	libldap_r-2.4.so.2 => /usr/lib/libldap_r-2.4.so.2 (0x00007f68959c6000)
> 	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00007f6895799000)
> 	libgnutls.so.26 => /usr/lib/libgnutls.so.26 (0x00007f68954ec000)
> 	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0x00007f68952db000)
> 	libgcrypt.so.11 => /lib/libgcrypt.so.11 (0x00007f6895074000)
> 	libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0x00007f6894c75000)
> 	libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007f6894a3d000)
> 	libnsl.so.1 => /lib/libnsl.so.1 (0x00007f6894823000)
> 	libXt.so.6 => /usr/lib/libXt.so.6 (0x00007f68945bd000)
> 	libpcre.so.3 => /lib/libpcre.so.3 (0x00007f689438d000)
> 	libuuid.so.1 => /lib/libuuid.so.1 (0x00007f6894188000)
> 	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f6893f83000)
> 	libgeos-3.0.0.so => /usr/lib/libgeos-3.0.0.so (0x00007f6893c52000)
> 	libtiff.so.4 => /usr/lib/libtiff.so.4 (0x00007f68939f7000)
> 	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00007f689375c000)
> 	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00007f6893537000)
> 	libcom_err.so.2 => /lib/libcom_err.so.2 (0x00007f6893333000)
> 	libicuuc.so.38 => /usr/lib/libicuuc.so.38 (0x00007f6892ff1000)
> 	libicudata.so.38 => /usr/lib/libicudata.so.38 (0x00007f689231b000)
> 	libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x00007f68920cc000)
> 	libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x00007f6891d43000)
> 	libresolv.so.2 => /lib/libresolv.so.2 (0x00007f6891b2b000)
> 	libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00007f6891911000)
> 	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0x00007f6891709000)
> 	libkeyutils.so.1 => /lib/libkeyutils.so.1 (0x00007f6891506000)
> 	libgpg-error.so.0 => /lib/libgpg-error.so.0 (0x00007f6891303000)
> 
> 
> > nothing has changed, everything remains the same and of course to review
> > your comments
> > QT_QT_INCLUDE_DIR /usr/include/qt4/Qt
> > is the same that I have
> > 
> > 
> > I installed the last open source Qt4 from
> > http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp
> > 
> > 
> > thanks friend
> > Best regards
> > Anibal
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> 
> 
> - --
> 
> Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
> ==============================================
> Please do not email me off-list with technical
> support questions. Using the lists will gain
> more exposure for your issues and the knowledge
> surrounding your issue will be shared with all.
> 
> Visit http://linfiniti.com to find out about:
>  * QGIS programming and support services
>  * Mapserver and PostGIS based hosting plans
>  * FOSS Consulting Services
> Skype: timlinux
> Irc: timlinux on #qgis at freenode.net
> ==============================================
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkqJR5wACgkQqk07qZdiYjenSQCfVtuyuGTumOPBj5+ToyTXVtnS
> 5qQAoL6vcpiEq2C5a7P/pc18xpfalYfj
> =Iffw
> -----END PGP SIGNATURE-----



More information about the Qgis-developer mailing list