compiling spatialite_gui on Ubuntu 14.04 problems

212 views
Skip to first unread message

mj10777

unread,
Jul 31, 2014, 8:53:11 AM7/31/14
to spatiali...@googlegroups.com
After updating from Ubuntu 12.04 LTS to 14.04 LTS
- I am receiving errors while linking:

/usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFReadDirectory@LIBTIFF_4.0'
 ...
/usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so: undefined reference to `TIFFSetDirectory@LIBTIFF_4.0'

This looks to me as if wxWidgets was compile without tiff support
- but I know nothing about wxWidgets to say for sure

Has any body else received this error?

Everything else compiled and linked correctly

Mark



mj10777

unread,
Aug 1, 2014, 3:52:07 AM8/1/14
to spatiali...@googlegroups.com
Since I cannot compile  librewms also, I will attemt to compile wxWidgets 3.0.1

For both projects, './configure'  showed:
checking for wx-config... /usr/local/bin/wx-config

For spatialite-gui
- this compiled correctly
For LibreWms
- it failed with tons of wx* errors

---
Yesterday we created a fresh Ubuntu on a mac virtual machine
- which dis NOT have any problems with:
- libspatialite, spatialite-tools, reasterlite2 and spatialite_gui

But also failed with
- LibreWms

Mark




Mark



a.fu...@lqt.it

unread,
Aug 1, 2014, 4:51:03 AM8/1/14
to spatiali...@googlegroups.com
Hi Mark,

I've tested right now on a XUbuntu 14.04 32bit VM
please note: 14.04 supports wxWidgets 3.0.0

a) effectively the build of LibreWMS failed; and I got
several linker errors about unresolved wxAuiPaneInfo
symbols

b) this is the same identical problem I encountered
when porting spatialite_gui to wxWidgets 3.0.0, so
I've duly applied to LibreWMS the same configuration
used for spatialite_gui, and it seems to effectively
work also in this case.

HOT FIX
========================
1) manually edit the "configure.ac" file supporting LibreWMS
2) at line 29 apply this change:
- WX_LIBS="$(wx-config --libs)"
+ WX_LIBS="$(wx-config --libs std,aui)"
3) then continue by issuing the following commands

make distclean
automake --add-missing --foreign
autoreconf
./configure
make
sudo make install

please, let me known if the above hot-fix works on your
Ubuntu too, and after receiving your final confirmation
I'll commit this change in the Fossil repositories then
updating the source tarballs available for downloading.

bye Sandro

Mark Johnson

unread,
Aug 1, 2014, 5:29:08 AM8/1/14
to spatiali...@googlegroups.com
Good and Bad news:
- first the good:
-- the first portion almost worked correctly
 1) the fresh ubuntu machind:
 - 'make distclean' unknown
- on both machines:

configure.ac:9: error: version mismatch.  This is Automake 1.14.1,
configure.ac:9: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:9: comes from Automake 1.13.4.  You should recreate
configure.ac:9: aclocal.m4 with aclocal and run automake again.

mj10777@mj10777-01-l:~/gnu_source/gis_software/libspatialite/fossil/librewms$ autoreconf
configure.ac:15: error: required file './compile' not found
configure.ac:15:   'automake --add-missing' can install 'compile'

./configure ran with out error.
make
make install

also ran with error

The Application (on both machines) start

- second the bad:
-- when selection the maps source:

ASSERT INFO:
./src/generic/treectlg.cpp(1182): assert "item.IsOk()" failed in SetItemImage(): invalid tree item

BACKTRACE:
[1] wxGenericTreeCtrl::SetItemImage(wxTreeItemId const&, int, wxTreeItemIcon)
[2] wxNewEventFunctor /usr/local/include/wx-3.0/wx/event.h:270
[3] WmsDialog::CreateControls() /home/mj10777/gnu_source/gis_software/libspatialite/fossil/librewms/Dialogs.cpp:688
[4] WmsDialog::Create(MyFrame*, wxString&, bool) /home/mj10777/gnu_source/gis_software/libspatialite/fossil/librewms/Dialogs.cpp:613
[5] MyFrame::WmsSelection(bool) /home/mj10777/gnu_source/gis_software/libspatialite/fossil/librewms/Main.cpp:843
[6] ~PredefinedWmsDialog /home/mj10777/gnu_source/gis_software/libspatialite/fossil/librewms/Classdef.h:1936
[7] wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const
[8] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[9] wxEvtHandler::SearchDynamicEventTable(wxEvent&)
[10] wxEvtHandler::TryHereOnly(wxEvent&)
[11] wxEvtHandler::DoTryChain(wxEvent&)
[12] wxEvtHandler::ProcessEvent(wxEvent&)
[13] wxWindowBase::TryAfter(wxEvent&)
[14] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[15] wxMenuBase::SendEvent(int, int)
[16] g_closure_invoke
[17] g_signal_emit_valist
[18] g_signal_emit
[19] gtk_widget_activate
[20] gtk_menu_shell_activate_item
[21] g_closure_invoke
[22] g_signal_emit_valist
[23] g_signal_emit
[24] gtk_propagate_event
[25] gtk_main_do_event
[26] g_main_context_dispatch
[27] g_main_loop_run
[28] gtk_main
[29] wxGUIEventLoop::DoRun()
[30] wxEventLoopBase::Run()
[31] wxAppConsoleBase::MainLoop()
[32] wxEntry(int&, wchar_t**)
[33] main /home/mj10777/gnu_source/gis_software/libspatialite/fossil/librewms/Main.cpp:50
[34] __libc_start_main
[35] _start


Mark



please, let me known if the above hot-fix works on your
Ubuntu too, and after receiving your final confirmation
I'll commit this change in the Fossil repositories then
updating the source tarballs available for downloading.

bye Sandro


--
You received this message because you are subscribed to a topic in the Google Groups "SpatiaLite Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spatialite-users/mxGaigMVLog/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spatialite-users+unsubscribe@googlegroups.com.
To post to this group, send email to spatialite-users@googlegroups.com.
Visit this group at http://groups.google.com/group/spatialite-users.
For more options, visit https://groups.google.com/d/optout.

Mark Johnson

unread,
Aug 1, 2014, 5:33:37 AM8/1/14
to spatiali...@googlegroups.com
2014-08-01 10:50 GMT+02:00 <a.fu...@lqt.it>:
I also recieve the following:

LibreWMS: /usr/local/lib/libtiff.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0)

- which looks as if despite the instalment of v 3.0.1 in /usr/local
-- it still calls the older (default) version

a.fu...@lqt.it

unread,
Aug 1, 2014, 10:42:29 AM8/1/14
to spatiali...@googlegroups.com
Hi Mark,

this final configuration is expected to surely work

1) download the following source tarball
http://www.gaia-gis.it/gaia-sins/librewms-sources/librewms-1.0.0a.tar.gz

2) then on your Ubuntu 14.04 simply follow the canonical way:

./configure
make
sudo make install

3) on you second Ubuntu (where you have the custom built wxWidgets
3.0.0)
you must specify a further configure option:

./configure --with-wxconfig=/usr/local/bin/wx-config
make
sudo make-install


remarks
-------
1) yes, effectively there was a badly defined tree node
causing the reported exception.
curiously enough, the same identicol code doesn't raised
any exception at all neither on Fedora (wxWidgets 2.8.12)
nor on Windows (wxWidgets 3.0.1)

2) the ./configure script now supports a further option, i.e.
--with-wxcofing

short rationale: the build configuration of wxWidgets fully
depends on this shell script, wich is usually installed on
the appropriate -/bin dir when installing (or building) the
wxWidgets package.

and when there are *two* different versions of wxWidgets (as
is in your specific case), there are two different versions
of wx-config.
e.g. on your Ubuntu (you could easily check) you probably have:

/usr/bin/wx-config -> pointing to the system package
/usr/local/bin/wx-config -> pointing to your custom 3.0.0

in this case the "system package" will always be configured
as the default choice. anyway by explicitly specifying
--with-wxconfig=/usr/local/bin/wx-config
you have now a good chance to ask the ./configure script to
use your own custom built wxWidgets and not the standard
system package

bye Sandro

Mark Johnson

unread,
Aug 2, 2014, 12:49:41 AM8/2/14
to spatiali...@googlegroups.com
2014-08-01 16:42 GMT+02:00 <a.fu...@lqt.it>:
Hi Mark,

this final configuration is expected to surely work

1) download the following source tarball
http://www.gaia-gis.it/gaia-sins/librewms-sources/librewms-1.0.0a.tar.gz

2) then on your Ubuntu 14.04 simply follow the canonical way:


./configure
make

sudo make install

3) on you second Ubuntu (where you have the custom built wxWidgets 3.0.0)
   you must specify a further configure option:

./configure --with-wxconfig=/usr/local/bin/wx-config

Using user-specified wx-config file: /usr/local/bin/wx-config

make
sudo make-install

runs.

The application however crashes regularly.
- start: png, without tiles, 1:4000 map
-- crashes when initial view is shown

- start: png, with tiles, 1912 - 1:4000 map
-- does not crash, can zoom in
-- load second map png, with tiles - 1907 1:27300
--- crashes

- start: png, with tiles, 1 - 1907 1:27300
-- crashes when initial view is shown

- start: png, with tiles, 1912 - 1:4000 map
-- crashes when initial view is shown
--- which had worked the first time

- start: tif, with tiles, 1 - 1907 1:27300
-- does not crash, can zoom in
-- load second map tiles, with tiles - no opaque - 1846 1:5800
-- smaller area than first map
--- does not crash, can zoom in
--- shows empty tiles outside of map area - also black 'nodata' (possible not orig. set properly) shows
---- set opaque through conifigure
-----> no change in display
---- set 1846 1:5800 to png
----> no white tiles, black still shows
---- set 1907 1:27300 to png
----> displays properly
--- panning, zoom works
---> set User-Defined scale to 1:5000
----> after displaying first tiles, crashes

(Note: text in 'Layer Title' and 'Layer Abstract' uses default font instead of default system font as other controls)

Terminal shown only :
[1]   Speicherzugriffsfehler  (Speicherabzug geschrieben) LibreWMS

mj10777

unread,
Aug 4, 2014, 9:01:02 AM8/4/14
to spatiali...@googlegroups.com


On Friday, 1 August 2014 16:42:29 UTC+2, sandro furieri wrote:
Hi Mark,

this final configuration is expected to surely work

1) download the following source tarball
http://www.gaia-gis.it/gaia-sins/librewms-sources/librewms-1.0.0a.tar.gz

2) then on your Ubuntu 14.04 simply follow the canonical way:

./configure
make
sudo make install
In the mean we have done the other machine.
- it compile and started properly.

2 Maps (png with tiles) were loaded but after  zooming in and out 4 or 5 times it crashed.
Reply all
Reply to author
Forward
0 new messages