LibreWMS compile error

27 views
Skip to first unread message

Majid Hojati

unread,
Aug 28, 2017, 4:08:38 PM8/28/17
to SpatiaLite Users
Hi,
Sorry for my noob questions. While I was trying to compile librewms I got this errors.
m@ubuntu:~/librewms-1.0.0$ sudo make
make  all-recursive
make[1]: Entering directory '/home/m/librewms-1.0.0'
Making all in icons
make[2]: Entering directory '/home/m/librewms-1.0.0/icons'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/m/librewms-1.0.0/icons'
Making all in win_resource
make[2]: Entering directory '/home/m/librewms-1.0.0/win_resource'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/m/librewms-1.0.0/win_resource'
Making all in mac_resource
make[2]: Entering directory '/home/m/librewms-1.0.0/mac_resource'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/m/librewms-1.0.0/mac_resource'
Making all in gnome_resource
make[2]: Entering directory '/home/m/librewms-1.0.0/gnome_resource'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/m/librewms-1.0.0/gnome_resource'
make[2]: Entering directory '/home/m/librewms-1.0.0'
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 Main.o -MD -MP -MF .deps/Main.Tpo -c -o Main.o Main.cpp
mv -f .deps/Main.Tpo .deps/Main.Po
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 Dialogs.o -MD -MP -MF .deps/Dialogs.Tpo -c -o Dialogs.o Dialogs.cpp
mv -f .deps/Dialogs.Tpo .deps/Dialogs.Po
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 MapView.o -MD -MP -MF .deps/MapView.Tpo -c -o MapView.o MapView.cpp
MapView.cpp: In member function ‘void MyMapView::PopulateGeometryList(GeometryList*, int, rl2WmsFeatureCollectionPtr)’:
MapView.cpp:1822:60: error: ‘get_wms_feature_attribute_geometry’ was not declared in this scope
             get_wms_feature_attribute_geometry(feature, col);
                                                            ^
MapView.cpp: In member function ‘void MyMapView::HtmlFromGetFeatureInfo(rl2WmsFeatureCollectionPtr, int, wxString&, wxString&)’:
MapView.cpp:1863:66: error: ‘get_wms_feature_attribute_geometry’ was not declared in this scope
               if (get_wms_feature_attribute_geometry(feature, col) != NULL)
                                                                  ^
MapView.cpp:1883:66: error: ‘get_wms_feature_attribute_geometry’ was not declared in this scope
               if (get_wms_feature_attribute_geometry(feature, col) != NULL)
                                                                  ^
MapView.cpp: In member function ‘void MyMapView::BuildMarker(wxImage&, bool, gaiaGeomCollPtr)’:
MapView.cpp:4341:49: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
       rl2_graph_set_pen(ctx, 0, 0, 255, 255, 1, RL2_PENSTYLE_SOLID);
                                                 ^
MapView.cpp:4341:67: error: ‘rl2_graph_set_pen’ was not declared in this scope
       rl2_graph_set_pen(ctx, 0, 0, 255, 255, 1, RL2_PENSTYLE_SOLID);
                                                                   ^
MapView.cpp:4345:49: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
       rl2_graph_set_pen(ctx, 255, 0, 0, 255, 1, RL2_PENSTYLE_SOLID);
                                                 ^
MapView.cpp:4345:67: error: ‘rl2_graph_set_pen’ was not declared in this scope
       rl2_graph_set_pen(ctx, 255, 0, 0, 255, 1, RL2_PENSTYLE_SOLID);
                                                                   ^
MapView.cpp:4446:47: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
     rl2_graph_set_pen(ctx, 0, 0, 255, 255, 4, RL2_PENSTYLE_SOLID);
                                               ^
MapView.cpp:4446:65: error: ‘rl2_graph_set_pen’ was not declared in this scope
     rl2_graph_set_pen(ctx, 0, 0, 255, 255, 4, RL2_PENSTYLE_SOLID);
                                                                 ^
MapView.cpp:4448:47: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
     rl2_graph_set_pen(ctx, 255, 0, 0, 255, 4, RL2_PENSTYLE_SOLID);
                                               ^
MapView.cpp:4448:65: error: ‘rl2_graph_set_pen’ was not declared in this scope
     rl2_graph_set_pen(ctx, 255, 0, 0, 255, 4, RL2_PENSTYLE_SOLID);
                                                                 ^
MapView.cpp:4503:49: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
       rl2_graph_set_pen(ctx, 0, 0, 255, 255, 1, RL2_PENSTYLE_SOLID);
                                                 ^
MapView.cpp:4503:67: error: ‘rl2_graph_set_pen’ was not declared in this scope
       rl2_graph_set_pen(ctx, 0, 0, 255, 255, 1, RL2_PENSTYLE_SOLID);
                                                                   ^
MapView.cpp:4507:49: error: ‘RL2_PENSTYLE_SOLID’ was not declared in this scope
       rl2_graph_set_pen(ctx, 255, 0, 0, 255, 1, RL2_PENSTYLE_SOLID);
                                                 ^
MapView.cpp:4507:67: error: ‘rl2_graph_set_pen’ was not declared in this scope
       rl2_graph_set_pen(ctx, 255, 0, 0, 255, 1, RL2_PENSTYLE_SOLID);
                                                                   ^
MapView.cpp:4522:63: error: too few arguments to function ‘unsigned char* rl2_graph_get_context_alpha_array(rl2GraphicsContextPtr, int*)’
   unsigned char *alpha = rl2_graph_get_context_alpha_array(ctx);
                                                               ^
In file included from Classdef.h:42:0,
                 from MapView.cpp:26:
/usr/local/include/rasterlite2/rl2graphics.h:1377:3: note: declared here
  *rl2_graph_get_context_alpha_array (rl2GraphicsContextPtr context,
   ^
Makefile:514: recipe for target 'MapView.o' failed
make[2]: *** [MapView.o] Error 1
make[2]: Leaving directory '/home/m/librewms-1.0.0'
Makefile:550: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/m/librewms-1.0.0'
Makefile:394: recipe for target 'all' failed
make: *** [all] Error 2

Is there any dependenyies which I don't have?here is my configure command

m@ubuntu:~/librewms-1.0.0$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... dlltool
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for wx-config... /usr/bin/wx-config
checking for stdlib.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking whether lstat correctly handles trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) yes
checking for working memcmp... yes
checking whether stat accepts an empty string... no
checking for strftime... yes
checking for memset... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for fdatasync... yes
checking for ftruncate... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memmove... yes
checking for strerror... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBRASTERLITE2... yes
checking for LIBSPATIALITE... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating icons/Makefile
config.status: creating win_resource/Makefile
config.status: creating gnome_resource/Makefile
config.status: creating mac_resource/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
 

Majid Hojati

unread,
Aug 28, 2017, 4:16:55 PM8/28/17
to SpatiaLite Users
Well, I just downloaded the last version from trunk (not from the link which is provided in its site) (https://www.gaia-gis.it/fossil/librewms/zip/LibreWMS-03e3cc2e40.zip?uuid=03e3cc2e40410e58) and it worked well.
thanks
Reply all
Reply to author
Forward
0 new messages