<p style="margin-bottom: 0in;"><font size="4"><b>I am trying to build
QGIS from source code in Ubuntu 7.10 Gutsy Gibbon, but I couldn&#39;t. I
followed the instructions in the wiki page buildingFromSource. The
following error has occurred. I think it is about GEOS. installed
version of libgeos-dev is 2.2.3-3. </b></font>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><font size="4"><b>after then, I build
geos-3.0.0rc4 from source code. this was previous error. </b></font>
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">In file included from
/usr/local/include/geos.h:27, 
</p>
<p style="margin-bottom: 0in;">                 from
/home/vkepoglu/dev/cpp/qgis/src/core/qgsgeometry.h:26, 
</p>
<p style="margin-bottom: 0in;">                 from
/home/vkepoglu/dev/cpp/qgis/src/core/qgslabel.cpp:29: 
</p>
<p style="margin-bottom: 0in;">/usr/local/include/geos/geom.h:145:2:
warning: #warning *** FIXME: to be removed, temporarly set to allow a
quick successful build 
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">[ 67%] Building CXX object
src/app/CMakeFiles/qgis.dir/moc_qgspythondialog.o 
</p>
<p style="margin-bottom: 0in;">Linking CXX executable qgis 
</p>
<p style="margin-bottom: 0in;">/home/vkepoglu/dev/cpp/qgis/build/src/core/libqgis_core.so:
undefined reference to `geos::geom::Coordinate::Coordinate(double,
double, double)&#39; 
</p>
<p style="margin-bottom: 0in;">/home/vkepoglu/dev/cpp/qgis/build/src/core/libqgis_core.so:
undefined reference to `geos::io::WKTReader::~WKTReader()&#39; 
</p>
<p style="margin-bottom: 0in;">/home/vkepoglu/dev/cpp/qgis/build/src/core/libqgis_core.so:
undefined reference to
`geos::io::WKTReader::WKTReader(geos::geom::GeometryFactory const*)&#39; 
</p>
<p style="margin-bottom: 0in;">/home/vkepoglu/dev/cpp/qgis/build/src/core/libqgis_core.so:
undefined reference to `geos::geom::Coordinate::~Coordinate()&#39; 
</p>
<p style="margin-bottom: 0in;">collect2: ld returned 1 exit status 
</p>
<p style="margin-bottom: 0in;">make[2]: *** [src/app/qgis] Error 1 
</p>
<p style="margin-bottom: 0in;">make[1]: ***
[src/app/CMakeFiles/qgis.dir/all] Error 2 
</p>
<p style="margin-bottom: 0in;">make: *** [all] Error 2 
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><font size="4"><b>and then I found
explanations for this error in the web suggesting to build GEOS with
higher version. The explanation is something like</b></font></p>
<p style="margin-bottom: 0in;"><br>
</p>
<h2>Some Notes on Compiling Applications Against GEOS 3.0.0rc4</h2>
<p>Submitted by dylan on Tue, 2007-12-11 19:52.</p>
<p>I recently upgraded to <a href="http://geos.refractions.net/" target="_blank">GEOS
3.0.0rc4</a> in order to take advantage of its more robust handling
of invalid geometries (damn shapefiles!). However, there are two
mini-bugs in this release which need to be sorted out when compiling
against it (or at least for the two application I was interested in:
<a href="http://www.qgis.org/" target="_blank">QGIS</a> and <a href="http://gforge.casil.ucdavis.edu/frs/?group_id=48" target="_blank">StarSpan</a>).
Note that the first issue presented here has been resolved in <a href="http://geos.refractions.net/geos-3.0.0rc5.tar.bz2" target="_blank">GEOS
3.0.0rc5</a>.</p>
<ol><li><p style="margin-bottom: 0in;">Several of the GEOS source files
        contain little notes about &quot;warning *** FIXME: to be removed,
        temporarly set to allow a quick successful build&quot; which cause
        compiler warning messages. While this is not a big problem, it makes
        some applications which use the compiler flags <tt>-Wall</tt> and
        <tt>-Werror</tt> barf. This is the default mode for the latest
        versions of QGIS, and therefore the &quot;PEDANTIC&quot; flag in its
        configuration should be set to <b>OFF</b>. 
        </p>
        </li><li><p>A recent patch to &#39;source/inlines.cpp&#39; (included in GEOS
        3.0.0rc4) meant to deal with compiler problems on Windows causes
        problems for real operating systems. As documented <a href="http://lists.qgis.org/pipermail/qgis-developer/2007-February/001597.html" target="_blank">here</a>
        suggests changing line 30 of &#39;source/inlines.cpp&#39; from: 
        </p>
        <pre>#if defined(__MINGW32__) &amp;&amp; !defined(DLL_EXPORT)<br><br>to<br><br>#if !defined(__MINGW32__) || defined(__MINGW32__) &amp;&amp; !defined(DLL_EXPORT)</pre><p>
        <br>After doing this, re-compile / re-install GEOS 3.0.0rc4 and
        applications built against it should not have any problems with
        functions not being defined. This has been submitted as <a href="http://trac.osgeo.org/geos/ticket/166" target="_blank">ticket
        #166</a> on the GEOS Trac page. &quot;</p>
</li></ol>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"> <font size="4"><b>so, I build
geos-3.0.0. and pedantic option is off in ccmake by default. However
following error is occurred;</b></font></p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;">In file included from
/usr/local/include/geos.h:27,
</p>
<p style="margin-bottom: 0in;">                 from
/home/vkepoglu/dev/cpp/qgis/src/core/qgsgeometry.h:26,
</p>
<p style="margin-bottom: 0in;">                 from
/home/vkepoglu/dev/cpp/qgis/python/core/qgsgeometry.sip:21:
</p>
<p style="margin-bottom: 0in;">/usr/local/include/geos/geom.h:145:2:
warning: #warning *** DEPRECATED: You are using deprecated header
geom.h. Please, update your sources according to new layout of GEOS
headers and namespaces
</p>
<p style="margin-bottom: 0in;"><br>
</p>
<p style="margin-bottom: 0in;"><font size="4"><b>Do you have any idea?
Is there anything that I should do something for GEOS?</b></font></p><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;">Volkan Kepoglu</p><p style="margin-bottom: 0in;">PHD Candidate,</p><p style="margin-bottom: 0in;">

Department of GGIT in METU</p><p style="margin-bottom: 0in;">Ankara, Turkey.<br></p><p style="margin-bottom: 0in;"><font size="4"><b><br></b></font></p>