homebrew有任何选项来构建带有调试符号的包吗?我用QT库开发了一个应用程序,希望能够从IDE中快速访问它的源代码。
我的QT安装步骤:
brew install qt
brew link --force qt
QT_V=`brew info --json=v1 qt | jsawk -n 'out(this.installed[0].version)'` \
ln -sf /usr/local/Cellar/qt5/${QT_V}/mkspecs /usr/local/mkspecs && \
ln -sf /usr/local/Cellar/qt5/${QT_V}/plugins /usr/local/plugins发布于 2017-07-24 10:34:05
自制啤酒没有这么普遍的选择。运行brew info <formula>以获取给定公式可用的选项。
在qt的情况下,没有--debug选项:
$ brew info qt
...
==> Options
--with-docs
Build documentation
--with-examples
Build examples
--with-mysql
Build with mysql support
--with-postgresql
Build with postgresql support
--with-qtwebkit
Build with QtWebkit module
--HEAD
Install HEAD version附带注意:使用brew --prefix <formula>获取公式的已安装前缀。如果链接的话,您将得到一个版本无关的前缀:
$ brew --prefix qt
/home/baptiste/.linuxbrew/opt/qt这可以跨公式升级,因为Homebrew负责更新符号链接。
https://stackoverflow.com/questions/45274051
复制相似问题