compilation error in spatialite gui (1.8.0 devel) with DialogsGraph.cpp and RL2_FONTWEIGHT_NORMAL

25 views
Skip to first unread message

SaultDon

unread,
Apr 20, 2015, 5:07:41 PM4/20/15
to spatiali...@googlegroups.com
I can't seem to get spatialite gui 1.8.0-devel from fossil trunk to compile on Linux 64-bit.
% uname -a
Linux archasus 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64 GNU/Linux

I've got libspatialite and librasterlite2 compiled from fossil trunk and I've got spatialite-tools and virtualpg compiled from latest stable release.

The error says:
g++ -DHAVE_CONFIG_H -I.  -march=native -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -I. -D_FORTIFY_SOURCE=2  -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -MT DialogsGraph.o -MD -MP -MF .deps/DialogsGraph.Tpo -c -o DialogsGraph.o DialogsGraph.cpp
DialogsGraph.cpp: In member function void StatsChartDialog::DoIntervalHistogram(int, int, int, int)’:
DialogsGraph.cpp:1185:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
DialogsGraph.cpp: In member function void StatsChartDialog::DoIntervalLineChart(int, int, int, int)’:
DialogsGraph.cpp:1490:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
DialogsGraph.cpp: In member function void StatsChartDialog::DoIntervalPieChart(int, int, int, int)’:
DialogsGraph.cpp:1819:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
DialogsGraph.cpp: In member function void StatsChartDialog::DoUniqueHistogram(int, int, int, int)’:
DialogsGraph.cpp:2082:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
DialogsGraph.cpp: In member function void StatsChartDialog::DoUniqueLineChart(int, int, int, int)’:
DialogsGraph.cpp:2396:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
DialogsGraph.cpp: In member function void StatsChartDialog::DoUniquePieChart(int, int, int, int)’:
DialogsGraph.cpp:2746:48: error: rl2_graph_create_font was not declared in this scope
                           RL2_FONTWEIGHT_NORMAL
);
                                               
^
Makefile:552: recipe for target 'DialogsGraph.o' failed

My configure command is:
./configure --prefix="/usr" CXXFLAGS="`wx-config --cxxflags`" LIBS="`wx-config --libs`"

Hopefully I got enough info provided to help, if not I'd be happy to submit what's needed.


Thanks!




Donovan

a.fu...@lqt.it

unread,
Apr 21, 2015, 3:25:15 AM4/21/15
to spatiali...@googlegroups.com
On Mon, 20 Apr 2015 14:07:41 -0700 (PDT), SaultDon wrote:
> I can't seem to get spatialite gui 1.8.0-devel from fossil trunk to
> compile on Linux 64-bit.
>
> I've got libspatialite and librasterlite2 compiled from fossil trunk
> and I've got spatialite-tools and virtualpg compiled from latest
> stable release.
>
> DialogsGraph.cpp:1185:48: error: ‘rl2_graph_create_font’ was not
> declared in this scope
> RL2_FONTWEIGHT_NORMAL);
>

Hi Donovan,

spatialite_gui "devel" now depends on both libspatialite and
librasterlite2

as the "RL2_" prefix clearly states, your problems are caused
by using an outdated version of librasterlite2.
just rebuilding librasterlite2 starting from the most recent
Fossil snapshot should fix any issue.

bye Sandro

SaultDon

unread,
Apr 21, 2015, 10:48:00 AM4/21/15
to spatiali...@googlegroups.com
Thanks Sandro, 

Building librasterlite2 from fossil trunk today fixed the issue, much appreciated.




Donovan
Reply all
Reply to author
Forward
0 new messages