Comments (11)
I've been working on OS X for a while without problems. I'm going to close this. If the problem persists feel free to reopen with additional details.
from bindings-glfw.
BTW, also tried cloning the repo and installing from master, but I get the same issue:
$ stack install
[1 of 2] Compiling Main ( /Users/vilem/.stack/setup-exe-src/setup-mPHDZzAJ.hs, /Users/vilem/.stack/setup-exe-src/setup-mPHDZzAJ.o )
[2 of 2] Compiling StackSetupShim ( /Users/vilem/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /Users/vilem/.stack/setup-exe-src/setup-shim-mPHDZzAJ.o )
Linking /Users/vilem/.stack/setup-exe-cache/x86_64-osx/tmp-Cabal-simple_mPHDZzAJ_1.22.4.0_ghc-7.10.2 ...
bindings-DSL-1.0.22: download
bindings-DSL-1.0.22: configure
bindings-DSL-1.0.22: build
bindings-DSL-1.0.22: copy/register
bindings-GLFW-3.1.2.2: configure (lib)
Configuring bindings-GLFW-3.1.2.2...
bindings-GLFW-3.1.2.2: build (lib)
Preprocessing library bindings-GLFW-3.1.2.2...
In file included from GLFW.hsc:9:0:
/Users/vilem/code/github/bindings-GLFW/glfw/include/GLFW/glfw3.h:156:25: fatal error: OpenGL/gl.h: No such file or directory
compilation terminated.
compiling .stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Bindings/GLFW_hsc_make.c failed (exit code 1)
from bindings-glfw.
Do you have the "Xcode command line tools" installed? (xcode-select --install
)
from bindings-glfw.
Yup.
from bindings-glfw.
I even tried updating Xcode.
from bindings-glfw.
Hmm.. What about glfw? Do its examples successfully build on your machine?
from bindings-glfw.
from bindings-glfw.
Hmm, what's version of stack do you have installed?
from bindings-glfw.
I had Stack 1.4.0, but upgraded to 1.5.1 now but it still won't install:
$ stack install
-- While building package digest-0.0.1.2 using:
/Users/vilem/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.0.2_ghc-8.2.1 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.0.2 configure --with-ghc=/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/bin/ghc --with-ghc-pkg=/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/pkgdb --libdir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/lib --bindir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/bin --datadir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/share --libexecdir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/libexec --sysconfdir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/etc --docdir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/doc/digest-0.0.1.2 --htmldir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/doc/digest-0.0.1.2 --haddockdir=/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/doc/digest-0.0.1.2 --dependency=base=base-4.10.0.0 --dependency=bytestring=bytestring-0.10.8.2 -f-bytestring-in-base --exact-configuration
Process exited with code: ExitFailure 1
Logs have been written to: /Users/vilem/code/github/lamdu/.stack-work/logs/digest-0.0.1.2.log
Configuring digest-0.0.1.2...
Cabal-simple_mPHDZzAJ_2.0.0.2_ghc-8.2.1: Missing dependency on a foreign
library:
* Missing (or bad) header file: zlib.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
If the header file does exist, it may contain errors that are caught by the C
compiler at the preprocessing stage. In this case you can re-run configure
with the verbosity flag -v3 to see the error messages.
-- While building package bindings-GLFW-3.1.2.2 using:
/Users/vilem/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_2.0.0.2_ghc-8.2.1 --builddir=.stack-work/dist/x86_64-osx/Cabal-2.0.0.2 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /Users/vilem/code/github/lamdu/.stack-work/logs/bindings-GLFW-3.1.2.2.log
Configuring bindings-GLFW-3.1.2.2...
Preprocessing library for bindings-GLFW-3.1.2.2..
/private/var/folders/12/1kppc1y16nzfg7ntgz9pyvfc0000gn/T/stack5873/bindings-GLFW-3.1.2.2/In file included from GLFW.hsc:9:0:
/private/var/folders/12/1kppc1y16nzfg7ntgz9pyvfc0000gn/T/stack5873/bindings-GLFW-3.1.2.2/glfw/include/GLFW/glfw3.h:156:25: fatal error: OpenGL/gl.h: No such file or directory
compilation terminated.
compiling .stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/Bindings/GLFW_hsc_make.c failed (exit code 1)
command was: /Users/vilem/.nix-profile/bin/gcc -c .stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/Bindings/GLFW_hsc_make.c -o .stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/Bindings/GLFW_hsc_make.o -m64 -fno-stack-protector -m64 -fno-stack-protector -m64 -D__GLASGOW_HASKELL__=802 -Ddarwin_BUILD_OS=1 -Dx86_64_BUILD_ARCH=1 -Ddarwin_HOST_OS=1 -Dx86_64_HOST_ARCH=1 -Iglfw/include/GLFW -Iglfw/include/ -Iglfw/src -Iglfw/include/os/darwin -D_GLFW_USE_CONFIG_H -I.stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/autogen -I.stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/global-autogen -include .stack-work/dist/x86_64-osx/Cabal-2.0.0.2/build/autogen/cabal_macros.h -I/Users/vilem/.stack/snapshots/x86_64-osx/nightly-2017-08-10/8.2.1/lib/x86_64-osx-ghc-8.2.1/bindings-DSL-1.0.23-GnirsnGaJOzLEFMHVhMFIe/include -I/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/lib/ghc-8.2.1/base-4.10.0.0/include -I/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/lib/ghc-8.2.1/integer-gmp-1.0.1.0/include -I/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/lib/ghc-8.2.1/include -I/Users/vilem/.stack/programs/x86_64-osx/ghc-8.2.1/lib/ghc-8.2.1/include/
BTW, I got it running fine on a friend's mac, but I did install everything from scratch (it didn't even have brew
). Some state is messed up somewhere. Maybe I should consider a clean install of my OS? 😭
from bindings-glfw.
Maybe brew doctor
could notice something wrong? I'd further investigate why the digest
package doesn't build because that seems like a smaller scope of problems which affect more people..
from bindings-glfw.
Apologies I had forgotten about this. Thanks for closing.
from bindings-glfw.
Related Issues (20)
- Update glfw to 3.1.1 HOT 1
- Should the dependency to Xxf86vm be made optional? HOT 1
- Expose GLFW_USE_DWM_SWAP_INTERVAL as build flag.
- glfw3native.h bindings HOT 3
- Submit to Stackage HOT 2
- Package needs a new maintainer HOT 10
- HUnit 1.3 support HOT 2
- update glfw to 3.2.1 HOT 9
- License mismatch between Cabal and LICENSE file HOT 1
- Make the glfw source to a submodule? HOT 1
- unable to load package `bindings-GLFW-3.1.2.2' HOT 5
- Duplicate link in README
- glfw_config.h on linux doesn't support multiple window managers.
- MoltenVK support HOT 3
- Upgrade to 3.3
- Doesn't build on Windows. Num directive not supported in cross compilation mode. HOT 8
- OpenBSD support for bindings-GLFW HOT 7
- Upgrade to 3.3.4 or 3.3.6 HOT 1
- broken on M1 macs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bindings-glfw.