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

about a cmake error #335

Open
wangquandashabi opened this issue Apr 22, 2024 · 6 comments
Open

about a cmake error #335

wangquandashabi opened this issue Apr 22, 2024 · 6 comments

Comments

@wangquandashabi
Copy link

while doing the step which run“$cmake ..”,it reported me that
“CMake Error at CMakeLists.txt:29 (if):
if given arguments:

"Boost_VERSION_STRING" "VERSION_GREATER_EQUAL" "1.75"

Unknown arguments specified


the current boost version on my computer is 1.85,how can i deal with this cmake error?

@wangquandashabi
Copy link
Author

the code ""Boost_VERSION_STRING" "VERSION_GREATER_EQUAL" "1.75"" is on Cmakelist.txt between line 29-31

@riebl
Copy link
Owner

riebl commented Apr 22, 2024

Which version of CMake are you using?

@wangquandashabi
Copy link
Author

The cmake version I am using is 3.5.1,is there something matter with it?

@riebl
Copy link
Owner

riebl commented Apr 24, 2024

It turns out that "VERSION_GREATER_EQUAL" was introduced with CMake 3.7, so please update your CMake version. I will update the minimum required version in Artery's CMakeLists.txt accordingly.

By the way, CMake 3.5 is extremely old. Even Debian Buster (oldoldstable today) ships with CMake 3.13.

@wangquandashabi
Copy link
Author

thanks for your answer!but after the step"$cmake .."completed successfully,an error occured on the next step
"$cmake --build . ".
It is reported that:
"/home/wangquan/artery/extern/vanetza/vanetza/access/g5_link_layer.cpp:32:45: error:
default initialization of an object of const type 'const
ieee802::dot11::QosControl' without a user-provided default constructor
static const ieee802::dot11::QosControl default_qos_control;
^
{}
1 error generated.
"
how can I deal with it? the current Cmake version has updated to 3.29.2
you can also know about the error report by view the picture.
e9847b941c72efb0c999899c3a5dafe

@riebl
Copy link
Owner

riebl commented Apr 24, 2024

Are you using an ancient Linux distribution? Looks like your C++ compiler is also not up-to-date, I suspect something like GCC 4.8 which has only incomplete C++11 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants