问题是这样的,最近在开发一款激光雷达,厂家提供了SDK开发包“IbeoSDKX.X.X”,按照厂家给的编译要求,在VS工程中可以编译生成相应的库文件,用于开发。
即直接打开ibeosdk_VS2010.sln工程文件,build一下,就可以生成库文件。但是由于这个开发包依赖于Boost库,所以在Build之前,需要在ibeosdk_VS2010.sln这个工程中设置Boost库版本信息和路径设置。具体如下:
- set your boost version and the path to it: 设置boost版本
--> Open the Property Manager (see VS menu bar: View/Property Manager).
--> unfold the ibeosdk item
--> unfold the Debug | Win32 item
--> open BoostX86SettingPropertySheet by double click
--> Common Properties
--> User Macros (用户宏)
--> Set the four environment variables so that the compiler and linker will find the include files and libraries:
BoostVersionInLibname: The version number of boost used in the library names, e.g. 1_52
BoostVersionInPath: The version number of boost used in the directory path, e.g. 1_52_0
BoostDir: The place where to find the include files, e.g. C:\boost\$(BoostVersionInPath)
BoostLibDir: The directory where to find the libraries to link with, e.g. C:\boost\lib\x86\$(BoostVersionInPath)
Build之后,可以生成库文件和可执行文件。
现在想在Windows下的Qt Creator中进行开发,Qt编译器为Mingw,由于SDK中已经提供了Makefile文件,按照编译说明(Linux),只说明了要make一下,就可以编译生成库文件,但是在gcc编译器中编译之后并没有生成库文件。
由于在VS2010中编译库文件需要设置Boost库的版本信息和路径信息,我在想是不是在用Mingw编译的时候也需要设置Boost库的版本信息和路径信息,如果是,那应该怎么设置呢?在Mingw编译器中