Git Product home page Git Product logo

Comments (6)

csanta avatar csanta commented on May 20, 2024

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.

bsabiston avatar bsabiston commented on May 20, 2024

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.

csanta avatar csanta commented on May 20, 2024

Yes, it can't find it. You can try bringing it over to your current directory.

from openglinsightscode.

bsabiston avatar bsabiston commented on May 20, 2024

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.

bsabiston avatar bsabiston commented on May 20, 2024

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.

bsabiston avatar bsabiston commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.