Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

命令行错误:宏定义无效: BOOST BOOST_ALL_NO_LIB-DBOOST_ALL_NO_LIB ALL NO LIB-DBOOST ALL NO LIB #40

Open
Tomta10 opened this issue Dec 3, 2024 · 3 comments
Assignees
Labels
compilation issues Problems at compile time

Comments

@Tomta10
Copy link

Tomta10 commented Dec 3, 2024

Desktop (please complete the following information):

  • Windows OS Version: [e.g. windows 11]
  • SLMaster Version: [e.g. 1.2.5]
  • OpenCV Version: [e.g. 4.5.2]
  • VTK Version: [e.g. 9.2.0]
  • PCL Version: [e.g. 1.12.1]
  • Qt Version: [e.g. 5.15.1]

Describe the compilation issue
你好。我在vs2019编译时很多文件夹出现宏定义无效: BOOST BOOST_ALL_NO_LIB-DBOOST_ALL_NO_LIB ALL NO LIB-DBOOST ALL NO LIB 的错误,生成的项目中似乎和gTest库有关的都失败了
image
另外这里是具体的错误消息,似乎是gTest库的函数无法解析:
image

@Tomta10 Tomta10 added the compilation issues Problems at compile time label Dec 3, 2024
@Tomta10
Copy link
Author

Tomta10 commented Dec 3, 2024

这个问题有些奇怪,test项目中共有一个CMake文件,但是保持cpp文件出现宏定义无效,但是另外部分文件没有该错误
image
正确的文件:
image
错误的文件:
image

@Tomta10
Copy link
Author

Tomta10 commented Dec 3, 2024

其实在CMake生成时出现了Boost错误,但是这个错误来自于boost版本(项目似乎推荐boost1.65.0,但是我的是boost1.86.0),不过我已经更改了PCL源文件,去除了boost::filesystem部分,我想我的错误应该与之无关,希望楼主能给予错误的排查建议,谢谢。
image

@Tomta10
Copy link
Author

Tomta10 commented Dec 3, 2024

错误的文件包括:
TestInterzoneSinusFourGrayscalePattern
TestShiftGrayCodePattern
TestThreeFrequencyHeterodynePattern
TestLasterLine
似乎来自于SLMaster的新功能

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation issues Problems at compile time
Projects
None yet
Development

No branches or pull requests

2 participants