Comments (22)
Do you mind checking if 1.12.0 has the same problem. I'm still on OSX 10.9...
from glew.
See also: http://sourceforge.net/p/glew/bugs/270/
from glew.
Some more of the failing build log might also help shed some light.
from glew.
Sorry to ask but, where/how can I see the build log?
from glew.
Everything on the console following the make command, would be helpful.
from glew.
I downloaded today the latest commit cbd0dce and run the same commands as when opened the issue in OS X 10.10.5. The resulting output is the following
$ make
mkdir lib
cc -DGLEW_NO_GLU -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o tmp/darwin/default/shared/glew.o -c src/glew.c
cc -dynamiclib -install_name /usr/local/glew/lib/libGLEW.1.13.0.dylib -current_version 1.13.0 -compatibility_version 1.13 -o lib/libGLEW.1.13.0.dylib tmp/darwin/default/shared/glew.o -framework OpenGL
ln -sf libGLEW.1.13.0.dylib lib/libGLEW.1.13.dylib
ln -sf libGLEW.1.13.0.dylib lib/libGLEW.dylib
strip -x lib/libGLEW.1.13.0.dylib
cc -DGLEW_NO_GLU -DGLEW_STATIC -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o tmp/darwin/default/static/glew.o -c src/glew.c
ar rv lib/libGLEW.a tmp/darwin/default/static/glew.o
ar: creating lib/libGLEW.a
a - tmp/darwin/default/static/glew.o
strip -x lib/libGLEW.a
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/usr/local/glew/lib|g" \
-e "s|@exec_prefix@|/usr/local/glew/bin|g" \
-e "s|@includedir@|/usr/local/glew/include/GL|g" \
-e "s|@version@|1.13.0|g" \
-e "s|@cflags@||g" \
-e "s|@libname@|GLEW|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glew.pc
cc -DGLEW_NO_GLU -DGLEW_MX -DGLEW_BUILD -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o tmp/darwin/mx/shared/glew.o -c src/glew.c
cc -dynamiclib -install_name /usr/local/glew/lib/libGLEWmx.1.13.0.dylib -current_version 1.13.0 -compatibility_version 1.13 -o lib/libGLEWmx.1.13.0.dylib tmp/darwin/mx/shared/glew.o -framework OpenGL
ln -sf libGLEWmx.1.13.0.dylib lib/libGLEWmx.1.13.dylib
ln -sf libGLEWmx.1.13.0.dylib lib/libGLEWmx.dylib
strip -x lib/libGLEWmx.1.13.0.dylib
cc -DGLEW_NO_GLU -DGLEW_MX -DGLEW_STATIC -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o tmp/darwin/mx/static/glew.o -c src/glew.c
ar rv lib/libGLEWmx.a tmp/darwin/mx/static/glew.o
ar: creating lib/libGLEWmx.a
a - tmp/darwin/mx/static/glew.o
strip -x lib/libGLEWmx.a
sed \
-e "s|@prefix@|/usr|g" \
-e "s|@libdir@|/usr/local/glew/lib|g" \
-e "s|@exec_prefix@|/usr/local/glew/bin|g" \
-e "s|@includedir@|/usr/local/glew/include/GL|g" \
-e "s|@version@|1.13.0|g" \
-e "s|@cflags@|-DGLEW_MX|g" \
-e "s|@libname@|GLEWmx|g" \
-e "s|@requireslib@|glu|g" \
< glew.pc.in > glewmx.pc
mkdir bin
cc -DGLEW_NO_GLU -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o tmp/darwin/default/shared/glewinfo.o -c src/glewinfo.c
cc -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o bin/glewinfo tmp/darwin/default/shared/glewinfo.o -Llib -lGLEW -framework OpenGL
clang: warning: argument unused during compilation: '-ansi'
ld: dylib lib/libGLEW.dylib missing LC_ID_DYLIB load command file 'lib/libGLEW.dylib' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [bin/glewinfo] Error 1
from glew.
On my 10.10.5 the same commit builds fine. Could be some local issue.
$ cc --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
from glew.
This is my configuration
$ cc --version
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix
Looks pretty much the same. Could you post the commands you are executing?
from glew.
I tried to debug the makefile to see what is missing. Using make -n
the following lines are the ones to be executed
cc -O2 -Wall -W -Iinclude -dynamic -fno-common -ansi -pedantic -fPIC -o bin/glewinfo tmp/darwin/default/shared/glewinfo.o -Llib -lGLEW -framework OpenGL
and that line is the one that's breaking the make. Any clue?
from glew.
Ok, somehow the strip
commands are causing the error of ld: dylib lib/libGLEW.dylib missing LC_ID_DYLIB load command file 'lib/libGLEW.dylib' for architecture x86_64
I commented out all the lines calling the strip command and I was able to build glew, haven't tried it yet though.
from glew.
Oh! Specify STRIP= on the command line, to disable that step.
from glew.
But should I actually disable the strip command or should it work even with it?
from glew.
Sounds like a bug or incompatibility between the compiler and strip. Stripping is optional, so use STRIP= to skip it.
from glew.
Hope @tamaskenez share the building commands, because apparently it worked for him smoothly. I'll try the STRIP= and try to build a simple program.
from glew.
Find a solution to building and linking to my app in the issue #13
from glew.
@BRabbit27 I used the exact 3 command from your first post
from glew.
@nigels-com @tamaskenez do you have any idea on what could be the problem? I haven't made any major configuration change on my system.
Is there a way to compare some of your configuration with mine and try to narrow the problem?
from glew.
I'm not familiar with the LC_ID_DYLIB setting but let me know what I should check on my system and I'll post it here.
Also you can try to build it with CMake. You need the CMake tool in your path (the macports version is fine) and simply launch cmake-testbuild.sh
from glew.
@tamaskenez yes, as I commented already, using cmake builds correctly the library. I guess is the same kind of building between Makefile and Cmake, so I don't understand why one works and the other don't.
from glew.
I just might have to dust off my busted up old MacBook Pro and see if it can cope with Yosemite.
from glew.
(I'm still holding out for a new MacBook Pro, even though Santa failed to deliver on that)
from glew.
These worked for me on 10.12.1, closing.
Thanks for the report.
$ make extensions clean all SYSTEM=darwin
$ make extensions clean all SYSTEM=darwin-universal
...
$ file lib/libGLEW.dylib
lib/libGLEW.dylib: Mach-O universal binary with 2 architectures: [i386: Mach-O dynamically linked shared library i386] [x86_64: Mach-O 64-bit dynamically linked shared library x86_64]
lib/libGLEW.dylib (for architecture i386): Mach-O dynamically linked shared library i386
lib/libGLEW.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
from glew.
Related Issues (20)
- Files missings during build HOT 2
- Am I hallucinating or is there no include folder in the repo? HOT 2
- Is CMakeLists.txt maintained? HOT 4
- Isnβt `dllimport` obsolete? HOT 11
- How do I compile with make include 32 bit on Ubuntu 64 Bit?
- Change CMake min version HOT 4
- Undefined references when compiling source HOT 3
- Building library fails on cmake and Makefile HOT 3
- CMakeLists is illformed
- arm64 on mac HOT 18
- Suddenly can't build GLEW anymore HOT 5
- definition of GLsizeiptr is inconsistent with Khronos gl32.h on armel and armhf HOT 1
- cmake: Undefined reference to glx functions when build with non-standard prefix path
- Bug - Files not found
- Regression testing of GLEW HOT 5
- The problem encountered when compiling with CMake on Windows HOT 2
- Could not make glew in Mac intel. several unknown type name HOT 1
- Building with MinGW LLVM: "unknown argument: -nostdlib, -soname"
- OSMesa build error under Ubuntu 24.04 and OsMesa 24.0.5
- Compilation Error: HOT 1
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 glew.