<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello all,</div><div><br></div><div>I have been trying to build a qgis C++ plugin with no success… in different test platforms too (including building qgis from source).</div><div><br></div><div>I started by doing the simple steps in the QGIS Compile/Style document for 1.6.0 (i think) and using as a QGIS_DIR path all possible combination and hacks… Qgis App dir, Qgis source dir from github(without building it, a hybrid folder with Qgis source and "lib" folder from the App dir to cheat without building.</div><div>But I had no success.</div><div><br></div><div>(python is a no-go!)</div><div><br></div><div>I end up getting this: (of course with the 'hacked' lib folder)</div><div>##########################</div><div style="margin: 0px; ">g++ -headerpad_max_install_names -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.6 -single_module -dynamiclib -compatibility_version       1.0 -current_version    1.0.0 -install_name     libMyQGISDemoPlugin.dylib.1 -o libMyQGISDemoPlugin.dylib.1.0.0 qgspointconverterplugin.o qgspointconverterplugin.o moc_qgspointconverterplugin.o  -F/Library/Frameworks -L/Library/Frameworks -L//Users/varoudis/Desktop/Projects/Quantum-GIS/lib -lqgis_core -lqgis_gui -framework Qt3Support -framework QtXml -framework QtGui -framework QtCore  </div><div style="margin: 0px; "><span style=" color:#aa0000;">Undefined symbols for architecture x86_64:</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">  "QgsFeature::QgsFeature(long long, QString)", referenced from:</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">      QgsPointConverterPlugin::convertToPoint()       in qgspointconverterplugin.o</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">      QgsPointConverterPlugin::convertToPoint()       in qgspointconverterplugin.o</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">ld: symbol(s) not found for architecture x86_64</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">collect2: ld returned 1 exit status</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">make: *** [libMyQGISDemoPlugin.dylib.1.0.0] Error 1</span></div><div style="margin: 0px; ">make: Leaving directory `/Users/varoudis/Dropbox/Git/Other/MyQGISDemoPlugin/MyQGISDemoPlugin-build-desktop-Qt_4_8_2_in_PATH__System__Debug'</div><div style="margin: 0px; "><span style=" font-weight:600; color:#aa0000;">12:48:06: The process "/usr/bin/make" exited with code 2.</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">Error while building/deploying project MyQGISDemoPlugin (target: Desktop)</span></div><div style="margin: 0px; "><span style=" color:#aa0000;">When executing step 'Make'</span><!--EndFragment--></div><div><div>##########################</div></div><div><br></div><div>I tried to do all the lame hacks because I have tried to build Qgis from source in both MACOSX10.8 and Ubuntu12.04 with no luck!</div><div>Im not sure if I do something wrong. Im not that inexperienced in *nix systems...</div><div><br></div><div><br></div><div>MacOSX 10.8 with homebrew:</div><div>grass building is a problem…</div><div>geos is there:</div><div><div>brew -v info geos </div><div>Homebrew 0.9.2</div><div>geos: stable 3.3.5</div><div><a href="http://trac.osgeo.org/geos">http://trac.osgeo.org/geos</a></div><div>/usr/local/Cellar/geos/3.3.5 (367 files, 8.8M) *</div><div><a href="https://github.com/mxcl/homebrew/commits/master/Library/Formula/geos.rb">https://github.com/mxcl/homebrew/commits/master/Library/Formula/geos.rb</a></div></div><div><br></div><div>#############</div><div><div>bart150-115:Quantum-GIS varoudis$ cmake .</div><div>-- Quantum GIS version: 1.9.0 Master (10900)</div><div>-- Could not find GRASS</div><div>-- Found Iconv: /usr/lib/libiconv.dylib</div><div>-- Found Proj: /Library/Frameworks/PROJ.framework</div><div>CMake Error at cmake/FindGEOS.cmake:60 (MESSAGE):</div><div>  Could not determine GEOS version from framework.</div><div>Call Stack (most recent call first):</div><div>  CMakeLists.txt:148 (FIND_PACKAGE)</div><div><br></div><div>-- Configuring incomplete, errors occurred!</div><div>bart150-115:Quantum-GIS varoudis$ </div></div><div>#########</div><div><br></div><div><br></div><div><br></div><div>In Ubuntu cmake is OK but the build near the end. SIP problem?</div><div><br></div>Ubuntu Linux 64<div>###############<br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; "><div><div>[ 90%] Built target compile_python_files</div><div>Scanning dependencies of target python_module_qgis_analysis</div><div>[ 90%] Building CXX object python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart0.cpp.o</div><div>[ 90%] Building CXX object python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart1.cpp.o</div><div>[ 90%] Building CXX object python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart2.cpp.o</div><div>[ 90%] Building CXX object python/CMakeFiles/python_module_qgis_analysis.dir/analysis/sipanalysispart3.cpp.o</div><div>Linking CXX shared library ../output/python/qgis/analysis.so</div><div>[ 90%] Built target python_module_qgis_analysis</div><div>[ 90%] Generating core/sipcorepart0.cpp, core/sipcorepart1.cpp, core/sipcorepart2.cpp, core/sipcorepart3.cpp</div><div><br></div><div>sip: Deprecation warning: /home/varoudis/Code/temp/Quantum-GIS/python/core/core.sip:1: %Module version number should be specified using the 'version' argument</div><div>sip: Unable to find file "QtCore/QtCoremod.sip"</div><div>make[2]: *** [python/core/sipcorepart0.cpp] Error 1</div><div>make[1]: *** [python/CMakeFiles/python_module_qgis_core.dir/all] Error 2</div><div>make: *** [all] Error 2</div><div>varoudis@ubuntu:~/Code/temp/Quantum-GIS$</div></div><div><br></div><div><div>varoudis@ubuntu:~/Code/temp/Quantum-GIS$ uname -a</div><div>Linux ubuntu 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</div></div><div><br></div><div>##############</div><div><br></div><div>Any ideas? Links to read? Maybe use an older ubuntu version?</div><div><br></div><div>Maybe I have taken a wrong turn somewhere and I keep doing the same mistake?</div><div><br></div><div>Thanks a lot!</div><div><br></div><div>Best,</div><div>Tasos</div><div><br></div></span></div></div></body></html>