如何安装适用于Mingw Linux编译环境的BerkeleyDB
How to install BerkeleyDB for Mingw Linux compile environment
我正试图使用Mingw在Linux上交叉编译应用程序,但遇到以下错误消息:
db.h:14:20: fatal error: db_cxx.h: No such file or directory
据我所知,这是由于Berkeley DB包含文件没有出现在Mingw包含树下造成的。
我的问题是:如何获取Berkeley DB源文件并将其安装在Mingw-include文件树下?
(我知道这是一个老问题,但人们可能仍在寻找解决方案)
运行Debian 7.6(喘息)时,我用命令dpkg -S /usr/include/db_cxx.h
检查了文件/usr/include/db_cxx.h
这给出了以下回应:
libdb5.1++-dev: /usr/include/db_cxx.h
然后问题中的错误消息可以通过以下方式修复:
sudo apt-get install libdb5.1++-dev
为了用mingw 4.9.2 32位构建db-4.8.30.NC,请尝试以下操作:
../dist/configure --disable-replication --enable-mingw --enable-cxx --prefix=/mingw
make
make install
相关文章:
- 在VS代码中交叉编译Windows与Linux上的MinGW的SDL程序
- 如何在linux终端中同时编译和运行c++代码
- 在Linux for Windows上编译C++代码时出错
- 如何在 Mac 上正确编译C++,当它在 Linux 上编译没有问题时?
- 编译在我的 Mac 上工作,但在集群 (Linux) 上不起作用
- 在Linux上使用Clang / OLLVM交叉编译helloworld Windows可执行文件时的问题
- 在 Linux 中使用 -fvisibility=hidden 编译时出现库加载错误
- Steam 回调在 Linux / GCC 编译期间触发警告
- SFML 交叉编译 for Windows on Linux.
- 编译问题与 Ubuntu Linux
- 在Linux上交叉编译Windows应用程序时如何链接到Winsock?
- 在 Linux 上编译 - 在函数 '_start' 中:(.text+0x20):对 'main' 的未定义引用
- 在Linux/Ubuntu中编译openCV应用程序时,如何解决未定义的引用cv:..?
- Stringstream编译错误仅发生在linux环境中
- C++ 当我使用 iostream 时无法编译(Linux,CodeBlocks)
- 在Windows?上编译Linux OpenGL应用程序
- 在OS X上编译Linux应用程序 - 未找到标准库(CMATH)
- 交叉编译 linux-->windows:使用 opengl32 获得更新的 OpenGL 支持.dll
- 将未定义的引用交叉编译linux到windows
- 在没有运行库的情况下编译Linux下的c++