[Qgis-developer] Plugins for Windows preview 1 release

Stephan Holl holl at gdf-hannover.de
Tue Jun 20 10:02:29 EDT 2006


Hello Stephan,

[replying to myself]

On Tue, 20 Jun 2006 09:26:47 +0200 Stephan Holl <holl at gdf-hannover.de>
wrote:

> Hello Gary,
> 
> On Mon, 19 Jun 2006 19:40:44 -0800 Gary Sherman <sherman at mrcc.com>
> wrote:
> 
> > Does anybody have QGIS windows version compiling with all plugins?
> > The current binary we have only includes the GRASS plugin and I
> > would like to include all of them in the preview release.
> 
> I am trying hard to compile... but currently I cannot manage to link
> the stuff correct.
> 
> This is my error:
> make  all-am
> make[3]: Entering directory
> `/home/user/win/source/Release-0_8-preview-1/src/helpviewer' /bin/sh ../../libtool
> --tag=CXX --mode=link i586-mingw32msvc-g++  -g -O2
> -L/home/user/win/i586-mingw32msvc/lib
> -L/home/user/win/i586-mingw32msvc/lib -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/qt4.1_win/lib -lQtNetwork -lQtSvg -lQtXml -lQtGui
> -lQtSql -lsqlite3 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
> -lQtNetwork -lQtSvg -lQtXml -lQtGui -lQtSql -lsqlite3 
> /home/user/win/lib/gcc/i586-mingw32msvc/3.4.4/../../../../i586-mingw32msvc/bin/ld:
> cannot find -lQtNetwork 
> collect2: ld returned 1 exit status 
> make[3]: *** [qgis_help.exe] Error 1 make[3]: Leaving directory
> `/home/user/win/source/Release-0_8-preview-1/src/helpviewer' 
> make[2]: *** [all] Error 2 
> make[2]: Leaving directory
> `/home/user/win/source/Release-0_8-preview-1/src/helpviewer' 
> make[1]: *** [stdsubdirs] Error 1 make[1]: Leaving directory
> `/home/user/win/source/Release-0_8-preview-1/src' 
> make: *** [winsubdirs] Error 1
> 
> I have my windows-mingw-binary-qt-installation sitting
> in /home/user/win/qt4.1_win/lib (extracted from the
> binary-windows-package using wine).
> 
> therefor I exort several vars before compiling:
> 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/include/QtSvg 
> -I/home/user/win/qt4.1_win/include/QtSql"
> 
> export QT_LIBS="-L/home/user/win/qt4.1_win/lib -lQtNetwork -lQtSvg
> -lQtXml -lQtGui -lQtSql -lQt3Support -lQtCore"
> 
> Perhaps anybody can give me a hint how to go on with this.

Yes, easy :-) 
The libs from the binary-qt-for-win are named e.g. libQtSql4.a, so in
order to make the linker find the lib-archives I created symlinks to
libQtSql.a and the linking is fine now with mingw.

Best
	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