[Qgis-developer] HOW TO COMPILE QGIS FROM SOURCE CODE FOR WINDOWS?

Magnus Homann magnus at homann.se
Wed Jan 24 17:21:25 EST 2007


Martin Dobias wrote:
> On 1/24/07, Byambaa Mendbayar <mendbayar_b at mongol.net> wrote:
>>
>> By the way default configuration of CMakeLists.txt isn't define some
>> depended libraries paths (lib and include), therefore you should 
>> assign it
>> using cmakesetup tool or manually edit CMakeLists.txt. In personally I
>> suggest to you using cmakeSetup.exe tool for configuring QGIS.
> 
> Just a small note: yesterday I've added c:\msys\local\include and
> c:\msys\local\lib to default search path for dependencies, so if you
> have it in this path, it should configure automatically without the
> need for manual settings.

I discovered an error: I had the c:\MinGW in mny path, and the 
includefiles ther was different. I should only use c:\msys\mingw.

So, I started make again, but on linking I got the "input line too long" 
error that Martin Dobias talked about on the cmake-list... :-) (I'm on 
Win2K)

Next step was using cygwin as shell (bash) and use "MSYS Makefiles" 
instead. That work for a while, until I got:

[ 14%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsline.obj
[ 14%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgslogger.obj
[ 14%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgsmaplayer.obj
In file included from c:/Qgis-devel/qgis_trunk/src/core/qgsmaplayer.cpp:30:
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:22:18: qgis.h: 
No such f
ile or directory
In file included from c:/Qgis-devel/qgis_trunk/src/core/qgsmaplayer.cpp:30:
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:36: error: 
`QGis' has no
t been declared
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:36: error: 
expected `)'
before "t"
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:38: error: 
`QGis' has no
t been declared
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:38: error: 
expected `)'
before "t"
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:104: error: 
`QGis' has n
ot been declared
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:104: error: ISO 
C++ forb
ids declaration of `VectorType' with no type
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:104: error: 
expected `;'
  before "type"
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:106: error: 
expected `;'
  before "protected"
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:113: error: 
`QGis' has n
ot been declared
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:113: error: ISO 
C++ forb
ids declaration of `VectorType' with no type
c:/Qgis-devel/qgis_trunk/src/core/symbology/qgssymbol.h:113: error: 
expected `;'
  before "mType"
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgsmaplayer.obj] Error 1
make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
make: *** [all] Error 2
bash-2.05a$ pwd
/cygdrive/c/Qgis-devel/qgis_trunk/build
bash-2.05a$


Martin, how did you pass "input line too long" ???

Magnus
-- 
Magnus Homann
magnus at homann.se
+46 702 399 558



More information about the Qgis-developer mailing list