[Qgis-developer] problem when cross compile QGIS1.0.0
Marco Hugentobler
marco at hugis.net
Tue Dec 8 03:32:55 EST 2009
Hi Ming Xing
The problem is that it does not properly link with gdal and sqlite libraries.
I think it is necessary to include the library name into the definitions. So
something like:
-DGDAL_LIBRARY=/usr/local/lib/libgdal.so
-DSQLITE3_LIBRARY=/usr/local/lib/libsqlite3.so
Regards,
Marco
Am Dienstag, 8. Dezember 2009 05.32:03 schrieb ming xing:
> --
>
>
>
>
>
>
>
>
>
> I wan to cross compile QGIS for OMAP3530 to support map.
> I use cmake ..
> -DCMAKE_SYSTEM_PROCESSOR=/opt/codesourcery/arm-none-linux-gnueabi/arm-2007
> q3/
> -DCMAKE_C_COMPILER=/opt/codesourcery/arm-none-linux-gnueabi/arm-2007q3/bin
> /arm-none-linux-gnueabi-gcc
> -DCMAKE_CXX_COMPILER=/opt/codesourcery/arm-none-linux-gnueabi/arm-2007q3/b
> in/arm-none-linux-gnueabi-g++ -DGEOS_LIBRARY=/usr/local/lib/
> -DGEOS_INCLUDE_DIR=/usr/local/include/
> -DGDAL_INCLUDE_DIR=/usr/local/include/ -DGDAL_LIBRARY=/usr/local/lib/
> -DPROJ_INCLUDE_DIR=/usr/local/include/ -DPROJ_LIBRARY=/usr/local/lib/
> -DSQLITE3_INCLUDE_DIR=/usr/local/include/
> -DSQLITE3_LIBRARY=/usr/local/lib/
> then I get many warning such as
>
>
> WARNING: Target "qgis_gui" requests linking to directory
> "/usr/local/lib/". Targets may link only to libraries. CMake is dropping
> the item.
> qgisapp.cpp:(.text+0x95f0): undefined reference to `CPLPushErrorHandler'
> qgisapp.cpp:(.text+0x9740): undefined reference to `CPLPopErrorHandler'
> qgisapp.cpp:(.text+0x9794): undefined reference to `CPLQuietErrorHandler'
> CMakeFiles/qgis.dir/qgsbookmarkitem.o: In function
> `QgsBookmarkItem::store()': qgsbookmarkitem.cpp:(.text+0x274): undefined
> reference to `sqlite3_open' qgsbookmarkitem.cpp:(.text+0x4d8): undefined
> reference to `sqlite3_prepare' qgsbookmarkitem.cpp:(.text+0x4f8):
> undefined reference to `sqlite3_step' qgsbookmarkitem.cpp:(.text+0x504):
> undefined reference to `sqlite3_finalize'
> qgsbookmarkitem.cpp:(.text+0x510): undefined reference to `sqlite3_close
>
> can anyone help me ,it has troubled me a few months.
> else can anyone help me about how to cross compile for OMAP3530.
> Thanks a lot .
>
>
>
>
>
>
>
>
> 好玩贺卡等你发,邮箱贺卡全新上线!
>
>
> ___________________________________________________________
> 好玩贺卡等你发,邮箱贺卡全新上线!
> http://card.mail.cn.yahoo.com/
>
--
Dr. Marco Hugentobler
HUGIS - GIS programming and consulting
Webereistrasse 66
CH-8134 Adliswil
marco at hugis.net
http://homepage.hispeed.ch/hugis
Technical Advisor QGIS Project Steering Committee
More information about the Qgis-developer
mailing list