Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building ohNet on Ubuntu
10-01-2015, 12:59 PM
Post: #1
Building ohNet on Ubuntu
Hi,

Just trying to build ohNet on Ubuntu 14.04. The build process gets most of the way through, but stops when running dmcs:

Code:
dmcs /nologo /optimize+ /debug:pdbonly /t:library /optimize+ /debug:pdbonly  /warnaserror+\
        /out:Build/Obj/Posix/Release/ohNet.net.dll \
        OpenHome/Net/Bindings/Cs/ControlPoint/CpDevice.cs \
        OpenHome/Net/Bindings/Cs/ControlPoint/CpDeviceUpnp.cs \
        OpenHome/Net/Bindings/Cs/ControlPoint/CpProxy.cs \
        OpenHome/Net/Bindings/Cs/ControlPoint/CpService.cs \
        OpenHome/Net/Bindings/Cs/Device/DvDevice.cs \
        OpenHome/Net/Bindings/Cs/Device/DvProvider.cs \
        OpenHome/Net/Bindings/Cs/Device/DvProviderErrors.cs \
        OpenHome/Net/Bindings/Cs/Device/DvServerUpnp.cs \
        OpenHome/Net/Bindings/Cs/Service.cs \
        OpenHome/Net/Bindings/Cs/OhNet.cs \
        OpenHome/Net/Bindings/Cs/SubnetList.cs \
        OpenHome/Net/Bindings/Cs/ControlPoint/CpDeviceDv.cs
error CS8001: Warning as Error: SDK path could not be resolved

Mono is installed and is version 3.2.8.

Anyone have any sugggestions as to what I am missing?
Find all posts by this user
10-01-2015, 02:21 PM
Post: #2
RE: Building ohNet on Ubuntu
Can you post the build error (the output in between invoking dmcs and the build failing) please?
Find all posts by this user
10-01-2015, 03:03 PM
Post: #3
RE: Building ohNet on Ubuntu
(10-01-2015 02:21 PM)simonc Wrote:  Can you post the build error (the output in between invoking dmcs and the build failing) please?

This is all I get after dmcs is invoked:

Code:
error CS8001: Warning as Error: SDK path could not be resolved
Compilation failed: 1 error(s), 0 warnings
make: *** [Build/Obj/Posix/Release/ohNet.net.dll] Error 1
Find all posts by this user
10-01-2015, 05:49 PM
Post: #4
RE: Building ohNet on Ubuntu
(10-01-2015 03:03 PM)Trolley01 Wrote:  This is all I get after dmcs is invoked:

Code:
error CS8001: Warning as Error: SDK path could not be resolved
Compilation failed: 1 error(s), 0 warnings
make: *** [Build/Obj/Posix/Release/ohNet.net.dll] Error 1

Can you build other C# code using mono? I'd guess there's a problem with your mono install.

If you don't want to use ohNet's C# bindings, you can skip building them by including native_only=yes in your build command.
Find all posts by this user
10-01-2015, 07:37 PM
Post: #5
RE: Building ohNet on Ubuntu
(10-01-2015 05:49 PM)simonc Wrote:  Can you build other C# code using mono? I'd guess there's a problem with your mono install.

If you don't want to use ohNet's C# bindings, you can skip building them by including native_only=yes in your build command.

Ok, native only builds work, so looks like mono is broken on my virtual machine. Got it all built - moved on to a different issue, but I'll create a new post as it is unrelated.
Find all posts by this user
26-05-2015, 09:38 AM
Post: #6
RE: Building ohNet on Ubuntu
Hi,

It's a late reply, but just make sure that both packages:
libmono-corlib4.0-cil
libmono-corlib4.5-cil
are installed on your machine.
Find all posts by this user


Forum Jump: