-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Ch3 and Ch4 PlotTrajectory Compiling Error and Solution [bug fix] #76
Comments
Duplicated issue #24 . Update: The problem mentioned in issue #39 can be solved by changing the file path from |
I suspect that this bug only happens on Ubuntu 16 system which has a lower version of gcc compiler. The default gcc version used in Ubuntu 16 and Ubuntu 18 OS are 5.4.0 and 7.4.0, respectively. According to the release note of gcc 6.0 version, By the way, it is also better to add the following code at the beginning of the CMakeLists.txt file in the ch3/example folder.
|
To summarize, in Chapter 3 and Chapter 4, if running on Ubuntu 16 OS, the C++ 11 support is also required. Adding the following line to the CMakeLists can solve the problem.
In addition, in Chapter 3, the path to the trajectory file needs to be changed, as mentioned above. In Chapter 4, there are two solutions for the linking problem on sophus header files.
and you will see that the header files are copies to one of the search path in Linux system
|
According to https://www.cnblogs.com/MT-ComputerVision/p/6349872.html
The CMakeLists.txt file in Chapter 3 and Chapter 4 can add C++ 11 support as the following:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
Previously, the compiling error is the following:
and
The text was updated successfully, but these errors were encountered: