#174 Compile error for SAGA 2.1.1 after upgrading to wxgtk 3.0.0 on Linux 64bit

v2.1.0
closed
nobody
1
2014-12-24
2014-01-12
saultdon
No

Upgraded to wxgtk 3.0 on Linux and get an error during compiling.

I'm using the following ./configure to do the build:

./configure --prefix=/usr --enable-debug --enable-shared --enable-python PYTHON_VERSION=2.7 PYTHON=/usr/bin/python2 \
                CXXFLAGS="`wx-config --cxxflags`" LIBS="`wx-config --libs`" \
                CPPFLAGS="-I${srcdir}/include"

Build error:

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I/tmp/makepkg/saga-gis/src/include -fPIC -Wall -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -DDEBUG -D_SAGA_PYTHON -fopenmp -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 mat_formula.lo -MD -MP -MF .deps/mat_formula.Tpo -c mat_formula.cpp -o mat_formula.o >/dev/null 2>&1
mv -f .deps/grid_system.Tpo .deps/grid_system.Plo
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..   -I/tmp/makepkg/saga-gis/src/include -fPIC -Wall `wx-config --unicode=yes --cxxflags` -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS  -g -DDEBUG -D_SAGA_PYTHON -fopenmp -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 mat_grid_radius.lo -MD -MP -MF .deps/mat_grid_radius.Tpo -c -o mat_grid_radius.lo mat_grid_radius.cpp
api_string.cpp: In member function 'const char* CSG_String::b_str() const':
api_string.cpp:253:21: error: cannot convert 'wxString' to 'const char*' in return
  return( *m_pString );
                     ^
api_string.cpp:254:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
api_string.cpp: In static member function 'static CSG_String CSG_String::Format(const wchar_t*, ...)':
api_string.cpp:289:36: warning: second parameter of 'va_start' not last named argument [-Wvarargs]
  va_start(argptr, sFormat);
                                    ^
api_string.cpp: In member function 'int CSG_String::Printf(const wchar_t*, ...)':
api_string.cpp:315:36: warning: second parameter of 'va_start' not last named argument [-Wvarargs]
  va_start(argptr, sFormat);
                                    ^
Makefile:694: recipe for target 'api_string.lo' failed
make[4]: *** [api_string.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/mat_formula.Tpo .deps/mat_formula.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I/tmp/makepkg/saga-gis/src/include -fPIC -Wall -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -DDEBUG -D_SAGA_PYTHON -fopenmp -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 mat_grid_radius.lo -MD -MP -MF .deps/mat_grid_radius.Tpo -c mat_grid_radius.cpp  -fPIC -DPIC -o .libs/mat_grid_radius.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I/tmp/makepkg/saga-gis/src/include -fPIC -Wall -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D_SAGA_LINUX -D_SAGA_UNICODE -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_API_EXPORTS -g -DDEBUG -D_SAGA_PYTHON -fopenmp -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 mat_grid_radius.lo -MD -MP -MF .deps/mat_grid_radius.Tpo -c mat_grid_radius.cpp -o mat_grid_radius.o >/dev/null 2>&1
mv -f .deps/mat_grid_radius.Tpo .deps/mat_grid_radius.Plo
make[4]: Leaving directory '/tmp/makepkg/saga-gis/src/saga-2.1.1/src/saga_core/saga_api'
Makefile:375: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/tmp/makepkg/saga-gis/src/saga-2.1.1/src/saga_core'
Makefile:373: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/tmp/makepkg/saga-gis/src/saga-2.1.1/src'
Makefile:423: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/tmp/makepkg/saga-gis/src/saga-2.1.1'
Makefile:354: recipe for target 'all' failed
make: *** [all] Error 2

Discussion

  • saultdon

    saultdon - 2014-01-12

    This ticket can be closed, I forgot to upgrade wxwidgets too =)

     
  • Volker Wichmann

    Volker Wichmann - 2014-01-12
    • status: open --> closed
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks