project property->Linker->Input->Additional Dependencies,
remove nafxcw.lib
人,技术,生活。
project property->Linker->Input->Additional Dependencies,
remove nafxcw.lib
比如,修改/etc/network/interfaces为这样
1 2 3 4 5 6 | auto eth0 iface eth0 inet static address 192.168.1.38 gateway 192.168.1.1 netmask 255.255.255.0 dns-nameservers 192.168.1.1 |
保存再重启,发现网络还是不通,经测试,是要去掉最后一行
1 | #dns-nameservers 192.168.1.1 |
保存再重启,网络就通了。
编辑OpenCV源码目录下cmake\OpenCVDownload.cmake
找到INACTIVITY_TIMEOUT改大一百倍
找到TIMEOUT改大一百倍
再让cmake编译下载,放一晚上,第二天就成功了。
编译OpenCV时,在cmake gui里把BUILD_TBB禁掉就可以了。
把
1 | clm_parameters.validate_detections = false; |
这行去掉。
1 | xset s 0 #关闭屏幕保护 |
还有一种方法就是关掉ubuntu桌面,命令行为:
1 | /etc/init.d/lightdm stop |
不能上网也就不能apt-get,也就不能
apt-get install resolvconf
所以先修改/etc/resolv.conf,加入dns,如:
nameserver 8.8.8.8
再重启网络:
/etc/init.d/networking restart
这样就可以暂时上网了,若现在重启系统,/etc/resolv.conf会被清空的,就又不能上网了。所以现在,马上执行:
apt-get install resolvconf
完成后编辑/etc/resolvconf/resolv.conf.d/base文件,加入如:
nameserver 8.8.8.8
保存并重启系统,会看到可以永久上网了。
cmake ... -DBUILD_ZLIB=ON
./configure --build=alpha
传一个假的build类型给configure就可以了。
按照onvif协议要求,要想将用户名密码发送给球机,把gSoap源码中的如下源文件加入到工程中:
duration.c
duration.h
mecevp.c
mecevp.h
smdevp.c
smdevp.h
threads.c
threads.h
wsaapi.c
wsaapi.h
wsseapi.c
wsseapi.h
在客户端代码中,加入:
1 2 3 4 5 6 | #include "wsaapi.h" #include "wsseapi.h" ... struct soap soapCtx; ... soap_wsse_add_UsernameTokenDigest(&soapCtx, NULL, userName, passwd); |