andrewmcdan / open-hardware-monitor

Automatically exported from code.google.com/p/open-hardware-monitor
0 stars 0 forks source link

Add compiling/building documentation for Windows and Linux #248

Closed GoogleCodeExporter closed 3 years ago

GoogleCodeExporter commented 9 years ago
What is the expected output? What do you see instead?
some kind of more elaborate documentation about compiling openhardwaremonitor 
on linux, which version of mono is required, how to compile it and so on.

What version of the product are you using? On what operating system?
latest from svn, Ubuntu 11.04 x86

Please provide any additional information below.

Please attach a Report created with "File / Save Report...".

Original issue reported on code.google.com by olof_n...@zoho.com on 27 Jun 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Compiling on Linux is pretty easy. You will need a complete mono installation 
with mono-winforms and monodevelop (usually you can use the packages from your 
distro). Then you should be able to open the solution file from the SVN in 
monodevelop and hit the build button. Then the library and exe should be built 
completely. The versions are not very critical, the packages from the current 
stable Debian version should be ok for example. I will add a detailed build 
guide for Windows (Visual Studio or MonoDevelop) and Linux on the project site.

Original comment by moel.mich on 27 Jun 2011 at 10:25

GoogleCodeExporter commented 9 years ago
wonderful!
really fast reply btw. impressing!

Original comment by olof_n...@zoho.com on 29 Jun 2011 at 12:38

GoogleCodeExporter commented 9 years ago
A build guide would be much appreciated, I've been looking for something to get 
me started.

Original comment by morgan...@gmail.com on 30 Jun 2011 at 11:42

GoogleCodeExporter commented 9 years ago
I have installed mono but to no avail. When I hit build it build Windows .exe 
and .dll files? How can I build a linux elf and lib file?

Original comment by chi...@gmail.com on 6 Mar 2013 at 6:14

GoogleCodeExporter commented 9 years ago
The .exe and .dll files are .NET/Mono binaries and have nothing in common with 
native Windows binaries (except for the name). You can run them on Linux (or 
Windows) with "mono OpenHardwareMonitor.exe".

Original comment by moel.mich on 6 Mar 2013 at 6:18

GoogleCodeExporter commented 9 years ago
It gives me error: System.IO.DirectoryNotFoundException: Directory 
'/sys/class/hwmon' not found. It this a kernel driver?

Original comment by chi...@gmail.com on 6 Mar 2013 at 6:24

GoogleCodeExporter commented 9 years ago
That is the sysfs (http://en.wikipedia.org/wiki/Sysfs) of the hwmon/lm-sensors 
(http://www.lm-sensors.org/) kernel driver. I guess I (wrongly) assumed that 
this directory always exists. I guess this should be fixed in the OHM source. 
As a workaround you can install/load one of the lm-sensors drivers. On Linux 
the OHM tries to read many of the values from lm-sensors (if present).

Original comment by moel.mich on 6 Mar 2013 at 6:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
ok, program compiled with MonoDevelop.
I can't got cpus temp.

There is only one open issue:

Error loading UIA bridge (UiaDbusBridge, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=f4ceacb585d99812): System.IO.FileNotFoundException: Could not 
load file or assembly 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=f4ceacb585d99812' or one of its dependencies. The system cannot 
find the file specified.
File name: 'UiaDbusBridge, Version=1.0.0.0, Culture=neutral, 
PublicKeyToken=f4ceacb585d99812'
  at System.AppDomain.Load (System.String assemblyString, System.Security.Policy.Evidence assemblySecurity, Boolean refonly) [0x00000] in <filename unknown>:0 
  at System.AppDomain.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.AppDomain:Load (string)
  at System.Reflection.Assembly.Load (System.String assemblyString) [0x00000] in <filename unknown>:0 
  at System.Windows.Automation.Provider.BridgeManager.GetAutomationBridge (System.String bridgeAssemblyName) [0x00000] in <filename unknown>:0 

in my system there are:
$ dpkg -l | grep uia
ii  libmono-uia-atkbridge1.0-cil                                2.1-2           
                          amd64        Bridge between UIA providers and ATK
ii  libmono-uia-cil-dev                                         2.1-4           
                          all          Implementations of members and 
interfaces based on MS UIA API
ii  libmono-uia-winforms1.0-cil                                 2.1-2           
                          all          Implementation of UIA providers
ii  libmono-uia3.0-cil                                          2.1-4           
                          all          Implementations of members and 
interfaces based on MS UIA API

It appear when i launch recompiled binary, it work, from gui the cpu temp is 
missing

Original comment by sca...@gmail.com on 13 Mar 2013 at 8:39

Attachments: