Opened 6 months ago

Last modified 2 weeks ago

#62730 new defect

liblas: error: The file liblas/detail/endian.hpp needs to be set up for your CPU type

Reported by: ryandesign (Ryan Schmidt) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: arm64 Cc:
Port: liblas

Description

https://build.macports.org/builders/ports-11_arm64-builder/builds/15949/steps/install-port/logs/stdio

/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_gis_liblas/liblas/work/libLAS-e12742f4152146d3a71f9b2de573257e91736c93/include/liblas/detail/endian.hpp:96:3: error: The file liblas/detail/endian.hpp needs to be set up for your CPU type.
# error The file liblas/detail/endian.hpp needs to be set up for your CPU type.
  ^
1 error generated.

Change History (1)

comment:1 Changed 2 weeks ago by fvaccari

I've just encountered the same problem on a M1 Mini, and modified the endian.hpp file in a very dirty way. Where the error message is coded, I commented that error declaration and copied there the definition taken from a few statements above where little endianness is defined. After that the build completed.

Of course a more elegant and definitive solution should be implemented to solve the issue properly, but that's out of my reach unfortunately. Anyway, for me it worked: liblas was a dependency for qgis3, and now the remaining qgis3 dependencies are installing...

Last edited 2 weeks ago by fvaccari (previous) (diff)
Note: See TracTickets for help on using tickets.