geoviewer compilation error on MacBook Pro M4 macOS 15.4

Dear @butalag ,

I was able to reproduce the issue you described. It seems potentially related to the latest very of the Command Line Tools (CLT), as I encountered the same problem on my system running the macOS 15.4 with CLT 16.3.0.0.1.1742442376.

Could you possibly check what is your CLT version with this command?
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

If you confirm that you are using CLT 16.3, a possible solution (tested on my machine) is to downgrade to the CLT 16.2 version. Here’s a suggested procedure:

  1. Remove the CLT from your system with the command
    sudo rm -rf /Library/Developer/CommandLineTools
    Before issuing this command, check the path where the CLT are installed with the command: xcode-select -p. If different, change the path in the previous command.
  2. Download the installer package of the CLT 16.2 from the Apple Developer website. Note that accessing this download requires you to log in with an Apple Developer account.
  3. Once downloaded, open the .dmg file and run the installer.
  4. Recompile geoviewer following the instruction from the Flair website. Remember to run the command make clean in the directory geoviewer.

Note that I had to uninstall Xcode as well. If it is installed on your machine please remove Xcode and follow the aforementioned steps. Note also that Xcode is not needed for Flair, only the CLT.

Please let me know if downgrading the CLT resolves the issue for you.

Cheers, Luigi