Compiling OpenGL SOIL on Mac OS X

前端 未结 4 2168
余生分开走
余生分开走 2021-02-14 07:40

How would I link in or compile SOIL (http://lonesock.net/soil.html) into my C++ OpenGL project on Mac OS X?

4条回答
  •  我在风中等你
    2021-02-14 07:59

    There's a makefile in the zip that you could try using (projects/makefile). You'll want to rename makefile to __M__akefile (capital M), then just run make in the projects/makefile directory. You'll also need to create the folder for it to put the compiled objects into

    From a command line prompt

    cd 
    cd projects/makefile
    cp makefile Makefile
    mkdir obj
    make
    

    This builds fine on Linux, and should work on OS X provided you have a C compiler installed.

提交回复
热议问题