codelast / raspberry-pi Goto Github PK
View Code? Open in Web Editor NEWRaspberry Pi related code
Raspberry Pi related code
hi你好,我在执行 ./capture-image-from-camera-using-opencv.sh这个脚本的时候报错:
Compiling /home/pi/workspace/camera/raspberry-pi/webcam/image-capture/opencv/webcam.c ...
In file included from /usr/include/opencv2/opencv.hpp:59:0,
from /home/pi/workspace/camera/raspberry-pi/webcam/image-capture/opencv/webcam.c:3:
/usr/include/opencv2/contrib/contrib.hpp:56:1: error: ‘use’ does not name a type
In file included from /usr/include/opencv2/opencv.hpp:59:0,
from /home/pi/workspace/camera/raspberry-pi/webcam/image-capture/opencv/webcam.c:3:
/usr/include/opencv2/contrib/contrib.hpp:276:39: error: ‘vector’ does not name a type
/usr/include/opencv2/contrib/contrib.hpp:276:45: error: expected ‘,’ or ‘...’ before ‘<’ token
/usr/include/opencv2/contrib/contrib.hpp: In member function ‘const Point3f& cv::SpinImageModel::getSpinVertex(size_t) const’:
/usr/include/opencv2/contrib/contrib.hpp:347:72: error: ‘const class cv::Mesh3D’ has no member named ‘vtx’
请问这个是什么问题呢
我的树莓派版本是B+,sudo apt-get install libopencv-dev python-opencv使用这种方式安装的opencv
Could you please tell me how to correct such problems,thanks.
subproject: timer-sense-light
When Mongoose web server embedded in the timer-sense-light started in a thread, it crashed immediately.
It seems that it's because of specifying the web-root for mongoose web server caused the problem, but don't konw why.
[root@alarmpi deploy]# gdb timer_sense_light core.4929
GNU gdb (GDB) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv6l-unknown-linux-gnueabihf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from timer_sense_light...done.
warning: core file may not match specified executable file.
[New LWP 4930]
[New LWP 4929]
[New LWP 4931]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/root/raspberry-pi/gpio/timer-sense-light/deploy/timer_sense_light /root/raspbe'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0001f634 in mg_mgr_poll (mgr=0xb6b5ce00, milli=1000) at src/3rd/mongoose.c:2857
2857 tmp = nc->next;
Current thread is 1 (Thread 0xb6b5d450 (LWP 4930)) bt
#0 0x0001f634 in mg_mgr_poll (mgr=0xb6b5ce00, milli=1000) at src/3rd/mongoose.c:2857
#1 0x00012f40 in threadWebHandler () at ./include/thread_web_handler.h:86
#2 0xb6f0d00c in start_thread () from /usr/lib/libpthread.so.0
#3 0xb6c2d718 in ?? () from /usr/lib/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit
turn on the core dump for Arch Linux ARM
ulimit -c unlimited
sysctl -w kernel.core_pattern=core
modify Makefile to include debugging info in the binary executable program
DEBUG = YES
compile & run the program
make && make install
cd deploy/bin && ./run-timer-sense-light.sh
You'll find that a core.xxx(e.g. core.4929) file generated under the same dir as the timer-sense-light executable program.
run GDB
gdb timer_sense_light core.xxx
set args /root/raspberry-pi/gpio/timer-sense-light/deploy/conf/main.conf /root/raspberry-pi/gpio/timer-sense-light/deploy/conf/time-range.txt
b mongoose.c:2855
r
n
subproject: timer-sense-light
It seems that it's because of glog conflicts with the latest Mongoose.
./include/3rd/mongoose.h:310:0: warning: "LOG" redefined
#define LOG(l, x)
^
In file included from ./src/timer_sense_light.cpp:2:0:
/usr/include/glog/logging.h:483:0: note: this is the location of the previous definition
#define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity.stream()
^
你好,我在学习timer sense light项目,在接线图里面 input 与output 里面关于接地的黑线都接在树莓派的同一个位置,请问这块怎么处理呢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.