compiling error spatialite_gui 2devel: libraster installed but not found

344 views
Skip to first unread message

Iván Santiago

unread,
Mar 7, 2016, 12:46:12 PM3/7/16
to SpatiaLite Users
Hello all:

I'm using Ubuntu 14.04 and trying to compile spatialite_gui 2,development version...
I installed every library that ./configure command asked...
but... I cannot continue because:
...
checking for LIBSPATIALITE... yes
checking for LIBRASTERLITE2... no
configure: error: 'librasterlite2' is required but it doesn't seem to be installed on this system.


I checked using synaptic pkg mgr and it is installed... or it 'seems' to be....


How I can fix this?

Thanks in advance.
Auto Generated Inline Image 1

mj10777

unread,
Mar 8, 2016, 12:27:40 AM3/8/16
to SpatiaLite Users
It 'seems' to be, is the correct description - but is not the case

There are two 'librasterlite' projects

-  'librasterlite' : last version being 1.1g
-- the development of which has (for quite a long time) has been discontinued

See this page for the list of discontinued projects:


-  'librasterlite2' : at present in development
-- and thus has never been packaged by debian

---
For unknown reasons, 'librasterlite' was packaged by debian as 'librasterlite2'
- possibly a typo at the time


How I can fix this?
Very simple:
- download the source at:

compile and install
- at which point you should get 
-- checking for LIBRASTERLITE2... yes

At present, RasterLite2 support in spatialite_gui is deactivated and only activated with:
./configure --enable-rl2extra

If Rasterlite2 is not needed
- do not use  --enable-rl2extra in the ./configure command
and no checking for LIBRASTERLITE2 will be done

Hope this helps.

Mark


Thanks in advance.

linux...@gmail.com

unread,
Mar 8, 2016, 7:17:56 PM3/8/16
to SpatiaLite Users
On Tuesday, March 8, 2016 at 6:27:40 AM UTC+1, mj10777 wrote:
-  'librasterlite2' : at present in development
-- and thus has never been packaged by debian

librasterlite2 has been packaged for Debian and available since last July. It's also included in Ubuntu since wily.

https://tracker.debian.org/pkg/librasterlite2
 
For unknown reasons, 'librasterlite' was packaged by debian as 'librasterlite2'
- possibly a typo at the time

The librasterlite source package built the librasterlite2 binary package to include the SOVERSION in the package name to have sane dependencies on the specific library required for applications.

librasterlite has been removed from Debian and Ubuntu because of its deprecation, and librasterlite2 has taken its place.

spatialite-gui is the primary reason librasterlite and libgaiagraphics were packaged for Debian, spatialite-gui 2.0.0 only requires librasterlite2 and so the packages for the deprecated projects were removed.

The librasterlite2 source package builds the librasterlite2-1 binary package, the - is included to keep a clear distinction between the library name and SOVERSION parts of the package name. When no number is included in the library name, the SOVERSION is just appended to the library name to form the package name.

Kind Regards,

Bas

mj10777

unread,
Mar 9, 2016, 12:08:53 AM3/9/16
to SpatiaLite Users


On Wednesday, 9 March 2016 01:17:56 UTC+1, linux...@gmail.com wrote:
On Tuesday, March 8, 2016 at 6:27:40 AM UTC+1, mj10777 wrote:
-  'librasterlite2' : at present in development
-- and thus has never been packaged by debian

librasterlite2 has been packaged for Debian and available since last July. It's also included in Ubuntu since wily.
'wily' being Ubuntu 15.10, for those (like me), where these names make little sense
For unknown reasons, 'librasterlite' was packaged by debian as 'librasterlite2'
- possibly a typo at the time

The librasterlite source package built the librasterlite2 binary package to include the SOVERSION in the package name to have sane dependencies on the specific library required for applications.

librasterlite has been removed from Debian and Ubuntu because of its deprecation, and librasterlite2 has taken its place.
- but is still used on pre 15.10 Ubuntu versions 
sudo apt-cache search rasterlite
librasterlite-dev - library supporting raster data sources for spatialite - headers
librasterlite2 - library supporting raster data sources for spatialite
rasterlite-bin - command line tools for librasterlite
rasterlite-dbg - library supporting raster data sources for spatialite - debugging symbols


spatialite-gui is the primary reason librasterlite and libgaiagraphics were packaged for Debian, spatialite-gui 2.0.0 only requires librasterlite2 and so the packages for the deprecated projects were removed.
 But only when --enable-rl2extra is used
- by default, librasterlite2 is not needed
-- this will change after the initial release of RasterLite2, but during the development period it is not

So the main question at the moment is:
- does the binary debian-package of spatialite-gui enable the rl2 support?
-- if not, it would only cause confusion of the users seeing the dependency being resolved - but not used

The librasterlite2 source package builds the librasterlite2-1 binary package, the - is included to keep a clear distinction between the library name and SOVERSION parts of the package name. When no number is included in the library name, the SOVERSION is just appended to the library name to form the package name.
- I assume then that source would then be 'librasterlite2-dev'

I am not the developer, but only a major tester (and answerer of questions) for RasterLite2
- but am a bit surprised at the fact that a project still under development is being packaged

Mark

Kind Regards,

Bas

mj10777

unread,
Mar 9, 2016, 12:47:40 AM3/9/16
to SpatiaLite Users


On Monday, 7 March 2016 18:46:12 UTC+1, Iván Santiago wrote:
From you Image it is clear that the debian package 'librasterlite2'  
- is the original librasterlite (1.1-g) and not librasterlite2 needed by spatialite_gui when --enable-rl2extra is being used 

For Ubuntu 15.10 (wily) users
- there is a package 'librasterlite2-1' that can be used (see previous mails)
-- for others the source must be downloaded, compiled and installed

Mark

Thanks in advance.

linux...@gmail.com

unread,
Mar 9, 2016, 2:05:17 PM3/9/16
to SpatiaLite Users
On Wednesday, March 9, 2016 at 6:08:53 AM UTC+1, mj10777 wrote:
On Wednesday, 9 March 2016 01:17:56 UTC+1, linux...@gmail.com wrote: 
librasterlite has been removed from Debian and Ubuntu because of its deprecation, and librasterlite2 has taken its place.
- but is still used on pre 15.10 Ubuntu versions 

That should be obvious, because removing packages is part of the development cycle, we don't tend to remove packages from the distribution after its been released.
 
spatialite-gui is the primary reason librasterlite and libgaiagraphics were packaged for Debian, spatialite-gui 2.0.0 only requires librasterlite2 and so the packages for the deprecated projects were removed.
 But only when --enable-rl2extra is used
- by default, librasterlite2 is not needed
-- this will change after the initial release of RasterLite2, but during the development period it is not

This is incorrect. The spatialite-gui 2.0.0 Debian package does not use --enable-rl2extra, it does install the librasterlite2 dependency which gets picked up by configure. The resulting binary needs librasterlite2.so.1.
 
So the main question at the moment is:
- does the binary debian-package of spatialite-gui enable the rl2 support?
-- if not, it would only cause confusion of the users seeing the dependency being resolved - but not used

Why would we bother to package librasterlite2 (development releases even), if it wasn't required for spatialite-gui?
 

The librasterlite2 source package builds the librasterlite2-1 binary package, the - is included to keep a clear distinction between the library name and SOVERSION parts of the package name. When no number is included in the library name, the SOVERSION is just appended to the library name to form the package name.
- I assume then that source would then be 'librasterlite2-dev'

Your assumption is wrong.
 
I am not the developer, but only a major tester (and answerer of questions) for RasterLite2
- but am a bit surprised at the fact that a project still under development is being packaged

a.fu...@lqt.it

unread,
Mar 9, 2016, 2:38:10 PM3/9/16
to spatiali...@googlegroups.com
just to clarify any possible misunderstanding.

1. spatialite_gui always requires librasterlite2 support,
because both BlobExplorer/GeometryPreview and MapPreview
use a Rasterlite2 own canvass when drawing geometries.

2. the conditional configuration flag --enable-rl2extra
does not removes the dependency from librasterlite2,
but simply disables several GUI wizards intended to
make simpler and easier creating and configuring
raster/vector coverages and SLD/SE styles.

bye sandro

Iván Santiago

unread,
Mar 10, 2016, 7:11:46 AM3/10/16
to SpatiaLite Users
Trying to continue this (I mean, the installation thing)....
I manage to finish the inclusion of other libraries when using the ./config "command"
then...
I've been trying to compile and make the librasterlite2, but ran into errors...
 
isantiago@ogp20279:~/Downloads/librasterlite2-1.0.0-rc0$ make
make  all-recursive
make[1]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0'
Making all in headers
make[2]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/headers'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/headers'
Making all in src
make[2]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/src'
Making all in test
make[2]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test'
Making all in sql_stmt_security_tests
make[3]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test/sql_stmt_security_tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test/sql_stmt_security_tests'
Making all in sql_stmt_tests
make[3]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test/sql_stmt_tests'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test/sql_stmt_tests'
make[3]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test'
make[2]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/test'
Making all in tools
make[2]: Entering directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/tools'
/bin/bash ../libtool  --tag=CC   --mode=link gcc -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2   -g -O2 -L../src   -o rl2tool rl2tool.o -lpng12   -lwebp   -llzma -lspatialite   -lcairo   -lcurl -lxml2 -lrasterlite2  -lgeotiff -ltiff -lgif -ljpeg -lz 
libtool: link: gcc -I/usr/include/libpng12 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2 -g -O2 -o .libs/rl2tool rl2tool.o  -L../src /home/isantiago/Downloads/librasterlite2-1.0.0-rc0/src/.libs/librasterlite2.so -lpng12 -lwebp -llzma -lspatialite /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libcurl-nss.so -lxml2 -lgeotiff /usr/lib/x86_64-linux-gnu/libtiff.so -lgif -ljpeg -lz -pthread
/usr/bin/ld: rl2tool.o: undefined reference to symbol 'sqlite3_close'
//usr/lib/x86_64-linux-gnu/libsqlite3.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [rl2tool] Error 1
make[2]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0/tools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/isantiago/Downloads/librasterlite2-1.0.0-rc0'
make: *** [all] Error 2
isantiago@ogp20279:~/Downloads/librasterlite2-1.0.0-rc0$ 

Sorry but I've never been into compiling a program in Linux. This is all new for me.
What should I do now?.

andrea antonello

unread,
Mar 10, 2016, 7:19:52 AM3/10/16
to spatiali...@googlegroups.com

Hi Ivan,
I can tell you what I did to compile the whole chain to the spatialite gui, I hope it can help.
Actually most of it comes from another thread in this list by the good Cesare Gerbino.

Here it goes:

Sqlite

wget http://sqlite.org/2016/sqlite-autoconf-3100200.tar.gz
tar -xzf sqlite-autoconf-3100200.tar.gz
cd sqlite-autoconf-3100200/
make distclean
./configure
make -j8
sudo make install
sudo ldconfig
cd ..

proj

wget http://download.osgeo.org/proj/proj-4.9.2.tar.gz
tar -xzf proj-4.9.2.tar.gz
cd proj-4.9.2
make distclean
./configure
make -j8
sudo make install
cd ..

geos

wget http://download.osgeo.org/geos/geos-3.5.0.tar.bz2
tar -xjf geos-3.5.0.tar.bz2
cd geos-3.5.0
make distclean
./configure
make -j8
sudo make install
sudo ldconfig
cd ..

freexl

wget http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-1.0.2.tar.gz
tar -xzf freexl-1.0.2.tar.gz
cd freexl-1.0.2
make distclean
./configure
make -j8
sudo make install
sudo ldconfig
cd ..

libopenjp2

Get it here: https://github.com/uclouvain/openjpeg/blob/master/INSTALL
and unzip it in the working folder.

cd openjpeg-openjpeg-2.1
make distclean
cmake .
make -j8
sudo make install
sudo ldconfig
cd ..

libspatialite-4.4.0-RC0

wget http://www.gaia-gis.it/gaia-sins/libspatialite-sources/libspatialite-4.4.0-RC0.tar.gz
tar -xzf libspatialite-4.4.0-RC0.tar.gz
cd libspatialite-4.4.0-RC0
make distclean
./configure --enable-geocallbacks LIBS="-lsqlite3"
make -j8
sudo make install
sudo ldconfig
cd ..

librasterlite2-1.0.0-devel

Download librasterlite2-1.0.0-devel and extract it in the working folder.

cd librasterlite2-1.0.0-devel
./configure LIBS="-lsqlite3"
make -j8
sudo make install
sudo ldconfig
cd ..

spatialite_gui-2.0.0-devel

Download spatialite_gui-2.0.0-devel and extract it in the working folder.

cd spatialite_gui-2.0.0-devel
./configure --enable-rl2extra=yes
make -j8
sudo make install
sudo ldconfig
cd ..

I hope this works for you also.

One word of caution. This has only worked for me once I had uninstalled all system libraries related to spatialite.

Good luck,
Andrea


--
You received this message because you are subscribed to the Google Groups "SpatiaLite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spatialite-use...@googlegroups.com.
To post to this group, send email to spatiali...@googlegroups.com.
Visit this group at https://groups.google.com/group/spatialite-users.
For more options, visit https://groups.google.com/d/optout.

a.fu...@lqt.it

unread,
Mar 10, 2016, 7:41:32 AM3/10/16
to spatiali...@googlegroups.com
On Thu, 10 Mar 2016 13:19:30 +0100, andrea antonello wrote:
> SQLITE
>
> wget http://sqlite.org/ [5]2016/sqlite-autoconf-3100200.tar.gz
>

the above URL is no longer valid, because a new version has been
released on 03-03-2016 and version 3.10.x is now officially
deprecated by the developers of SQLite: "Either version 3.11.1
or version 3.11.0 is recommended for all new development."
the commend for downloading the current version of SQLite is:

wget https://www.sqlite.org/2016/sqlite-autoconf-3110100.tar.gz

bye Sandro

Iván Santiago

unread,
Mar 10, 2016, 11:38:10 AM3/10/16
to SpatiaLite Users
Thanks Andrea, Sandro

But...

That did not work for me, even with Sandro's correction.

The only step missing from Andrea's list was librasterlite2 installation.


but then it ran into some errors (I guess)...
make install
Making install in icons
make[1]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/icons'
make[2]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/icons'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/icons'
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/icons'
Making install in win_resource
make[1]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/win_resource'
make[2]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/win_resource'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/win_resource'
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/win_resource'
Making install in mac_resource
make[1]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/mac_resource'
make[2]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/mac_resource'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/mac_resource'
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/mac_resource'
Making install in gnome_resource
make[1]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/gnome_resource'
make[2]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/gnome_resource'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/gnome_resource'
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/gnome_resource'
make[1]: Entering directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel'
g++ -DHAVE_CONFIG_H -I.  -g -O2 -I.   -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 -MT BlobExplorer.o -MD -MP -MF .deps/BlobExplorer.Tpo -c -o BlobExplorer.o BlobExplorer.cpp
BlobExplorer.cpp: In member function ‘bool BlobExplorerDialog::Create(MyFrame*, int, unsigned char*)’:
BlobExplorer.cpp:150:59: error: too many arguments to function ‘rl2Raster* rl2_raster_from_png(const unsigned char*, int)’
             raster = rl2_raster_from_png(Blob, BlobSize, 1);
                                                           ^
In file included from Classdef.h:53:0,
                 from BlobExplorer.cpp:26:
/usr/local/include/rasterlite2/rasterlite2.h:2781:30: note: declared here
     RL2_DECLARE rl2RasterPtr rl2_raster_from_png (const unsigned char *png,
                              ^
BlobExplorer.cpp:169:28: error: ‘rl2_get_jpeg2000_blob_type’ was not declared in this scope
                  &num_bands) == RL2_OK)
                            ^
BlobExplorer.cpp:177:67: error: ‘rl2_raster_from_jpeg2000’ was not declared in this scope
                                              pixel_type, num_bands);
                                                                   ^
BlobExplorer.cpp:183:63: error: ‘rl2_is_valid_encoded_font’ was not declared in this scope
             int ret = rl2_is_valid_encoded_font(Blob, BlobSize);
                                                               ^
BlobExplorer.cpp:187:71: error: ‘rl2_get_encoded_font_family’ was not declared in this scope
                 char *str = rl2_get_encoded_font_family(Blob, BlobSize);
                                                                       ^
BlobExplorer.cpp:190:64: error: ‘rl2_get_encoded_font_style’ was not declared in this scope
                 str = rl2_get_encoded_font_style(Blob, BlobSize);
                                                                ^
BlobExplorer.cpp:193:60: error: ‘rl2_is_encoded_font_bold’ was not declared in this scope
                 if (rl2_is_encoded_font_bold(Blob, BlobSize) <= 0)
                                                            ^
BlobExplorer.cpp:197:62: error: ‘rl2_is_encoded_font_italic’ was not declared in this scope
                 if (rl2_is_encoded_font_italic(Blob, BlobSize) <= 0)
                                                              ^
BlobExplorer.cpp:208:64: error: ‘rl2_graph_create_toy_font’ was not declared in this scope
                                             RL2_FONTWEIGHT_BOLD);
                                                                ^
BlobExplorer.cpp:221:39: error: ‘rl2_graph_create_TrueType_font’ was not declared in this scope
                        BlobSize, *ppts);
                                       ^
BlobExplorer.cpp:244:51: error: ‘rl2_graph_release_font’ was not declared in this scope
                         rl2_graph_release_font(ctx);
                                                   ^
BlobExplorer.cpp:249:44: error: too many arguments to function ‘int rl2_graph_draw_text(rl2GraphicsContextPtr, const char*, double, double, double)’
                                         0.0);
                                            ^
In file included from BlobExplorer.cpp:35:0:
/usr/local/include/rasterlite2/rl2graphics.h:696:21: note: declared here
     RL2_DECLARE int rl2_graph_draw_text (rl2GraphicsContextPtr context,
                     ^
BlobExplorer.cpp:251:74: error: too many arguments to function ‘int rl2_graph_draw_text(rl2GraphicsContextPtr, const char*, double, double, double)’
                     rl2_graph_draw_text(ctx, sample, 30, y, 0.0, 0.0, 0.0);
                                                                          ^
In file included from BlobExplorer.cpp:35:0:
/usr/local/include/rasterlite2/rl2graphics.h:696:21: note: declared here
     RL2_DECLARE int rl2_graph_draw_text (rl2GraphicsContextPtr context,
                     ^
BlobExplorer.cpp:253:47: error: ‘rl2_graph_release_font’ was not declared in this scope
                     rl2_graph_release_font(ctx);
                                               ^
BlobExplorer.cpp: In member function ‘bool TilePreviewDialog::Create(MyFrame*, wxString&, int, int, unsigned char*)’:
BlobExplorer.cpp:2379:56: error: too many arguments to function ‘rl2Raster* rl2_raster_from_png(const unsigned char*, int)’
         raster = rl2_raster_from_png(blob, blob_size, 1);
                                                        ^
In file included from Classdef.h:53:0,
                 from BlobExplorer.cpp:26:
/usr/local/include/rasterlite2/rasterlite2.h:2781:30: note: declared here
     RL2_DECLARE rl2RasterPtr rl2_raster_from_png (const unsigned char *png,
                              ^
BlobExplorer.cpp:2397:68: error: ‘rl2_get_jpeg2000_blob_type’ was not declared in this scope
             (blob, blob_size, &sample_type, &pixel_type, &num_bands) == RL2_OK)
                                                                    ^
BlobExplorer.cpp:2405:63: error: ‘rl2_raster_from_jpeg2000’ was not declared in this scope
                                          pixel_type, num_bands);
                                                               ^
make[1]: *** [BlobExplorer.o] Error 1
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel'
make: *** [install-recursive] Error 1

Still no installation, I guess....

Le lundi 7 mars 2016 13:46:12 UTC-4, Iván Santiago a écrit :

andrea antonello

unread,
Mar 10, 2016, 11:40:53 AM3/10/16
to spatiali...@googlegroups.com
But...

That did not work for me, even with Sandro's correction.

The only step missing from Andrea's list was librasterlite2 installation. 


Nope, you have to use the devel version: 

librasterlite2-1.0.0-devel




The rc0 didn't work for me.

Cheers,
Andrea



 

--

a.fu...@lqt.it

unread,
Mar 10, 2016, 11:56:33 AM3/10/16
to spatiali...@googlegroups.com
On Thu, 10 Mar 2016 08:38:10 -0800 (PST), Iván Santiago wrote:
> I downloaded sources
> from http://www.gaia-gis.it/gaia-sins/librasterlite2-1.0.0-rc0.zip
>
> but then it ran into some errors (I guess)...
>

Hi Ivan,

librasterlite2 still is a package under active development:
it's a fast moving target, and the API are far from being
stable, they change rather often and in unpredictable ways.

forget at all using 1.0.0-rc0; it simply was a "frozen"
snapshot released on 2014, but the code (and the API) has
evolved a lot since then, and now you can't any longer
successfully build the more recent version of spatialite_gui
using that obsolete and superseded snapshot.

the right way to get a "bleeding edge" build of spatialite_gui
is as follows:

a) download the latest sqlite version; build and install.
you can easily check any new release from here:
https://www.sqlite.org/
b) download the current development sources of libspatialite
from the Fossil repository, build and install
c) download the current development sources of librasterlite2
from the Fossil repository, build and install
d) download the current development sources of spatialite_gui
from the Fossil repository, build and install

just a single example (spatialite) about how to access the Fossil repo:

fossil clone https://www.gaia-gis.it/fossil/libpatialite \
libspatialite.fossil

mkdir libspatialite
cd libspatialite
fossil open libspatialite.fossil
./configure ... options ....
make
sudo make install

bye Sandro

a.fu...@lqt.it

unread,
Mar 10, 2016, 12:03:53 PM3/10/16
to spatiali...@googlegroups.com
On Thu, 10 Mar 2016 17:40:31 +0100, andrea antonello wrote:
>> I downloaded sources
>> from http://www.gaia-gis.it/gaia-sins/librasterlite2-1.0.0-rc0.zip
>> [1]
>
> Nope, you have to use the devel version: 
>
> LIBRASTERLITE2-1.0.0-DEVEL
Andrea,

using librasterlite2-1.0.0-devel may probably be a little bit
better than using the older -rc0, but surely isn't a safe
solution because it still is a frozen snapshot (2015).

the unique way that surely works is downloading the sources
directly from the Fossil repository, so to be absolutely
sure to get the latest version.

bye Sandro


Iván Santiago

unread,
Mar 10, 2016, 2:26:10 PM3/10/16
to SpatiaLite Users

Ok...
After what Sandro pointed out...
I'm still running into errors when hitting make -j8

usr/local/lib/libgeos_c.so /usr/local/lib/libgeos.so -pthread
/usr/bin/ld: warning: libproj.so.0, needed by /usr/lib/x86_64-linux-gnu/libspatialite.so, may conflict with libproj.so.9
BlobExplorer.o: In function `BlobExplorerDialog::Create(MyFrame*, int, unsigned char*)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/BlobExplorer.cpp:81: undefined reference to `gaiaFromGeoPackageGeometryBlob'
Exif.o: In function `MyFrame::DxfLoadFile(wxString&, wxString&, wxString&, int, bool, bool, bool, bool, bool, bool, int*)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Exif.cpp:2117: undefined reference to `gaiaParseDxfFile_r'
Main.o: In function `MyFrame::OnAbout(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:1409: undefined reference to `spatialite_target_cpu'
Main.o: In function `MyFrame::OnSanitizeGeometries(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:1313: undefined reference to `sanitize_all_geometry_columns_r'
Main.o: In function `MyFrame::OnCheckGeometries(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:1240: undefined reference to `check_all_geometry_columns_r'
Main.o: In function `MyFrame::OnLoadShp(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:3151: undefined reference to `load_shapefile_ex2'
Main.o: In function `MyFrame::OnLoadDbf(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:3453: undefined reference to `load_dbf_ex2'
Main.o: In function `MyFrame::~MyFrame()':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Main.cpp:816: undefined reference to `spatialite_shutdown'
MalformedGeoms.o: In function `MyFrame::FindMalformedGeoms(wxString&, wxString&, bool)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/MalformedGeoms.cpp:473: undefined reference to `gaiaIsValid_r'
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/MalformedGeoms.cpp:477: undefined reference to `gaiaGetGeosErrorMsg_r'
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/MalformedGeoms.cpp:479: undefined reference to `gaiaGetGeosWarningMsg_r'
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/MalformedGeoms.cpp:488: undefined reference to `gaiaGetGeosWarningMsg_r'
TableTree.o: In function `MyTableTree::OnCmdDrop(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/TableTree.cpp:2669: undefined reference to `gaiaDropTableEx2'
TableTree.o: In function `MyTableTree::OnCmdRemoveDuplicates(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/TableTree.cpp:6818: undefined reference to `remove_duplicated_rows_ex2'
TableTree.o: In function `MyTableTree::OnCmdCheckGeometries(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/TableTree.cpp:6887: undefined reference to `check_geometry_column_r'
TableTree.o: In function `MyTableTree::OnCmdSanitizeGeometries(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/TableTree.cpp:6977: undefined reference to `sanitize_geometry_column_r'
Wfs.o: In function `WfsDialog::OnProxy(wxCommandEvent&)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Wfs.cpp:1260: undefined reference to `reset_wfs_http_connection'
Wfs.o: In function `WfsDialog::SelectLayer()':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Wfs.cpp:392: undefined reference to `get_wfs_version'
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/Wfs.cpp:470: undefined reference to `srid_has_flipped_axes'
VectorSymbolizers1.o: In function `SimpleLineSymbolizerDialog::PrepareLinestringPath(void*, double)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/VectorSymbolizers1.cpp:3024: undefined reference to `gaiaOffsetCurve_r'
VectorSymbolizers1.o: In function `SimplePolygonSymbolizerDialog::PreparePolygonPath(void*, double, double, double)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/VectorSymbolizers1.cpp:8481: undefined reference to `gaiaGeomCollBuffer_r'
VectorSymbolizers2.o: In function `SimpleTextSymbolizerDialog::PrepareLinestring(double)':
/home/isantiago/Downloads/spatialite_gui-2.0.0-devel/VectorSymbolizers2.cpp:4951: undefined reference to `gaiaOffsetCurve_r'
collect2: error: ld returned 1 exit status
make[2]: *** [spatialite_gui] Error 1
make[2]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/isantiago/Downloads/spatialite_gui-2.0.0-devel'
make: *** [all] Error 2
root@ogp20279:/home/isantiago/Downloads/spatialite_gui-2.0.0-devel# 

thus, this throws other errors.
Thanks for all the help.

Le lundi 7 mars 2016 13:46:12 UTC-4, Iván Santiago a écrit :

a.fu...@lqt.it

unread,
Mar 10, 2016, 3:39:56 PM3/10/16
to spatiali...@googlegroups.com
On Thu, 10 Mar 2016 11:26:10 -0800 (PST), Iván Santiago wrote:
> Ok...
> After what Sandro pointed out...
> I'm still running into errors when hitting make -j8
>
> /usr/bin/ld: warning: libproj.so.0, needed by
> /usr/lib/x86_64-linux-gnu/libspatialite.so, may conflict with
> libproj.so.9
>

Ivan,

the above linker warning is crystal clear; for sure you are
actually linking the "old" libspatialite from the Ubuntu
system package (/usr/lib/x86_64-linux-gnu/libspatialite.so),
and not the custom-built latest version (expected to be
located on /usr/local/lib)

possible causes:
1. you've actually built the most recent libspatialite,
but you've forgot to install it (make install)
you can easily check this, just try:
ls -l /usr/local/lib/libspatialite*

2. you've missed to update your spatialite_gui build
configuration after compiling and installing the
latest libspatialite from the Fossil repository
every time that you install a new package you
necessarily have to reconfigure all packages
depending on it. something like this:

cd spatialite_gui
sudo make uninstall
make distclean
./configure ... options ...
make
sudo make install

bye sandro

andrea antonello

unread,
Mar 11, 2016, 2:59:27 AM3/11/16
to spatiali...@googlegroups.com

Hi Sandro & all,
I finally gave a shot at a fossil-aligned compilation. Indeed that worked perfectly.

Here the updated steps that lead also to spatialite-gui and librewms:

sqlite

wget https://www.sqlite.org/2016/sqlite-autoconf-3110100.tar.gz
tar -xzf sqlite-autoconf-3110100.tar.gz
cd sqlite-autoconf-3110100/
export "CFLAGS=-DSQLITE_ENABLE_STAT3=1 -DSQLITE_ENABLE_TREE_EXPLAIN=1 -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_COLUMN_METADATA=1"

./configure
make -j8
sudo make install
sudo ldconfig
cd ..

proj

wget http://download.osgeo.org/proj/proj-4.9.2.tar.gz
tar -xzf proj-4.9.2.tar.gz
cd proj-4.9.2

./configure
make -j8
sudo make install
cd ..

geos

wget http://download.osgeo.org/geos/geos-3.5.0.tar.bz2
tar -xjf geos-3.5.0.tar.bz2
cd geos-3.5.0

./configure
make -j8
sudo make install
sudo ldconfig
cd ..

freexl

wget http://www.gaia-gis.it/gaia-sins/freexl-sources/freexl-1.0.2.tar.gz
tar -xzf freexl-1.0.2.tar.gz
cd freexl-1.0.2

./configure
make -j8
sudo make install
sudo ldconfig
cd ..
cd openjpeg-openjpeg-2.1

cmake .
make -j8
sudo make install
sudo ldconfig
cd ..

libspatialite

mkdir libspatialite
cd libspatialite/
fossil clone https://www.gaia-gis.it/fossil/libspatialite libspatialite.fossil
fossil open libspatialite.fossil
./configure --enable-geocallbacks
make -j8
sudo make install
sudo ldconfig
cd ..

librasterlite2

mkdir librasterlite2
cd librasterlite2/
fossil clone https://www.gaia-gis.it/fossil/librasterlite2 librasterlite2.fossil
fossil open librasterlite2.fossil
./configure
make -j8
sudo make install
sudo ldconfig
cd ..

spatialite_gui

mkdir spatialite_gui
cd spatialite_gui/
fossil clone https://www.gaia-gis.it/fossil/spatialite_gui spatialite_gui.fossil
fossil open spatialite_gui.fossil
./configure --enable-rl2extra=yes
make -j8
sudo make install
sudo ldconfig
cd ..

librewms

mkdir librewms
cd librewms/
fossil clone https://www.gaia-gis.it/fossil/librewms librewms.fossil
fossil open librewms.fossil
./configure
make -j8
sudo make install
sudo ldconfig
cd ..

The above went like a charm for me.

It can’t be repeated enough: all system libs of spatialite need to be removed.

Cheers,
Andrea

Reply all
Reply to author
Forward
0 new messages