Setup Xcode and FLTK

五迷三道 提交于 2019-12-03 04:06:31

I have found the solution at groups.google.com and below is what I have done:

  1. Change build settings as such:

    Header Search Paths : -I/usr/local/include

    Library Search Paths : /usr/local/lib

  1. Go to terminal and type fltk-config --ldflags

    You get a line of flags, mine was -L/usr/local/Cellar/fltk/1.3.2_1/lib -lfltk -lpthread -framework Cocoa.

    In Xcode Build settings, paste that in other linker flags

  1. After these steps Xcode compiled the file successfully.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!