After compiling, to install (make install) gives this error: Checking if saga already installed ===> Registering installation for saga-4.1.0 pkg-static: Unable to access file /usr/ports/math/saga/work/stage/usr/local/lib/saga/libio_shapes_las.so:No such file or directory *** Error code 74 It happened in version 3 and now in 4.1 Jose
Thanks for the report. You didn't tell us, what OS version you are using? Also, are all ports options enabled (default) or is something disabled? One reason, why SAGA GIS does not build libio_shapes_las.so, could be a wrong LAS version. Could you please verify via 'pkg info | grep liblas', if liblas12-1.2.1 is installed? Thanks in advance for any further information.
Hello, thanks for the answer. I have another version installed % pkg info | grep liblas liblas-1.8.1_4 Library For Reading And Writing LAS-Format Data Jose
% uname -a FreeBSD cx 11.0-RELEASE-p9 FreeBSD 11.0-RELEASE-p9 #0: Tue Apr 11 08:48:40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
(In reply to jjachuf from comment #2) Hmm, I am afraid, that is the reason for the described failure. SAGA GIS only and only works with liblas versions 1.2.x. That is the reason, why I maintain this old liblas version as a port. There were several discussions on the SAGA GIS lists about it, but there is no developer atm, who is willing to adapt the SAGA code to a newer liblas version :( Could you please invest, if the installed liblas version 1.8.1 is really needed. There is a chance, that other programs will also work with liblas 1.2.x. If so, you could change the version by, for example: portmaster -o devel/liblas12 liblas-1.8.1_4
Thanks Rainer Done installed correctly, now I have problems with wx versions % saga_gui Fatal Error: Mismatch between the program and library build versions detected. The library used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.6,compatible with 2.8), and your program used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.6,compatible with 2.8). Abort (core dumped) pkg info | grep wx py27-wxPython-common-3.0.2.0_2 GUI toolkit for the Python programming language py27-wxPython30-3.0.2.0_2 GUI toolkit for the Python programming language wx28-gtk2-2.8.12_6 The wxWidgets GUI toolkit with GTK+ bindings wx28-gtk2-common-2.8.12_6 The wxWidgets GUI toolkit (common files) wx28-gtk2-contrib-2.8.12_6 The wxWidgets GUI toolkit contributed libraries wx28-gtk2-contrib-common-2.8.12_6 The wxWidgets GUI toolkit contributed libraries (common files) wx30-gtk2-3.0.2_5 The wxWidgets GUI toolkit with GTK+ bindings Any idea how to fix this?
Created attachment 183796 [details] patch to change from gcc to clang Hi Jose, I am very sorry, that there are new problems with SAGA GIS now. I tried to rebuild the port on a very recent HEAD amd64 and can confirm your report. The same breakage on my side now. Obviously, there are some changes with the new gcc5 port on its ABI side? With newer clang versions it is possible to use OpenMP. So I tried to switch from gcc to clang, and it works, at least for amd64 :) Unfortunately, I am not able to test for i386 platforms ATM, because some of the dependencies fails to build in Poudriere. Could you please patch the attached file against the SAGA GIS port and report back, if it works for you. The patch should - change the compiler from gcc to clang - really use the external libsvm library
Hi Rainer # make MAKE_JOBS_UNSAFE=yes After almost 1 hour of compiling this error occurs: ... ... libtool: compile: clang++40 -DHAVE_CONFIG_H -I. -I../../../.. -I/usr/local/include -isystem /usr/local/include -fPIC -I../../../../src/saga_core -D_SAGA_LINUX -D_TYPEDEF_BYTE -D_TYPEDEF_WORD -D_SAGA_UNICODE -fopenmp -lgomp -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -std=c++11 -MT las_export.lo -MD -MP -MF .deps/las_export.Tpo -c las_export.cpp -fPIC -DPIC -o .libs/las_export.o clang-4.0: warning: -lgomp: 'linker' input unused [-Wunused-command-line-argument] las_export.cpp:340:12: error: non-pointer operand type 'double' incompatible with nullptr x < xmin ? xmin = x : NULL; ^ ~~~~~~~~ las_export.cpp:341:12: error: non-pointer operand type 'double' incompatible with nullptr x > xmax ? xmax = x : NULL; ^ ~~~~~~~~ las_export.cpp:342:12: error: non-pointer operand type 'double' incompatible with nullptr y < ymin ? ymin = y : NULL; ^ ~~~~~~~~ las_export.cpp:343:12: error: non-pointer operand type 'double' incompatible with nullptr y > ymax ? ymax = y : NULL; ^ ~~~~~~~~ las_export.cpp:344:12: error: non-pointer operand type 'double' incompatible with nullptr z < zmin ? zmin = z : NULL; ^ ~~~~~~~~ las_export.cpp:345:12: error: non-pointer operand type 'double' incompatible with nullptr z > zmax ? zmax = z : NULL; ^ ~~~~~~~~ 6 errors generated. *** Error code 1 Stop. make[7]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools/io/io_shapes_las *** Error code 1 Stop. make[6]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools/io *** Error code 1 Stop. make[5]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src/tools *** Error code 1 Stop. make[4]: stopped in /usr/ports/math/saga/work/saga-4.1.0/src *** Error code 1 Stop. make[3]: stopped in /usr/ports/math/saga/work/saga-4.1.0 *** Error code 1 Stop. make[2]: stopped in /usr/ports/math/saga/work/saga-4.1.0 *** Error code 1 Stop. make[1]: stopped in /usr/ports/math/saga *** Error code 1 Stop. make: stopped in /usr/ports/math/saga
We have version 6.1.0. Is this still relevant?
Tested on 10.4 and 11.1 builds, packages and installs without problems. So I close here, overcome by events.