Myzhar / Lepton3_Jetson

Library and examples to connect the FLIR Lepton3 thermal camera to Nvidia Jetson embedded boards
MIT License
52 stars 15 forks source link

Make error #16

Closed jj-Anikan closed 1 year ago

jj-Anikan commented 1 year ago

After cmake was completed and ran make, this error appeared:

/home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp:20:13: error: ‘bool close’ redeclared as different kind of entity 20 | static bool close = false; | ^~~~~ In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24, from /usr/include/signal.h:328, from /home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp:3: /usr/include/unistd.h:358:12: note: previous declaration ‘int close(int)’ 358 | extern int close (int __fd); | ^~~~~ /home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp: In function ‘int main(int, char)’: /home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp:107:22: error: assignment of function ‘int close(int)’ 107 | close=true; | ~^~~~~ /home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp: In function ‘void close_handler(int)’: /home/jacobmayhew27/Documents/ECE_3509/Lepton3_Jetson/opencv_demo/opencv_demo.cpp:133:15: error: assignment of function ‘int close(int)’ 133 | close = true; | ~~^~ make[2]: ** [opencv_demo/CMakeFiles/opencv_demo.dir/build.make:76: opencv_demo/CMakeFiles/opencv_demo.dir/opencv_demo.cpp.o] Error 1 make[1]: [CMakeFiles/Makefile2:204: opencv_demo/CMakeFiles/opencv_demo.dir/all] Error 2 make: *** [Makefile:91: all] Error 2

jj-Anikan commented 1 year ago

Code written used a variable named 'close' with another file already using that name. Variable name changed to closeAgain and make compiled