Comments (6)
My workaround for that was just to comment that line out. I figured that file never made it into the git branch as I also don't have that file after cloning.
I encountered another problem during the compilation:
ld: can't open output file for writing: contourdemo.app/Contents/MacOS/contourdemo, errno=2 for architecture x86_64
And I solved it by manually creating the directories contourdemo.app/Contents/MacOS/
After that I was able to compile and run the sample code.
from openglinsightscode.
I was just thinking I would like to go back and get this working. I commented out that line but I am getting "ld: library not found for -lglfw".
The file 'libglfw.a' is in the demo folder, but I guess it doesn't see it? Is that some environment variable problem or something? Anyone know? Thanks!
Bob
from openglinsightscode.
Yes, it can't find it. You can try bringing it over to your current directory.
from openglinsightscode.
It is in the current directory, 'demo'. And I checked my .bash_profile and './' is the last thing in my PATH. That is the only thing I know to check, I'm not very fluent with my UNIX.
Bob
from openglinsightscode.
OK -- I added "-L." to the gcc compile line in the Makefile. That got it to see the library. Unfortunately the library provided I think is not for Mac. So I went and downloaded GLFW and compiled it, which seemed to work. But when I put the new libglfw.a in the directory and compile, I get this:
Undefined symbols for architecture x86_64:
"_IOCreatePlugInInterfaceForService", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOIteratorNext", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOMasterPort", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IORegistryEntryCreateCFProperties", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOServiceGetMatchingServices", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
"_IOServiceMatching", referenced from:
__glfwInitJoysticks in libglfw.a(cocoa_joystick.o)
ld: symbol(s) not found for architecture x86_64
So that is weird. Do you know what would cause that? It seems like a problem maybe with the GLFW than this project.
Bob
from openglinsightscode.
OK! I needed to add "-framework IOKit" to the end of the gcc line also. Finally I get the same error as @csanta!
I followed his directions about creating the directories. And ... FINALLY! The thing compiles.
And it works! Only it didn't work by double-clicking the 'app', as you might expect. From the terminal you have to go to the inner directory contour demo.app/Contents/MacOS and run 'contourdemo'.
I can't believe it! It works. Hope this lengthy account helps anyone else wanting to run this on Mac in 2013.
from openglinsightscode.
Related Issues (16)
- Code of chapter 22 missing.. HOT 4
- Chapter 29 build issues in release mode
- Does Chapter 29 Fermi... should work on AMD?
- Chapter 7 demo fails to compile due to missing file HOT 2
- when executing the example of chapter 29,it turn out that "vertex shader compilation failed"
- Chapter 28
- Real-Time Rendering has released a new edition. When will OpenGL Insights?
- Chapter 22 : Octree-Based Sparse Voxelization Using the GPU Hardware Rasterizer Source
- Chapter 21: shaders use 4.2's binding but #version number's are 330
- Chapter 37 - Performance State Tracking
- building for Windows 7, Chapter 11 Antialiased Volumetric Lines
- Ambiguous code license HOT 4
- Chapter 10 : Impossible to compile. HOT 1
- Chapter 28 - Makefile is missing HOT 1
- Chapter 28 Scenario4 Cannot find file.
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 openglinsightscode.