Skip to content

Error during make #4

Description

@bigdoods

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:

  • openmpi-bin
  • openmpi-common
  • openssh-client
  • openssh-server

The steps I take are as follows:

  1. Install dependencies
  2. Download sample file birdfountain_station1_xyz_intensity_rgb.7z and unziphere
  3. Update main.cpp line 117 to reflect absolute location of downloaded sample
  4. Update main.cpp line 118 to update the results destination
  5. run cmake at folder root
  6. run make at folder root

This produces the following error:

[ 25%] Building CXX object src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o
/home/bigdoods/projects/3DLineDetection/src/main.cpp:115:11: error: ‘::main’ must return ‘int’
 void main() 
           ^
src/CMakeFiles/LineFromPointCloud.dir/build.make:110: recipe for target 'src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o' failed
make[2]: *** [src/CMakeFiles/LineFromPointCloud.dir/main.cpp.o] 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

Could you please advise how to get working please?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions