opencv with qt cross-compilation on visualgdb for visual studio 2012

asked 2014-06-13 08:42:27 -0600

ziegler2 gravatar image

Hello, I set up a new qt-cross-compilation project with raspberry pi and get this error when I build it:

error MSB3073: Der Befehl ""C:\Program Files (x86)\Sysprogs\VisualGDB\VisualGDB.exe" /build "C:\Users\Philipp_Laptop\VISUALGBD\qtcross\qtcross\qtcross.vcxproj" "/solution:C:\Users\Philipp_Laptop\VISUALGBD\qtcross\qtcross.sln" "/config:Debug" "/platform:Win32"" wurde mit dem Code 1 beendet.

It shows me this line in Microsoft.MakeFile.Targets:

"<exec command="$(NMakeBuildCommandLine)" condition="'$(NMakeBuildCommandLine)'!=''"/>"

Can you explain the error to me. Is it because of the user-rights of windows?

My second question: I want to add the opencv-Library to my cross-compilation Project. I follow the steps of wiring pi.

  1. Synchronize the sysroot

  2. copy the path of the library-directory: C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot\usr\local\include

3.adding 'wiringPi' and 'pthread' to the names

4.test and debug it

but I want to add opencv-Library to the qt-cross-compilation Project I open the project properties and see the picture attached

image description

Where I have to add the path library for opencv? where the names?

After synchronize the sysroot there are "opencv" and "opencv2" when I follow this path:

C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot\usr\include\opencv --> headers --> for example "highgui" or "cvaux"

C:\SysGCC\raspberry\arm-linux-gnueabihf\sysroot\usr\include\opencv2 --> subfolders with: --> "highgui" or "objdetect"

Is there a possibility to add the path of "opencv" and "opencv2" to the qt-cross-compilation Project?

edit retag flag offensive close merge delete