BDInfo
BDInfo copied to clipboard
Cannot build on Ubuntu 16.10
There are no obvious errors:
$ git clone https://github.com/Rupan/BDInfo.git
$ cd BDInfo
$ cd BDInfo && xbuild /p:Configuration=Release BDInfo.csproj
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors
Build started 12/8/2016 2:31:32 AM.
__________________________________________________
Project "/tmp/BDInfo/BDInfo/BDInfo.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "bin/Release/"
Created directory "obj/Release/"
Target ResolveProjectReferences:
Project "/tmp/BDInfo/ZedGraph/ZedGraph.csproj" (default target(s)):
/tmp/BDInfo/ZedGraph/ZedGraph.csproj: warning : Project has unknown ToolsVersion '14.0'. Using the default tools version '4.0' instead.
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "bin/Release/"
Created directory "obj/Release/"
Done building project "/tmp/BDInfo/ZedGraph/ZedGraph.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "ResolveProjectReferences" in project "/tmp/BDInfo/BDInfo/BDInfo.csproj".-- FAILED
Done building project "/tmp/BDInfo/BDInfo/BDInfo.csproj".-- FAILED
Build FAILED.
Warnings:
/tmp/BDInfo/BDInfo/BDInfo.csproj (default targets) ->
/usr/lib/mono/4.5/Microsoft.Common.targets (ResolveProjectReferences target) ->
/tmp/BDInfo/ZedGraph/ZedGraph.csproj (default targets) ->
/tmp/BDInfo/ZedGraph/ZedGraph.csproj: warning : Project has unknown ToolsVersion '14.0'. Using the default tools version '4.0' instead.
1 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.4999300
$ mono -V
Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-7ubuntu4)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen
$ xbuild /version
XBuild Engine Version 12.0
Mono, Version 4.2.1.0
Copyright (C) 2005-2013 Various Mono authors
Trying with the latest version of Mono (4.6.2) also fails, but with 0 errors / warnings:
$ xbuild /p:Configuration=Release BDInfo.csproj
XBuild Engine Version 14.0
Mono, Version 4.6.2.0
Copyright (C) 2005-2013 Various Mono authors
Build started 12/8/2016 2:27:21 AM.
__________________________________________________
Project "/tmp/BDInfo/BDInfo/BDInfo.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Target ResolveProjectReferences:
Project "/tmp/BDInfo/ZedGraph/ZedGraph.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Done building project "/tmp/BDInfo/ZedGraph/ZedGraph.csproj".-- FAILED
Task "MSBuild" execution -- FAILED
Done building target "ResolveProjectReferences" in project "/tmp/BDInfo/BDInfo/BDInfo.csproj".-- FAILED
Done building project "/tmp/BDInfo/BDInfo/BDInfo.csproj".-- FAILED
Build FAILED.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:00.5445450
I recently updated the code to split out the ZedGraph dependency into a separate DLL (and revert back to the latest upstream ZedGraph release). You have a couple of options at the moment:
- Check out tag 0.5.8; this version will build as documented.
- Run the xbuild command against the top-level solution (BDInfo.sln).
I just updated the build instructions in the README, can you try again and see how it goes?
I know this is almost a year old, but I'm running into the exact same problem attempting to build at the top-level solution.
I'll check again. There is an updated version of Mono available upstream, please ensure that you're using it instead of the distribution-supplied mono.
@extra
I had the same exact log as you when I tried to build this on Ubuntu 17.04. The solution was:
sudo apt-get install mono-devel
Which allows you to compile the source. Everything works for me now. Rupan should add that prerequisite in the README.md file.