Hi Tim (and other devs),
I'm currently on vacation and don't have convenient access to my development machines right now, but I do have both SQL Anywhere and QGIS installed on Ubuntu and was able to compile without any conflicts. I'll send the relevant details of my setup next week.
--Dave
----
David E. DeHaan
Query Processing team
Sybase iAnywhere
-----<qgis-developer-boun...@lists.osgeo.org> wrote: -----
David E. DeHaan
Query Processing team
Sybase iAnywhere
To: qgis-developer <qgis-developer@lists.osgeo.org>
From: Tim Sutton <li...@linfiniti.com>
Sent by: <qgis-developer-boun...@lists.osgeo.org>
Date: 12/28/2010 04:49PM
Subject: [Qgis-developer] SQL Anywhere Library conflict
Hi Dave (and others interested in SQL Anywhere)
I cam across a problem with linking QGIS libs where I would get the
following error messages:
Linking CXX executable qgis
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLInstallDriverEx'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLRemoveDriver'
/usr/lib/gcc/x86_64-linux-gnu/4.4.5/../../../../lib/libgdal1.7.0.so:
undefined reference to `SQLInstallerError'
collect2: ld returned 1 exit status
make[2]: *** [src/app/qgis] Error 1
make[1]: *** [src/app/CMakeFiles/qgis.dir/all] Error 2
make: *** [all] Error 2
After quite a bit of poking around I realised that there was probably
a conflict introduced by my recent SQLAnywhere install.
I commented out the line I added to my ~/.bashrc for SQL Anywhere:
# Added by Tim for sql anywhere support
#source /opt/sqlanywhere12/bin64/sa_config.sh
And then started a new shell, after which the QGIS libs linked
properly. I believe this is due the the libodbc shipped with SQL
Anywhere conflicting with my system lib.
So with that background, is there any elegant way to deal with this? I
guess the stock answer will be that typical users wont be compiling
QGIS so probably won't run into this - though I don't know if there
will be runtime issues introduced by this. Any thoughts? How do you
have your compilation environment set up?
Regards
--
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
==============================================
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer
_______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer