agiliopadua / homebrew-extras

Some Homebrew formulae.
11 stars 6 forks source link

Build of xcrysden failed #5

Open nujabse opened 3 years ago

nujabse commented 3 years ago

Tried installing xcrysden using homebrew, but says 'GL/gl.h' not found. The error output looks like this:

==> Installing agiliopadua/extras/xcrysden
==> Patching
==> Applying xcrysden-homebrew.patch
patching file F/gengeom.f
patching file Tcl/Viewer.tcl
patching file Tcl/fs/FS_Main.tcl
patching file Tcl/fs/FS_Multi.tcl
patching file Tcl/stereo.tcl
patching file system/Make.macosx-x11
==> make xcrysden
Last 15 lines from /Users/mathholic/Library/Logs/Homebrew/xcrysden/01.make:
#   Compiling XCRYSDEN C-code  #
#                              #
#------------------------------#

cd C; /Library/Developer/CommandLineTools/usr/bin/make "TOPDIR=/private/tmp/xcrysden-20210510-56348-4am1zk/xcrysden-1.5.60" compile
make  TOPDIR=/private/tmp/xcrysden-20210510-56348-4am1zk/xcrysden-1.5.60
gcc -O2 -fPIC -DTOGL_USE_FONTS -DHAVE_NO_GETLINE -DUSE_INTERP_RESULT  -DUSE_FONTS -I/usr/local/include  -I/usr/local/opt/tcl-tk-x11/include -I/usr/local/opt/tcl-tk-x11/include -I/opt/X11/include -I/opt/X11/include  -c detnsplit.c
In file included from detnsplit.c:22:
./struct.h:47:10: fatal error: 'GL/gl.h' file not found
#include <GL/gl.h>
         ^~~~~~~~~
1 error generated.
make[2]: *** [detnsplit.o] Error 1
make[1]: *** [compile] Error 2
make: *** [src-C] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/agiliopadua/homebrew-extras/issues

These open issues may also help:
New version of xcrysden https://github.com/agiliopadua/homebrew-extras/issues/3

Error: Your Xcode (12.1) is outdated.
Please update to Xcode 12.4 (or delete it).
Xcode can be updated from the App Store.

Error: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.
agiliopadua commented 3 years ago

Have you installed XQuartz? <GL/gl.h> is normally in /opt/X11/include

nujabse commented 3 years ago

I have already installed the latest version of XQuartz via brew install --cask XQuartz, but the build for xcrysden still fails.

tipololomg commented 3 years ago

Hello! Had exactly the same problem but I'm sure that I have a folder "GL" and a file "gl.h" in the "opt/X11/include" directory. Besides that I can open xQuartz. Any ideas?