Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Hi, 2014-11-24 16:36 GMT+01:00 Jürgen E. j...@norbit.de: flex NEWS says Support for reentrant C scanners has been added for 2.5.6 I use flex from cygwin on Windows. thanks, it solved my problem! Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Dear Larry, 2014-11-19 23:09 GMT+01:00 Larry Shaffer lar...@dakotacarto.com: I think I ran into this recently. There was a commit in 2.6 [0] that apparently requires a newer version of flex or bison (bison 3.x, I think?) for record osgeo4w environment reports: flex --version flex version 2.5.4 bison --version bison (GNU Bison) 2.4.1 than is available with the GnuWin32 project as noted in INSTALL [1]. Instead I used the precompiled binaries available from the 'Win flex-bison' project [2] and specified the CMake paths: -D BISON_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_bison \ -D FLEX_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_flex OK, I downloaded executables from [2] and placed to my osgeo4w environment, then modified `package.cmd` -D BISON_EXECUTABLE=%O4W_ROOT%/bin/win_bison ^ -D FLEX_EXECUTABLE=%O4W_ROOT%/bin/win_flex win_flex --version win_flex 2.5.37 win_bison --version bison (GNU Bison) 2.7 Looks like the CMake find modules need updated to look for those binaries. I suppose you could also build the latest packages yourself. But I am still getting the same error. Rather that updating CMake file it would make sense to include required version of flex and bison into OSgeo4W environment I would say. Any idea how to solve this problem? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Hi, I encountered the same problem while building QGIS 2.6 from sources, to fix it I use flex and bison from http://cygwin.com Regards, Nejia -Message d'origine- De : qgis-developer-boun...@lists.osgeo.org [mailto:qgis-developer-boun...@lists.osgeo.org] De la part de Martin Landa Envoyé : lundi 24 novembre 2014 15:46 À : Larry Shaffer Cc : qgis-dev Objet : Re: [Qgis-developer] QGIS 2.6 compilation on Windows Dear Larry, 2014-11-19 23:09 GMT+01:00 Larry Shaffer lar...@dakotacarto.com: I think I ran into this recently. There was a commit in 2.6 [0] that apparently requires a newer version of flex or bison (bison 3.x, I think?) for record osgeo4w environment reports: flex --version flex version 2.5.4 bison --version bison (GNU Bison) 2.4.1 than is available with the GnuWin32 project as noted in INSTALL [1]. Instead I used the precompiled binaries available from the 'Win flex-bison' project [2] and specified the CMake paths: -D BISON_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_bison \ -D FLEX_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_flex OK, I downloaded executables from [2] and placed to my osgeo4w environment, then modified `package.cmd` -D BISON_EXECUTABLE=%O4W_ROOT%/bin/win_bison ^ -D FLEX_EXECUTABLE=%O4W_ROOT%/bin/win_flex win_flex --version win_flex 2.5.37 win_bison --version bison (GNU Bison) 2.7 Looks like the CMake find modules need updated to look for those binaries. I suppose you could also build the latest packages yourself. But I am still getting the same error. Rather that updating CMake file it would make sense to include required version of flex and bison into OSgeo4W environment I would say. Any idea how to solve this problem? Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ 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
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Hi Martin, On Mon, 24. Nov 2014 at 15:46:26 +0100, Martin Landa wrote: flex --version flex version 2.5.4 flex NEWS says Support for reentrant C scanners has been added for 2.5.6 I use flex from cygwin on Windows. Looks like the CMake find modules need updated to look for those binaries. I suppose you could also build the latest packages yourself. But I am still getting the same error. Rather that updating CMake file it would make sense to include required version of flex and bison into OSgeo4W environment I would say. Any idea how to solve this problem? We don't include all build tools in OSGeo4W anyway. I updated INSTALL to point out the required version and added links to cygwin instead. Jürgen -- Jürgen E. Fischer norBIT GmbH Tel. +49-4931-918175-31 Dipl.-Inf. (FH) Rheinstraße 13 Fax. +49-4931-918175-50 Software Engineer D-26506 Norden http://www.norbit.de QGIS release manager (PSC) GermanyIRC: jef on FreeNode signature.asc Description: Digital signature ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
[Qgis-developer] QGIS 2.6 compilation on Windows
Hi all, building QGIS 2.6 on MS Windows fails (qgis_core) with Generating flex_qgsexpressionlexer.cpp C:/OSGeo4W_qgis_vfk/usr/src/qgis_2_6/src/core/qgsexpressionlexer.ll, line 22: unrecognized %option: reentrant C:/OSGeo4W_qgis_vfk/usr/src/qgis_2_6/src/core/qgsexpressionlexer.ll, line 24: unrecognized %option: bison-bridge Project : error PRJ0019: A tool returned an error code from Generating flex_qgsexpressionlexer.cpp No problem with QGIS 2.4 or 2.2. Any idea what could be wrong? Thanks, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [Qgis-developer] QGIS 2.6 compilation on Windows
Hi Martin, I think I ran into this recently. There was a commit in 2.6 [0] that apparently requires a newer version of flex or bison (bison 3.x, I think?) than is available with the GnuWin32 project as noted in INSTALL [1]. Instead I used the precompiled binaries available from the 'Win flex-bison' project [2] and specified the CMake paths: -D BISON_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_bison \ -D FLEX_EXECUTABLE=C:/path/to/win_flex_bison-latest/win_flex Looks like the CMake find modules need updated to look for those binaries. I suppose you could also build the latest packages yourself. [0] https://github.com/qgis/QGIS/commit/2427546d8850c7f0b2ca191b238a77c49f648510 [1] https://github.com/qgis/QGIS/blob/master/INSTALL#L583-L584 [2] http://sourceforge.net/projects/winflexbison/ Regards, Larry Shaffer Dakota Cartography Black Hills, South Dakota On Wed, Nov 19, 2014 at 3:42 AM, Martin Landa landa.mar...@gmail.com wrote: Hi all, building QGIS 2.6 on MS Windows fails (qgis_core) with Generating flex_qgsexpressionlexer.cpp C:/OSGeo4W_qgis_vfk/usr/src/qgis_2_6/src/core/qgsexpressionlexer.ll, line 22: unrecognized %option: reentrant C:/OSGeo4W_qgis_vfk/usr/src/qgis_2_6/src/core/qgsexpressionlexer.ll, line 24: unrecognized %option: bison-bridge Project : error PRJ0019: A tool returned an error code from Generating flex_qgsexpressionlexer.cpp No problem with QGIS 2.4 or 2.2. Any idea what could be wrong? Thanks, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa ___ 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