EMGUCV / C#程序在Intel i86 + visual studio组合上开发,移植到raspberry pi(linux + arm) [英] EMGUCV /C# program developed on Intel i86+visual studio combination to be ported to raspberry pi (linux+arm)

查看:141
本文介绍了EMGUCV / C#程序在Intel i86 + visual studio组合上开发,移植到raspberry pi(linux + arm)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have a video processing program that I have built on EMGUCV and C# using Visual Studio and an Intel i86 desktop environment. This has been made to work in an Ubuntu 1404 environment with Intel i86 processors, using Mono. 
Now, the new challenge is that this has to be ported to the Raspberry Pi. 
On the Pi, I tried Exagear with Ubuntu 1404 - then Mono, the build runs, but it does not function completely. 
The route followed by me is thus:
•	1.sudo apt-get install git
2.git clone git://git.code.sf.net/p/emgucv/code emgucv
3.cd emgucv
4.git checkout 2.4.9
5.git submodule update --init --recursive
6.sudo apt-get install build-essential monodevelop mono-mcs libtiff5-dev libgeotiff-dev libgtk2.0-dev libgstreamer0.10-dev libavcodec-dev libswscale-dev libavformat-dev libopenexr-dev libjasper-dev libdc1394-22-dev libv4l-dev libqt4-opengl-dev libeigen3-dev libtbb-dev cmake-curses-gui git
7.	cmake -DBUILD_TESTS:BOOL=FALSE -DBUILD_DOCS:BOOL=FALSE -DWITH_TBB:BOOL=TRUE -DWITH_CUDA:BOOL=FALSE -DWITH_OPENCL:BOOL=FALSE
8.make
9.cd bin
10.export LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH
11.	Install, using Synaptic Package manager, remaining GSTREAMER packages.
12.	Install Exagear.
13.	Install Ubuntu 1404 LTS on Exagear on the Raspberry Pi.
14.	Install Mono, Run the build using Mono.
Result is that the GUI opens up, but the program does not respond so as to be functional. The program has to process video. The same code build works on Ubuntu 1404 (i86 Intel).
Debugging directly on the Pi, using Monodevelop - have tried a lot but many dependencies are not being fulfilled. Many errors arise there, which are tough to debug.
Windows IOT on the Pi, is NOT AN OPTION. 
Since Visual studio and Monodevelop (Xamarin studio) are available on Windows, I was thinking of trying this route for debugging - 
Debugging the code and making the Footfall build with VS on Windows -> debug with Mono on Windows -> debug on Mono on Ubuntu-> debug the resultant code on Monodevelop on Odroid XU4 (ARM processor) -> Finally, debug and compile on Mono on Raspberry Pi Raspbian (ARM)
The above path is logical since we are taking one step at a time a. We are either changing the IDE OR b. The architecture - from i86 to ARM7 OR c. The environment - from Windows to Ubuntu to Raspbian.
What is the recommendation? 





我的尝试:



如上所述。





What I have tried:

Given above.

Note that 1. We have enough code made on C#, that making it ab initio in C/C++ will take a lot of time and effort and money. Running C# into the Raspberry Pi with EMGUCV is our best option.

推荐答案

LD_LIBRARY_PATH
11.使用Synaptic包管理器安装,剩下的GSTREAMER套餐。
12.安装Exagear。
13.在Raspberry Pi上的Exagear上安装Ubuntu 1404 LTS。
14.安装Mono,使用Mono运行构建。
结果是GUI打开,但程序没有响应以便起作用。该计划必须处理视频。相同的代码构建适用于Ubuntu 1404(i86 Intel)。
使用Monodevelop直接在Pi上进行调试 - 尝试了很多但很多依赖项都没有实现。那里出现了许多错误,这些错误很难调试。
Pi上的Windows IOT,不是一个选项。
由于Visual Studio和Monodevelop(Xamarin工作室)在Windows上可用,我正在考虑尝试这条路线进行调试 -
调试代码并在Windows上使用VS构建Footfall - >在Windows上使用Mono进行调试 - >在Ubuntu上调试Mono->在Odroid XU4(ARM处理器)上的Monodevelop上调试结果代码 - >最后,在Raspberry Pi Raspbian(ARM)上的Mono上进行调试和编译
上面的路径是合乎逻辑的,因为我们一次只迈出一步。我们要么改变IDE OR b。架构 - 从i86到ARM7或c。环境 - 从Windows到Ubuntu到Raspbian。
有什么建议?
LD_LIBRARY_PATH 11. Install, using Synaptic Package manager, remaining GSTREAMER packages. 12. Install Exagear. 13. Install Ubuntu 1404 LTS on Exagear on the Raspberry Pi. 14. Install Mono, Run the build using Mono. Result is that the GUI opens up, but the program does not respond so as to be functional. The program has to process video. The same code build works on Ubuntu 1404 (i86 Intel). Debugging directly on the Pi, using Monodevelop - have tried a lot but many dependencies are not being fulfilled. Many errors arise there, which are tough to debug. Windows IOT on the Pi, is NOT AN OPTION. Since Visual studio and Monodevelop (Xamarin studio) are available on Windows, I was thinking of trying this route for debugging - Debugging the code and making the Footfall build with VS on Windows -> debug with Mono on Windows -> debug on Mono on Ubuntu-> debug the resultant code on Monodevelop on Odroid XU4 (ARM processor) -> Finally, debug and compile on Mono on Raspberry Pi Raspbian (ARM) The above path is logical since we are taking one step at a time a. We are either changing the IDE OR b. The architecture - from i86 to ARM7 OR c. The environment - from Windows to Ubuntu to Raspbian. What is the recommendation?





我的尝试:



如上所述。





What I have tried:

Given above.

Note that 1. We have enough code made on C#, that making it ab initio in C/C++ will take a lot of time and effort and money. Running C# into the Raspberry Pi with EMGUCV is our best option.


这篇关于EMGUCV / C#程序在Intel i86 + visual studio组合上开发,移植到raspberry pi(linux + arm)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆