
问题是这样的,我下载了 igraph 和 mpi 的包,但是我用 Xcode 去编译的时候还是会出现 igraph.h not found 的情况。
然后尝试去添加路径但是并不知道在 Bulid Settings 里面的哪里添加。
希望能够有大神帮忙解决一下这个问题,能编译就好!
1 hyq 2015-10-29 23:19:02 +08:00 User Header Search Paths .so 和.a 文件可以在 Build Phases 的 Link Binary With Libraries 里面添加 |
2 sagnitude 2015-10-29 23:19:15 +08:00 如果是引号导入的,把.h 文件拖进项目就行 如果是尖括号导入, Build Settings ,左上角打开 All ,右上角输入"Header Search Paths" |
3 Dylan8024 OP @sagnitude 我先开始就是那样添加的,比如我的 igraph.h 这个文件在 /usr/local/opt/igraph/include/igraph 里面,我就在 Debug 那里面直接输入这个 /usr/local/opt/igraph/include/igraph/igraph.h 吗? |
4 Dylan8024 OP @hyq 貌似 Link Binary With Libraries 里面只有 Drag to reorder frameworks 的,木有找到如何添加.so 和.a 的 |
5 MCVector 2015-10-30 04:16:28 +08:00 -I<INCLUDE_DIRECTORY> |
6 sagnitude 2015-10-30 09:21:03 +08:00 @Dylan8024 这一栏填的是 Path ,文件夹,不是文件路径,填 “/usr/local/opt/igraph/include/igraph ” 你把.a 文件直接拖进 X code 就可以了,另外 Link Binary With Libraries 左下角有个加号 |