[Qgis-developer] Fwd: windows build environment for QGIS

sijan ahamed sijan4u at gmail.com
Thu Jan 25 01:19:12 EST 2007


hi...
Hope u r fine...
let me tell you about my proceedings...
I followed your advice and got success in running make,make install..I am
really thankng you for helping me..

1.installed qgis in c:\programfiles\qunatum gis
2.copied files from c:\programfiles\quantum gis to
c:\dev\cpp\qgis\qgis-release(overwritten).
3.now i can run qgis from qgis-release..

Then i tried for adding plugins by following procedure
1.run perl script c:\dev\cpp\qgis\src\plugins\plugin_builder.pl,created
plugin
2.changed to source directory....executed ./autogen.sh--no errors(as
mentioned in developers plugin in  wiki)
3../configure--got result as


*$ ./configure*(cygwin shell)
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for prefix by checking for gcc... /usr/bin/gcc
checking for g++... g++
checking for C++ compiler default output file name... a.exe
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-cygwin
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognize dependent libraries... file_magic ^x86 archive
import|^x86 DLL
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 8192
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT
checking if gcc PIC flag -DDLL_EXPORT works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries...
yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking whether a program can dlopen itself... no
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking for g++ option to produce PIC... -DDLL_EXPORT
checking if g++ PIC flag -DDLL_EXPORT works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries...
yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether byte ordering is bigendian... no
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... yes
checking machine/endian.h presence... yes
checking for machine/endian.h... yes
checking for svnversion... no
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
*checking QTDIR... configure: error: *** QTDIR must be defined, or
--with-qtdir option given*

4.executed Qmake from cmd Promp(as it is not geting executed from cygwin
shell)---no errors

5.executed make from cmd prompt--no errors

6.make instalI from cmd prmpt--no errors.....

BUT I CANT C MY NEW PLUGIN IN QGIS WINDOW(according to developers plugin
manual ,plugin should be visible after executing
autogen.sh,./configure,make,make
install

CAN YOU HELP ME????

SORRY for disturbing and am thankful for spending your valuable time for
me....

with rgds

sijan
On 1/24/07, Byambaa Mendbayar <mendbayar_b at mongol.net> wrote:
>
>  Hi there,
>
>
>
> If you use release 0.8.0 svn source then you have to use qmake, not a
> cmake. The cmake is required only current unstable (0.9.0) svn sources.
>
>
>
> It seems like that your qmake isn't working correctly, therefore Makefiles
> are isn't generated there (C:/dev/cpp/qgis/src/core'). Please use
> following command for generating Makefiles correctly.
>
>
>
> qmake qgis.pro
>
>
>
> Best regards,
>
> Byambaa Mendbayar
>
>
>  ------------------------------
>
> *From:* sijan ahamed [mailto:sijan4u at gmail.com]
> *Sent:* Wednesday, January 24, 2007 2:15 PM
> *To:* mendbayar_b at mongol.net
> *Subject:* Re: [Qgis-developer] Fwd: windows build environment for QGIS
>
>
>
> Hi..,
>
> I am happy today as i got someone who compiled qgis on windows platform.
>
> Hope you will help me.
>
> am getng following errors after running make..is it becoz of the release
> version???should i use cmake???
>
> C:\dev\cpp\qgis>qmake
>
> C:\dev\cpp\qgis>make
> cd src && mingw32-make -f Makefile
> mingw32-make[1]: Entering directory `C:/dev/cpp/qgis/src'
> cd core && mingw32-make -f Makefile
> mingw32-make[2]: Entering directory `C:/dev/cpp/qgis/src/core'
> mingw32-make -f Makefile.Release
> mingw32-make[3]: Entering directory `C:/dev/cpp/qgis/src/core'
> mingw32-make[3]: *** No rule to make target `qgsbookmarkitem.cpp', needed
> by `..\..\obj\o\win32\qgsbookmark
> item.o'.  Stop.
> mingw32-make[3]: Leaving directory `C:/dev/cpp/qgis/src/core'
> mingw32-make[2]: *** [release] Error 2
> mingw32-make[2]: Leaving directory `C:/dev/cpp/qgis/src/core'
> mingw32-make[1]: *** [sub-core-make_default] Error 2
> mingw32-make[1]: Leaving directory `C:/dev/cpp/qgis/src'
> mingw32-make: *** [sub-src-make_default] Error 2
>
> C:\dev\cpp\qgis>
>
>  waiting for ur reply....
>
>
>
>
>
>
>
> On 1/24/07, *Byambaa Mendbayar* <mendbayar_b at mongol.net> wrote:
>
> Hi jaan,
>
>
>
> What SVN version are you using? The latest SVN or 0.8.0 Release (https://svn.qgis.org/repos/qgis/branches/Release-0_8_0/)?
> If you were getting latest (unstable) SVN source then you have to use CMAKE
> instead of QMAKE, of course latest SVN must be using CMAKE!
>
>
>
> Also suggest to you Martin's advice too.
>
>
>
>  > Those two files (and some more) are here:
>
>  > http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip
>
>  >
>
>  > It's mentioned in the readme, please read it carefully.
>
>  >
>
>  > Martin.
>
>
>
> P.S By the way I have two versions of QGIS source codes (R 0.8.0 and
> latest SVN) and they are compiled well in windows platform using Tim
> Sutton's README_windows.txt (MinGW and bundled MSYS package) and CMAKE.
>
>
>
> Best regards,
>
> Byambaa Mendbayar
>
>
>  ------------------------------
>
> *From:* qgis-developer-bounces at lists.qgis.org [mailto:qgis-developer-bounces at lists.qgis.org]
> *On Behalf Of *sijan ahamed
> *Sent:* Tuesday, January 23, 2007 7:03 PM
> *To:* qgis-developer at lists.qgis.org
> *Subject:* [Qgis-developer] Fwd: windows build environment for QGIS
>
>
>
>
>
>
>
>        *Procedure for setup of a windows build environment for QGIS**
>                     Tim Sutton and Godofredo Contreras 2006
>   With thanks to Tisham Dhar for preparing the initial msys environment *
>
> ---------------------------------------------------------------------------------
>
> This document describes the process you need to follow to get QGIS built
> directly
> under windows (rather than using a cross compiler under linux).Note: The
> process for building under windows is still being sorted out so
>       check this document regularly for updates.
>
> Msys:
> -----
> get this:
>
> http://qgis.org/uploadfiles/msys/msys.tar.bz2
>
> and unpack to c:\msys
>
> The file is compressed using bzip2 - you can get a free windows
> application
> for creating and decompressing files here:
>
> http://www.7-zip.org/
>
> Qt4.2:
> ------
>
> Download qt4.2 opensource precompiled edition exe and install (including
> the
> download and install of mingw) from here:
>
> http://www.trolltech.com/developer/downloads/qt/windows
>
> Edit C:\Qt\4.2.0\bin\qtvars.bat and add the following line (the second is
> only
> needed if you like vim in your shell):
>
> set PATH=%PATH%;C:\msys\local\bin;c:\msys\local\lib
> set PATH=%PATH%;"c:\Program Files\Vim\vim70\
>
> If you plan to do some debugging, you'll need to complie debug version of
> Qt:
> C:\Qt\4.2.0\bin\qtvars.bat compile_debug
>
>
> QGIS:
> -----
> Check out to c:\dev\cpp\qgis:
>
> cd c:\dev\cpp
> svn co https://svn.qgis.org/repos/qgis/trunk/qgis
>
> Currently you need to put it into that location in case you plan to create
> the NSIS installer because so far it contains hardcoded paths for this
> location.
>
>
> Source changes:
> ---------------
>
> Next you need to shift some files around. For convenience we've made an
> archive
> that handles all the changes for you. Download it and unpack to qgis
> source directory:
>
> http://qgis.org/uploadfiles/msys/qgis-qmake-files.zip
>
> List of what has been changed / added by this archive to enable
> compilation:
>
>  - moved qgscsexception.h, qgsspatialrefsys* and qgscoordinatetransform*
> into core dir from gui
>  - moved qgspluginregistry.* from core to gui
>  - qgsspatialrefsys.cpp - commented out SRS validation using projection
> selector
>  - qgsspatialrefsys.cpp - commented out lines using qgsproject as it
> depends on gui stuff
>  - qgsdistancearea.cpp - commented out lines using qgsproject as it
> depends on
>    gui stuff and moved to core
>  - lexer and parser generated by genlexyacc.bat
>  - added custom qgsconfig.h and qgssvnversion.h
>
>
> Building:
> ---------
>
> Now open the qt command shell (or start "cmd" and run
> c:\Qt\4.2.0\bin\qtvars.bat)
>
> cd c:\dev\cpp\qgis
> qmake
> make
>
> This will compile both debug and release version. To make just a one of
> them
> use "make debug" or "make release" respectively.
>
> Note: debug version uses debug version of Qt library thus if linking fails
> on not founding library QtSvgd4 (or similar), you need to compile them
> as described in section for Qt.
>
> Running: (optional)
> --------
>
> After successfull make you can run QGIS directly from the directory
> where it has been built: qgis-debug and/or qgis-release in qgis root dir.
> You only need to add data files - we have provided an archive for
> convenience
> which you can just unpack there and run QGIS:
>
> http://qgis.org/uploadfiles/msys/qgis_data.zip
>
> Then just run qgis.exe
>
> GDB: (optional)
> ----
>
> If you plan to do some debugging, download and install gdb-6.3.2.exe from
>
> http://prdownloads.sourceforge.net/mingw/gdb-6.3-2.exe?download
>
> and install to c:\msys\mingw
>
>
> Create the installation package: (optional)
> --------------------------------
>
> Downlad and install NSIS from ( http://nsis.sourceforge.net/Main_Page )
>
> Download both the QGIS debug and release installer packages from
>
> http://qgis.org/uploadfiles/testbuilds/
>
> and install them. Now copy the installation dirs from C:\Program
> Files\QGIS* into
> c:\dev\cpp\qgis\qgis-debug and c:\dev\cpp\qgis\qgis-release respectively.
> After
> making these copies uninstall the release and debug versions of QGIS from
> your c:\Program Files directories using the provided uninstaller. Double
> check
> that both dirs are complete gone under program files afterwards.
>
> Now using windows explorer, enter the c:\dev\cpp\qgis\win_build directory
> and right
> click on qgis.nsi and choose the option 'Compile NSIS Script'. Do the same
>
> for qgis-debug.nsi. Congratulations you should have two installable qgis
> setup files in the win_build directory now..
>
>
>
>
> I FOLLOWED THIS METHOD TO SETUP WINDOWS BUILD ENVIRONMENT FOR QGIS...BUT
> ENCOUNTERED WITH SOME PROBLEMS IN THE MIDDLE...
>
> 1.after runnng make---errors due to missing of"qgsconfig.h&qgssvnversion.h"
>
> where i can get it????
>
>
>
> pls help me.......
>
> --
> jaan
>
>
>
> --
> jaan
>
>
>
>
> --
> jaan
>



-- 
jaan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20070125/409ebe9e/attachment.html


More information about the Qgis-developer mailing list