用macports构建boost后找不到.a静态库文件,我只有dylib
Cannot find .a static library files after building boost with macports, I only have dylib
使用Xcode 7.1…
使用命令sudo port install boost +universal
构建
我的印象是,如果我想分发我的软件,每个用户都需要.dlib文件,因为dylib是一个动态库,而.a将静态链接,因此它将嵌入最终产品中。这是真的吗?如果是,如何获取.a文件?
我正在尝试使用regex和文件系统库。
有一个默认启用的MacPorts变体"no_static"。要为boost构建静态库,请使用(假设您仍然需要通用二进制)
sudo port install boost +universal -no_static
我在做后很容易就发现了这一点
port info boost
port variants boost
是的,您需要.a文件。用啤酒代替。
brew install boost --universal
相关文章:
- .cpp和.h文件中的模板专用化声明
- 为什么两个不同的未命名名称空间可以共存于一个cpp文件中
- 文本文件中的单词链表
- CMake-按正确顺序将项目与C运行时对象文件链接
- 使用新行和不使用新行读取文件
- 在C++程序中输入的文本文件将不起作用,除非文本被复制和粘贴
- 挂起和取消挂起一个文件DLL
- 如何确定我已使用非编码文件到达 EOF?
- 命名空间中具有.h和.cpp文件的类
- 如何使用ndk-build.cmd构建Android.so文件
- 从包含m行的文件中提取n行,必要时(惰性地)重复该文件
- 读取文件并输入到矢量中
- 在C++中查找文件
- glew和glfw .dylib文件缺少Mac
- 使用 CMake 为 iOS 编译 dylib 文件
- 无法从OSX dylib显示OSX Finder选择文件对话框(QFileDialog::getOpenFileName
- 用macports构建boost后找不到.a静态库文件,我只有dylib
- 如何找出哪个.dylib文件包含某个boost功能?
- 我的.dylib文件在Mac OS X上
- 如何在OSX上制作/制作正确链接到libassimp dylib的CGAL二进制文件?