libpano13-2.9.21 fails to build from source on macOS

63 views
Skip to first unread message

Caleb Xu

unread,
Dec 30, 2021, 3:47:10 PM12/30/21
to hugin and other free panoramic software
Hello, I am trying to build libpano13-2.9.21 on macOS Monterey (12.1) on x86_64 architecture. I am seeing errors like this during the build step:

/tmp/libpano-20211230-23553-1kbwuty/libpano13-2.9.21/panorama.h:56:10: fatal error: 'endian.h' file not found
#include <endian.h>
         ^~~~~~~~~~

Looks like on macOS, endian.h lives at <machine/endian.h>, hence the error. I replaced the occurrence listed above with #include <machine/endian.h> and got it to build in my environment.

Note that macOS' <machine/endian.h> is not identical to Linux <endian.h> in terms of symbols/functions available. But seeing as the build completed, looks like whatever differences there may be might not an issue here. I can provide the header if needed.

T. Modes

unread,
Jan 7, 2022, 2:30:28 PM1/7/22
to hugin and other free panoramic software
Caleb Xu schrieb am Donnerstag, 30. Dezember 2021 um 21:47:10 UTC+1:
Hello, I am trying to build libpano13-2.9.21 on macOS Monterey (12.1) on x86_64 architecture. I am seeing errors like this during the build step:

Sorry, but for testing such things we released several release candidates. Why waiting to the to final release?

/tmp/libpano-20211230-23553-1kbwuty/libpano13-2.9.21/panorama.h:56:10: fatal error: 'endian.h' file not found
#include <endian.h>
         ^~~~~~~~~~

Looks like on macOS, endian.h lives at <machine/endian.h>, hence the error. I replaced the occurrence listed above with #include <machine/endian.h> and got it to build in my environment.

Note that macOS' <machine/endian.h> is not identical to Linux <endian.h> in terms of symbols/functions available. But seeing as the build completed, looks like whatever differences there may be might not an issue here. I can provide the header if needed.
We are using only the preprocessor defines __BYTE_ORDER and __BIG_ENDIAN from endian.h. Are they on MacOS also defined?

Reply all
Reply to author
Forward
0 new messages