-
Notifications
You must be signed in to change notification settings - Fork 169
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
Error during make #4
Comments
Hey @bigdoods, Mate, in the main.cpp file, try changing "void main()" to "int main()" on line 115, This solved the problem for me. Good luck! |
Hey. Thanks for the reply and it builds now - Thanks! However, I am confused by the output as there does not seem to be any at the write path that I have updated at My new main for reference:
Thanks |
hey, this is the bugs, I've followed your guys solution, but still cannot run successful. Scanning dependencies of target LineFromPointCloud
[ 12%] Building CXX object src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o
[ 25%] Linking CXX executable LineFromPointCloud
CMakeFiles/LineFromPointCloud.dir/main.cpp.o: In function `main':
main.cpp:(.text+0xd18): multiple definition of `main'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c.o:(.data.rel.local+0x0): multiple definition of `info_compiler'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x0): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c.o:(.data.rel.local+0x8): multiple definition of `info_platform'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x8): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c.o:(.data.rel.local+0x10): multiple definition of `info_arch'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x10): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c.o:(.data.rel.local+0x18): multiple definition of `info_language_dialect_default'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:(.data.rel.local+0x18): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdC/CMakeCCompilerId.c.o: In function `main':
CMakeCCompilerId.c:(.text+0x0): multiple definition of `main'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/feature_tests.c.o: In function `main':
feature_tests.c:(.text+0x0): multiple definition of `main'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): first defined here
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/feature_tests.cxx.o: In function `main':
feature_tests.cxx:(.text+0x0): multiple definition of `main'
CMakeFiles/LineFromPointCloud.dir/build/CMakeFiles/3.10.2/CompilerIdCXX/CMakeCXXCompilerId.cpp.o:CMakeCXXCompilerId.cpp:(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
src/CMakeFiles/LineFromPointCloud.dir/build.make:265: recipe for target 'src/LineFromPointCloud' failed
make[2]: *** [src/LineFromPointCloud] Error 1
CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/LineFromPointCloud.dir/all' failed
make[1]: *** [src/CMakeFiles/LineFromPointCloud.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2 |
test on another machine, the bug is different.
|
this was solved by update gcc to 7, but still have bugs.
|
I find this may solved in here, but I cannot solve it, anyone can help me out ? |
I've already run the code, and got the lines.txt and planes.txt, could you please let me know how to visualize them? |
Hi,
The project looks really cool so I tried to build it. I have not touched C/C++ before so excuse me but I have an error during the make process that I can't understand.
I am on ubuntu 18.04. Cmake version 3.10.2. OpenCV version 3.4.2. I installed the following packages through the ubuntu to package manager for OpenMPI dependency:
The steps I take are as follows:
This produces the following error:
Could you please advise how to get working please?
The text was updated successfully, but these errors were encountered: