Compile on AIX

108 views
Skip to first unread message

Daniel Mayerhofer

unread,
Oct 11, 2024, 2:45:43 AM10/11/24
to LAStools - efficient tools for LiDAR processing
Hello!

Does anyone here ever successfully tried to compile LAStools on AIX using xlc?

What I did:
  1. downloaded and unzipped LAStools-master.zip
  2. 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

Jochen Rapidlasso

unread,
Oct 11, 2024, 2:48:26 AM10/11/24
to LAStools - efficient tools for LiDAR processing
Hi Daniel,
those code related questions you maybe get better answered at the open source git repo.
Feel free to open an issue there.

Cheers,

Jochen @rapidlasso

Daniel Mayerhofer

unread,
Oct 11, 2024, 3:33:58 AM10/11/24
to LAStools - efficient tools for LiDAR processing
Hi Jochen!

Thanks for the hint.
Just posted the same question there.

Best regards,
Daniel
Reply all
Reply to author
Forward
0 new messages