Problems in linking PCL and OpenNI - visual-studio-2010

I have installed OpenNI 1.5.2.23 and PCL 1.6. I tried to run the openni_grabber.cpp example and I got the following error:
Unhandled exception at 0x7534c41f in openni_grabber.exe: Microsoft C++ exception: openni_wrapper::OpenNIException at memory location 0x0042f3fc..
and it indicates a green arrow on line:
pcl::Grabber* interface = new pcl::OpenNIGrabber();
What could be the problem?
my OpenNI Viewer is working from openni samples.

Related

dll file missing when debugging for android in Qt

I have installed Qt for Windows 10 (64 bit) from here (the qt-opensource-windows-x86-5.10.1.exe). The problem is when I create a "QT Quick Application - Empty" and run it using the Android kit (Android for armeabi-v7a (GCC 4.9, Qt 5.10.1 for Android armv7)) I get this window:
In english it says: "mkdir.exe - system error. Code execution could not be continued because the file cygintl-2.dll was not found. Re-installing the app may resolve the problem".
When I click OK I get the message "error: [install_target] Error 53" on the issues panel of qt creator.
This is the Compile Output:
Starting: "C:\Qt\Qt5.10.1\Tools\mingw530_32\bin\mingw32-make.exe" "INSTALL_ROOT=C:/Users/Thanasis/Documents/qt/build-map-Android_for_armeabi_v7a_GCC_4_9_Qt_5_10_1_for_Android_armv7-Debug/android-build" install
3 [main] sh 7616 tty_list::allocate_tty: No tty allocated
Makefile:587: recipe for target 'install_target' failed
mingw32-make: *** [install_target] Error 53
18:40:52: The process "C:\Qt\Qt5.10.1\Tools\mingw530_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project map (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.10.1 for Android armv7))
When executing step "Copy application data"
I have searched for this dll and downloaded it from here, then copied it in the System32 folder but the same error message pops up.
The problem was finally solved. I followed this answer and installed openSSH from this link and it worked !!! :D

OpenCV installation on windows

I'm trying to install OpenCV on Windows and I followed the Installation by Using git-bash (version>=2.14.1) and cmake (version >=3.9.1) tutorial from the official OpenCV documentation but when I run the build operation I get an error.
I'm using:
Windows 10
CMake 3.9.1
Git Bash 2.17.0
TDM64 GCC compiler 5.1.0
Here's the error
In file included from C:\lib\opencv\modules\videoio\src\cap_msmf.cpp:59:0:
C:/TDM-GCC-64/x86_64-w64-mingw32/include/mfplay.h:77:50: error: 'MFP_MEDIAITEM_CHARACTERISTICS' has not been declared
STDMETHOD_(HRESULT,GetCharacteristics)(THIS_ MFP_MEDIAITEM_CHARACTERISTICS *pCharacteristics) PURE;
^
C:/TDM-GCC-64/x86_64-w64-mingw32/include/mfplay.h:79:46: error: 'IMFPMediaPlayer' has not been declared
STDMETHOD_(HRESULT,GetMediaPlayer)(THIS_ IMFPMediaPlayer **ppMediaPlayer) PURE;
Did someone encounter this kind of error?
Yes I also encountered this error (when compiling with MinGW-w64 gcc 8.1).
For you and anybody else who finds this question when this error occurs (like me), here's what solved the issue for me:
When not using Visual Studio, you have to disable some features which are not supported. Build with cmake options WITH_IPP=OFF and WITH_MSMF=OFF
Solution found on opencv answers: http://answers.opencv.org/question/192758/compile-error-when-compiling-for-windows-341-dev/

Raspberry Pi 2 with Caffe protobuf error

Has anyone successfuly launched Caffe on Raspberry Pi 2? I installed OpenCV and Caffe without errors (eventually). But when i launch my C++ code that uses OpenCV and Caffe, it throws this error:
[libprotobuf ERROR google/protobuf/descriptor_database.cc:57] File already exists in database: caffe.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1018] CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
terminate called after throwing an instance of 'google::protobuf::FatalException'
what(): CHECK failed: generated_database_->Add(encoded_file_descriptor, size):
Aborted
I tried installing a newer protobuf version, but that did not help. Some suggested that this is due to using dynamic libs, but this C++ code runs fine on other devices in GPU and CPU mode. It uses about 600MB of RAM and the R. Pi had 822MB of free RAM.
Rebuilding opencv with -D BUILD_opencv_dnn=OFF and then rebuilding caffe solved the issue. However i'm not sure if i don't use the opencv_dnn library.

No kit found: qt error

I am using qt 4.8.6 Mingw edition and using qt creator 3.x as an IDE.
When I tries to open a new project it says no kit found. And when I try to add a kit with qmake It gives me an error saying mkspec not found for qt version.
Please help, I am a newbie to qt.
Edit: I am using windows and installed qt from its setup from qt-project.io

Corlib not in sync when building Unity games with mdtool in OSX

Unity3D, a popular game engine, packages a version of mono (and monodevelop) with its install. Recently I installed Xamarin Studio, keen to play with it. Later I followed some online guides for building unity's SLN files via the command line from the sln's directory:
/Applications/Unity/MonoDevelop.app/Contents/MacOS/mdtool build -t:Build
I got this error:
Rewriting config files...
Corlib not in sync with this runtime: expected corlib version 636, found 96.
Loaded from: /Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.go-mono.com/daily.
I figured that Xamarin Studio had brought a new mono runtime with it, and that was version 636. The mdtool I was running expected verison 96, because Unity ships with an older version of mono (.net 3.5 I think?).
So I uninstalled Xamarin Studio, and re-installed Unity to hopefully overwrite the mono runtime with the old version. Still get the error.
I notice above that the mscorlib.dll is not pulled from Frameworks/Mono.framework/Versions/Current, but 2.10.2. Why is that? How can I make this build work? Any more information I can give you?

Resources