ImageMagick Mac OS Eclipse 链接器问题

发布于 2024-12-14 02:39:59 字数 1269 浏览 7 评论 0原文

我正在尝试在运行 osx lion 的 mac Air 上的 eclipse 中将 ImageMagick 6.7.3 与 C++ 项目一起使用。我已经与它斗争了几天,谷歌搜索和研究我似乎无法让链接器找到文件,无论我尝试什么。这是我的 Eclipse 链接器日志,有人知道为什么这不起作用吗?

我已经在属性 -> 中填充了库搜索路径和包含路径设置c/c++ 构建 ->设置菜单,其中包含 ImageMagick 安装路径。任何帮助将不胜感激!

构建配置调试项目 ImportingLibrary **

make all 构建目标:导入库 调用:MacOS X C++ 链接器 g++ -L/Users/jon/Programs/ImageMagick-6.7.3/lib -o "ImportingLibrary" ./src/ChoicePath.o ./src/ImageCreation.o ./src/NavFocus.o ./src/RouteInputAnalyzer.o
体系结构 x86_64 的未定义符号: “_MagickWandGenesis”,引用自: _main 在 NavFocus.o 中 ld:未找到架构 x86_64 的符号 Collect2: ld 返回 1 退出状态 make: * [ImportingLibrary] 错误 1

​​ 构建完成 **

为项目 ImportingLibrary ** 构建配置发布 **

全部制作 构建文件:../src/NavFocus.cpp 调用:GCC C++ 编译器 g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/NavFocus.d" -MT"src/NavFocus.d" -o "src/NavFocus.o" "../src/导航焦点.cpp" ../src/NavFocus.cpp:13:29:警告:wand/MagickWand.h:没有这样的文件或目录 ../src/NavFocus.cpp:在函数“int main()”中: ../src/NavFocus.cpp:19:错误:“MagickWandGenesis”未在此范围内声明 make: * [src/NavFocus.o] 错误 1

​​ 构建完成 **

I am trying to use ImageMagick 6.7.3 with a C++ project in eclipse on my mac air running osx lion. I have been fighting with it for a few days googling and researching I can't seem to get the linker to find the files no matter what I try. Here is my linker log from eclipse does anyone have any idea why this isnt working?

I have populated the library search path and the include path settings in properties -> c/c++ build -> settings menus with the paths to the ImageMagick installation. Any help would be greatly appreciated!!!

Build of configuration Debug for project ImportingLibrary **

make all
Building target: ImportingLibrary
Invoking: MacOS X C++ Linker
g++ -L/Users/jon/Programs/ImageMagick-6.7.3/lib -o "ImportingLibrary" ./src/ChoicePath.o ./src/ImageCreation.o ./src/NavFocus.o ./src/RouteInputAnalyzer.o
Undefined symbols for architecture x86_64:
"_MagickWandGenesis", referenced from:
_main in NavFocus.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: * [ImportingLibrary] Error 1

Build Finished **

Build of configuration Release for project ImportingLibrary **

make all
Building file: ../src/NavFocus.cpp
Invoking: GCC C++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/NavFocus.d" -MT"src/NavFocus.d" -o "src/NavFocus.o" "../src/NavFocus.cpp"
../src/NavFocus.cpp:13:29: warning: wand/MagickWand.h: No such file or directory
../src/NavFocus.cpp: In function 'int main()':
../src/NavFocus.cpp:19: error: 'MagickWandGenesis' was not declared in this scope
make: * [src/NavFocus.o] Error 1

Build Finished **

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文