Hello!
Does anyone here ever successfully tried to compile LAStools on AIX using xlc?
What I did:
- downloaded and unzipped LAStools-master.zip
- run cmake
[...]/LAStools-master# cd LAStools-master
[...]/LAStools-master# export CXX=/opt/IBM/xlc/13.1.3/bin/cc
[...]/LAStools-master# cmake -DCMAKE_BUILD_TYPE=Release CMakeLists.txt
-- The CXX compiler identification is XL 13.1.3
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/IBM/xlc/13.1.3/bin/cc - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (2.7s)
-- Generating done (2.2s)
-- Build files have been written to: [...]/LAStools-master
Seems to be OK - until we try to build it:
[...]/LAStools-master# cmake --build .
[ 1%] Building CXX object LASlib/src/CMakeFiles/LASlib.dir/lasreader.cpp.o
"/opt/IBM/xlC/13.1.3/include/array", line 69.5: 1540-0859 (S) #error directive: To use the array library, macro __IBMCPP_TR1__ must be defined
by user to non zero integer value..
"/opt/IBM/xlC/13.1.3/include/unordered_map", line 71.5: 1540-0859 (S) #error directive: To use the unordered map library, macro __IBMCPP_TR1__ must be defined
by user to non zero integer value..
make: The error code from the last command is 1.
Stop.
make: The error code from the last command is 2.
Stop.
make: The error code from the last command is 2.
Stop.
Any idea?
Regards,
Daniel