Erroe while compile spatialite_gui - undefined reference to `spatialite_finalize_topologies'

74 wyświetlenia
Przejdź do pierwszej nieodczytanej wiadomości

khanh dinh

nieprzeczytany,
21 wrz 2017, 06:59:0621.09.2017
do SpatiaLite Users
Hi,

Does someone have this issue while compiling spatialite_gui ?
I run configure without any issue.

The  run make and this error occured

/bin/bash ./libtool  --tag=CXX   --mode=link g++  -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread   -o spatialite_gui BlobExplorer.o Dialogs.o DialogsGraph.o WmsDialog.o Exif.o Main.o MalformedGeoms.o Network.o Objects.o QueryView.o QueryViewComposer.o ResultSetView.o Shapefiles.o TableTree.o TextCsv.o Wfs.o Raster.o Styles.o RasterSymbolizers.o VectorSymbolizers1.o VectorSymbolizers2.o SqlFiltersComposer.o MapPanel.o MapView.o LayerTree.o QuickStyles.o -L/usr/lib/x86_64-linux-gnu -pthread   -lwx_gtk2u_aui-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0  -L/usr/local/lib -lspatialite -L/usr/local/lib -lrasterlite2 -lm -lfreexl -lm -lxml2 -lgeos_c -lCharLS -lopenjp2 -lproj -lsqlite3 -L/usr/lib/x86_64-linux-gnu -lgeos_c
libtool: link: g++ -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -o spatialite_gui BlobExplorer.o Dialogs.o DialogsGraph.o WmsDialog.o Exif.o Main.o MalformedGeoms.o Network.o Objects.o QueryView.o QueryViewComposer.o ResultSetView.o Shapefiles.o TableTree.o TextCsv.o Wfs.o Raster.o Styles.o RasterSymbolizers.o VectorSymbolizers1.o VectorSymbolizers2.o SqlFiltersComposer.o MapPanel.o MapView.o LayerTree.o QuickStyles.o -pthread  -L/usr/lib/x86_64-linux-gnu -lwx_gtk2u_aui-3.0 -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0 -lwx_baseu_net-3.0 -lwx_baseu-3.0 -L/usr/local/lib -lspatialite /usr/local/lib/librasterlite2.so -lpng16 -lwebp -llzma -lcairo /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so -lpthread -lgeotiff -ltiff -lgif -ljpeg -lz -lfreexl -lm -lxml2 -lCharLS -lopenjp2 /usr/lib/x86_64-linux-gnu/libproj.so /usr/lib/x86_64-linux-gnu/libsqlite3.so -lgeos_c -pthread
Main.o: In function `MyFrame::OnMemoryDbLoad(wxCommandEvent&)':
/home/khanh/spatialite-gui-164c9d435f/Main.cpp:2309: undefined reference to `spatialite_finalize_topologies'
Main.o: In function `MyFrame::OnLoadShp(wxCommandEvent&)':
/home/khanh/spatialite-gui-164c9d435f/Main.cpp:3284: undefined reference to `load_shapefile_ex3'
Main.o: In function `MyFrame::OnLoadDbf(wxCommandEvent&)':
/home/khanh/spatialite-gui-164c9d435f/Main.cpp:3622: undefined reference to `load_dbf_ex3'
Main.o: In function `MyFrame::~MyFrame()':
/home/khanh/spatialite-gui-164c9d435f/Main.cpp:834: undefined reference to `spatialite_finalize_topologies'
ResultSetView.o: In function `MyResultSetView::ExecuteSqlPost()':
/home/khanh/spatialite-gui-164c9d435f/ResultSetView.cpp:1312: undefined reference to `gaiaIsGpxXmlBlob'
TableTree.o: In function `MyTableTree::OnCmdDrop(wxCommandEvent&)':
/home/khanh/spatialite-gui-164c9d435f/TableTree.cpp:4171: undefined reference to `gaiaDropTableEx3'
/home/khanh/spatialite-gui-164c9d435f/TableTree.cpp:4155: undefined reference to `gaiaDropTableEx3'
Wfs.o: In function `DoExecuteWfs(void*)':
/home/khanh/spatialite-gui-164c9d435f/Wfs.cpp:672: undefined reference to `load_from_wfs_paged_ex'
collect2: error: ld returned 1 exit status
Makefile:541: recipe for target 'spatialite_gui' failed
make[2]: *** [spatialite_gui] Error 1
make[2]: Leaving directory '/home/khanh/spatialite-gui-164c9d435f'
Makefile:614: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/khanh/spatialite-gui-164c9d435f'
Makefile:438: recipe for target 'all' failed
make: *** [all] Error 2
root@docker-test:/home/khanh/spatialite-gui-164c9d435f#



Khanh

mj10777

nieprzeczytany,
21 wrz 2017, 07:03:5221.09.2017
do SpatiaLite Users


On Thursday, 21 September 2017 12:59:06 UTC+2, khanh dinh wrote:
Hi,

Does someone have this issue while compiling spatialite_gui ?
Which versions are you using
- both spatialite and spatialite_gui from fossil? 

Mark

khanh dinh

nieprzeczytany,
21 wrz 2017, 07:42:3221.09.2017
do SpatiaLite Users
Hi Mark,

I download the last version from fossil

spatialite-gui-161086f29

I run configure without any issue

Khanh

khanh dinh

nieprzeczytany,
21 wrz 2017, 07:43:4821.09.2017
do SpatiaLite Users
I also compile the last version of spatialite

SpatiaLite-6fbfb5c2c0


a.fu...@lqt.it

nieprzeczytany,
21 wrz 2017, 09:35:5221.09.2017
do spatiali...@googlegroups.com
On Thu, 21 Sep 2017 03:59:05 -0700 (PDT), khanh dinh wrote:
> Hi,
>
> Does someone have this issue while compiling spatialite_gui ?
> I run configure without any issue.
>
> The  run make and this error occured .... <snip> ....
>

Hi Khanh,

let's examine the errors you are receiving:

main issue
-----------------------
> undefined reference to `spatialite_finalize_topologies'
>

this error clearly shows that you are currently using a copy
of libspatialite being compiled without Topology support.
Topology in libspatialite-4.5.0 is an optional module, and
it's always disabled when using the default ./configure script;
but Topology is a mandatory pre-requisite for spatialite_gui
2.1.0, so you necessarily have to explicitly enable Topology
when building libspatialite-4.5.0, if you are planning to build
spatialite_gui-2.1.0 as well.

./configure --enable-rttopo=yes --enable-gcp=yes

the above one is the required setting for correctly configure
libspatialite in such a way that it could support the GUI.

note #1: both rttopo (aka Topology) and gcp (aka Ground
Control Points) are kept disabled in the standard
default configuration because enabling them
automatically causes a licence escalation from
MPL-tri-license to strict GPL.

note #2: --enable-rttopo=yes requires a further dependency:
librttopo _MUST_ be correctly installed before
attempting to configure and build libspatialite.
building librttopo requires downloading the latest
sources from its Git repository at:
https://git.osgeo.org/gogs/rttopo/librttopo


other issues
------------------------------
> undefined reference to `load_shapefile_ex3'
> undefined reference to `load_dbf_ex3'
> undefined reference to `gaiaIsGpxXmlBlob'
> undefined reference to `gaiaDropTableEx3'
> undefined reference to `gaiaDropTableEx3'
> undefined reference to `load_from_wfs_paged_ex'
>

"gaiaIsGpxXmlBlob" was committed into the Fossil repository
on 2015-12-11
"gaiaDropTableEx3" was committed on 2016-03-12
both "load_shapefile_ex3" and "load_dbf_ex3" were committed
on 2016-07-29
"load_from_wfs_paged_ex" was committed on 2016-12-05

this demonstrates beyond any possible double that you are
actually using a really obsolete libspatialite.

my educated guess: you probably have two or more copies
of libspatialite installed on different directories,
and the configure script is unable to correctly choose
the most recent one.

hint: try to appropriately set CPPFLAGS, LDFLAGS and
PKG_CONFIG_PATH; and carefully check your "config.log"
file.

bye Sandro

khanh dinh

nieprzeczytany,
23 wrz 2017, 06:49:1323.09.2017
do SpatiaLite Users

Hi Sandro,

Thanks for your tip.
I think that there is a mix with my libspatialite library.
I install a new OS debian 9 and recompile libspatialite , rasterliet2 and spatialite_gui.

Everything is working fine now

Khanh
Odpowiedz wszystkim
Odpowiedz autorowi
Przekaż
Nowe wiadomości: 0