[Qgis-developer] QGIS

Stephan Holl holl at gdf-hannover.de
Fri Jun 16 08:52:55 EDT 2006


Hi QGIS-devs (Radim),


Finally I mangaged to follow Radims Wiki-page for cross-compiling QGIS
for win under linux.
But currently I am stuck when QGIS tries to link its binaries.

Here is an error-message. Since I am not very familiar with
compiler/linker output I send it to you in order to get some usefull
help.

i586-mingw32msvc-g++ -g -O2 -o qgis_help.exe qgis_help-main.o
qgis_help-qgshelpserver.o qgis_help-qgshelpviewer.o
qgis_help-qgshelpserver.moc.o qgis_help-qgshelpviewer.moc.o
-L/home/user/win/i586-mingw32msvc/lib -L/home/user/win/qt4.1_win/lib
-lsqlite3 qgis_help-main.o: In function
`main': /home/user/win/source/qgis/src/helpviewer/main.cpp:9: undefined
reference to `__imp___ZN12QApplicationC1ERiPPc' qgis_help-main.o: In
function
`main': /home/user/win/qt4.1_win/include/QtCore/../../src/corelib/tools/qstring.h:380:
undefined reference to `__imp___ZN7QString11shared_nullE'
qgis_help-main.o: In function
`main': /home/user/win/source/qgis/src/helpviewer/main.cpp:18:
undefined reference to
`__imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE'
qgis_help-main.o: In function
`main': /home/user/win/lib/gcc/i586-mingw32msvc/3.4.4/../../../../include/c++/3.4.4/ostream:189:
undefined reference to `__imp___ZNK14Q3ServerSocket4portEv'
qgis_help-main.o: In function
`main': /home/user/win/source/qgis/src/helpviewer/main.cpp:27:
undefined reference to
`__imp___ZN7QObject7connectEPKS_PKcS1_S3_N2Qt14ConnectionTypeE' /home/user/win/source/qgis/src/helpviewer/main.cpp:30:
undefined reference to `__imp___ZN12QApplication4execEv'
qgis_help-main.o: In function `main':

For me it seems that the linker is picking up the wrong libs...

Thanks for looking into this.

I configure QGIS like this
#!/bin/sh
export PATH=/home/user/win/qt4.1_win/bin:$PATH
export LD_LIBRARY_PATH=/home/user/win/qt4.1_win/lib$LD_LIBRARY_PATH
export QTDIR=$WIN/qt-4.1_win

export QT_CFLAGS="-DQT_SHARED -I/home/user/win/qt4.1_win/include
-I/home/user/win/qt4.1_win/include/QtCore
-I/home/user/win/qt4.1_win/include/QtGui -I/home/
user/win/qt4.1_win/include/Qt3Support
-I/home/user/win/qt4.1_win/include/QtNetwork
-I/home/user/win/qt4.1_win/include/QtXml
-I/home/user/win/qt4.1_win/inclu de/QtSvg
-I/home/user/win/qt4.1_win/include/QtSql"


#./autogen.sh \
#--with-qt-pkg-config=no \
#--prefix=$WIN/i586-mingw32msvc \
#--target=$TARGET \
#--host=$TARGET \
#--build=i386-linux \
#--with-qtdir=$WIN/qt-4.1_win \
#--with-projdir=$WIN/i586-mingw32msvc \
#--with-gdal=$WIN/i586-mingw32msvc/bin/gdal-config \
#--with-geos=$WIN/i586-mingw32msvc/bin/geos-config \
#--with-sqlite3dir=$WIN/i586-mingw32msvc \
#--with-grass=$WIN/i586-mingw32msvc/grass-6.1.cvs \
#--without-postgresql

./configure \
--with-qt-pkg-config=no \
--prefix=$WIN/i586-mingw32msvc \
--target=$TARGET \
--host=$TARGET \
--build=i386-linux \
--with-qtdir=$WIN/qt-4.1_win \
--with-projdir=$WIN/i586-mingw32msvc \
--with-gdal=$WIN/i586-mingw32msvc/bin/gdal-config \
--with-geos=$WIN/i586-mingw32msvc/bin/geos-config \
--with-sqlite3dir=$WIN/i586-mingw32msvc \
--with-grass=$WIN/i586-mingw32msvc/grass-6.1.cvs \
--without-postgresql

Thanks for any help

	Stephan

-- 
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office      -     Mengendamm 16d      -     D-30177 Hannover
Internet: www.gdf-hannover.de      -      Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507       -        Fax: ++49-(0)511.39088508



More information about the Qgis-developer mailing list