简体   繁体   English

在Mac OS X上构建SuperTuxKart(无法创建符号链接'lib / libpng.pc':无此类文件或目录)

[英]Build SuperTuxKart on Mac OS X(failed to create symbolic link 'lib/libpng.pc': No such file or directory)

I'm trying to build a open source game called SuperTuxKart on Mac OS X 10.10, following the official instruction here . 按照此处的官方说明,我正在尝试在Mac OS X 10.10上构建一个名为SuperTuxKart的开源游戏。

However, when I typed "cmake .. -DUSE_CPP2011=1" or "cmake .. -GXcode", I got error message: 但是,当我键入“ cmake .. -DUSE_CPP2011 = 1”或“ cmake .. -GXcode”时,出现错误消息:
failed to create symbolic link 'lib/libpng.pc': No such file or directory failed to create symbolic link 'lib/libpng-config': No such file or directory . failed to create symbolic link 'lib/libpng.pc': No such file or directory failed to create symbolic link 'lib/libpng-config': No such file or directory

It seems the package has "lib/libpng/libpng.p" and "lib/libpng/libpng.pc" in "cmake_build" directory but not 'lib/libpng.pc' and 'lib/libpng-config'. 看来该软件包在“ cmake_build”目录中具有“ lib / libpng / libpng.p”和“ lib / libpng / libpng.pc”,但没有“ lib / libpng.pc”和“ lib / libpng-config”。

Is it the reason? 是这个原因吗? Is the problem caused by the some bugs in the cmake script provided by the package or cause by that I didn't install libpng properly? 问题是由软件包提供的cmake脚本中的某些错误引起的还是由我没有正确安装libpng引起的? How to fix it? 如何解决?

CMAKE_LIBRARY_PATH This is used when searching for libraries eg using the FIND_LIBRARY() command. CMAKE_LIBRARY_PATH在搜索库(例如,使用FIND_LIBRARY()命令)时使用。 If you have libraries in non-standard locations, it may be useful to set this variable to this directory (eg /sw/lib on Mac OS X). 如果您的库位于非标准位置,则将此变量设置为该目录(例如Mac OS X上的/ sw / lib)可能会很有用。 If you need several directories, separate them by the platform specific separators (eg ":" on UNIX) 如果需要多个目录,请使用特定于平台的分隔符将它们分开(例如,在UNIX上为“:”)

cmake -DCMAKE_LIBRARY_PATH="your path" ... cmake -DCMAKE_LIBRARY_PATH =“您的路径”​​ ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM