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

Error building project #29

Open
MjBordalo opened this issue Oct 30, 2017 · 1 comment
Open

Error building project #29

MjBordalo opened this issue Oct 30, 2017 · 1 comment

Comments

@MjBordalo
Copy link

MjBordalo commented Oct 30, 2017

Hello i was unable to build the projcect when doing make.

The error was the following:

[ 61%] Building CXX object CMakeFiles/simple_vehicle_counting.dir/package_tracking/cvblob/cvlabel.cpp.o
In file included from /home/pi/CV/simple_vehicle_counting/package_tracking/cvblob/cvlabel.cpp:30:0:
/home/pi/CV/simple_vehicle_counting/package_tracking/cvblob/cvblob.h:433:4: warning: extra ‘;’ [-Wpedantic]
   };
    ^
/home/pi/CV/simple_vehicle_counting/package_tracking/cvblob/cvlabel.cpp:38:3: error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]
   };
   ^
/home/pi/CV/simple_vehicle_counting/package_tracking/cvblob/cvlabel.cpp:38:3: error: narrowing conversion of ‘-1’ from ‘int’ to ‘char’ inside { } [-Wnarrowing
@Kartik2107
Copy link

change the following in the file "simple_vehicle_counting/package_tracking/cvblob/cvlabel.cpp":
"const char" to "const signed char"
in both the lines 34 and 40.

do "make" again in "simple_vehicle_counting/build/". It worked for me.

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