Compile from source on Mac OSX Monterey

Asked by Hajarimanitra Rambelorivony

Hallo,
I tried to compile Hugin from source on Mac OSX Monterey using the instruction from https://wiki.panotools.org/Hugin_Compiling_OSX but received error messages after running cmake.

Here are the error messages:

CMake Error at src/hugin1/stitch_project/CMakeLists.txt:86 (ADD_EXECUTABLE):
  Cannot find source file:

    Hugin.icns

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at src/hugin1/ptbatcher/CMakeLists.txt:136 (ADD_EXECUTABLE):
  Cannot find source file:

    PTBatcherGui.icns

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at src/hugin1/stitch_project/CMakeLists.txt:86 (ADD_EXECUTABLE):
  No SOURCES given to target: HuginStitchProject

CMake Error at src/hugin1/ptbatcher/CMakeLists.txt:136 (ADD_EXECUTABLE):
  No SOURCES given to target: PTBatcherGUI

Question information

Language:
English Edit question
Status:
Solved
For:
Hugin Edit question
Assignee:
No assignee Edit question
Solved by:
Hajarimanitra Rambelorivony
Solved:
Last query:
Last reply:
Revision history for this message
Hajarimanitra Rambelorivony (hajakely) said :
#1

Just an info to anyone with the same problem. I corrected/pointed the location of "Hugin.icns" and "PTBatcherGui.icns"

In "src/hugin1/stitch_project/CMakeLists.txt", I changed the code in line 7 to
set( MACOSX_BUNDLE_ICON_FILE ../hugin/Hugin.icns )

and in "src/hugin1/ptbatcher/CMakeLists.txt", I changed the code in line 15 to
 set( MACOSX_BUNDLE_ICON_FILE ../hugin/PTBatcherGui.icns )

and the problem was solved

Revision history for this message
tmodes (tmodes) said :
#2

Sorry for the late answer. But currently there are no other known Mac OS builder. So there can be more glitches.

I committed your changes now to the repository. Thanks for it again.

Revision history for this message
p.w.wong (phil-weballey) said :
#3

Yes, I also managed to make a functional MacOS build that works on 10.12 thru Monterey. However, I encountered different problems (that were resolved) in creating the build. I do have the corrections that I used to create the build. There was also a mask creation crash in wxwidgets that I also fixed, as well.

How to proceed?

-phil