Ubuntu 14.04 Install error

Ask questions for installation
bChamps
Posts: 3
Joined: Fri Jul 24, 2015 2:58 pm

Ubuntu 14.04 Install error

Postby bChamps » Fri Sep 11, 2015 12:59 pm

Hi
I am new to Linux and I am try to install EMGU on Ubuntu 14.04. I have followed all of the steps and when I get to generating the cmake file I get the following error:

Code: Select all

benjamin@benjamin-P15SM-A-SM1-A:~/emgucv$ cmake -DBUILD_NEW_PYTHON_SUPPORT:BOOL=FALSE -DEMGU_CV_EXAMPLE_BUILD:BOOL=FALSE -DBUILD_TESTS:BOOL=FALSE -DBUILD_DOCS:BOOL=FALSE .
-- Found gacutil: /usr/bin/gacutil
-- Found al: /usr/bin/al
-- Found resgen: /usr/bin/resgen
CMake Error at cmake/modules/FindCSharp.cmake:133 (MESSAGE):
  Could not find one or more of the

  following programs: csc, gacutil, al, resgen
Call Stack (most recent call first):
  CMakeLists.txt:26 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/home/benjamin/emgucv/CMakeFiles/CMakeOutput.log".


I have seen that the solution is to do:
sudo apt-get install mono-gmcs
and
sudo apt-get install mono-mcs

But when I try to install mono-gmcs I get the following error:

Code: Select all

benjamin@benjamin-P15SM-A-SM1-A:~/emgucv$ sudo apt-get install mono-gmcs
[sudo] password for benjamin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mono-gmcs : Depends: mono-mcs (= 3.12.1-0xamarin1) but 4.0.4.1-0xamarin1 is to be installed
E: Unable to correct problems, you have held broken packages.


I have tried redoing all of the steps in EMGU again and I am still getting the same errors. I have also tried reinstalling all of the mono packages, still with no luck.

Any help would be appreciated.

MahmoudYounes
Posts: 2
Joined: Tue Aug 02, 2016 8:18 am

Re: Ubuntu 14.04 Install error

Postby MahmoudYounes » Tue Aug 02, 2016 8:21 am

I am stuck at the same problem, have you found any solution? kindly, post it if you have. thanks

MahmoudYounes
Posts: 2
Joined: Tue Aug 02, 2016 8:18 am

Re: Ubuntu 14.04 Install error

Postby MahmoudYounes » Tue Aug 02, 2016 8:36 am

here is a solution :)

some basic definitions:
-mono-mcs => mono-microsoft c sharp
-mcs => the c sharp compiler.
-mono-gmcs => mcs compiler to generate files for .NET 2.0
-mono-dmcs => mcs compiler to generate files for .NET 4.0

recently xarmin deprecated the mono-*mcs and unified them to only one compiler. looks like emgucv did not care for that :lol: . so this is the problem: emgucv wants to use mono-gmcs, but you only have mcs, so you need to tell the cmake file to use it instead of gmcs. how to do that?

-navigate to the CMakeLists.txt location (inside emgu directory where you downloaded it).
-type the following

Code: Select all

ccmake -G .

this will open sort of editor to the cmake file and allows you to change them
-navigate to the line that states which csharp compiler to use (probably you will find the configuration value is set to csc_not_detected or something like that.
-add the path to mcs here (press enter then add the path to your mcs)

note: you can get this path by using this command

Code: Select all

which mcs


Return to “Installation Help”

Who is online

Users browsing this forum: No registered users and 1 guest