BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Linux compilation -- Not registered task Move

Go down

Linux compilation -- Not registered task Move Empty Linux compilation -- Not registered task Move

Post by tckosvic@ix.netcom.com Thu Sep 17, 2020 5:24 pm

I sucessfully worked through compilation issues on openSUSE a while ago.   There is a previous thread on how to install nuget after which I got compilation to work.

I upgraded my openSUSE from 15.1 to 15.2.  I had to reinstall openbve.  I got latest code from github. I am compiling with command  in openbve directory, " make openbve-debug".
Now, I have new compilation issues after setting nuget up as was done before.
I am getting errors.

First error is:

"" xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

MSBUILD: error MSBUILD0004: Too many project files specified ""


Second error says:

"" (AfterBuild target) ->
 : error :  Error initializing task Move: Not registered task Move  "". 

I think this is a failure of part of the restore nuget command but I am not sure.


Any suggestions on how to get past these.

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Linux compilation -- Not registered task Move Empty Re: Linux compilation -- Not registered task Move

Post by leezer3 Thu Sep 17, 2020 11:10 pm

I would try installing MSBuild from one of the community sources- That looks to me like it's falling back to xbuild and failing, as openSUSE don't seem to officially package it:

https://software.opensuse.org/package/msbuild

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Linux compilation -- Not registered task Move Empty Re: Linux compilation -- Not registered task Move

Post by S520 Fri Sep 18, 2020 12:18 pm

This issue is a compatibility issue between xbuild and msbuild.
So installing msbuild will solve it.

Please install the community version of msbuild below:
https://software.opensuse.org//download.html?project=games%3Aopenra&package=msbuild


Also, some community versions have packaging issues that cause NuGet package restores to fail.
The error message is as follows:
Code:
MSBuild auto-detection: using msbuild version '' from '/usr/bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.

NuGet determines the version of msbuild from the file path.
The correct package will install msbuild in the following folder.
Code:
/usr/lib/mono/msbuild/15.0/bin/
The number "15.0" in this path is used for version determination.
This path is a symbolic link and the entity is located in the following folder.
Code:
/usr/lib/mono/msbuild/Current/bin/

However, some packages do not create symbolic links.
Therefore, NuGet fails to determine the version of msbuild and cannot restore the package.

@leezer3
I think we should remove the fallback to xbuild in the makefile.
Like this time, xbuild is becoming less compatible with msbuild.
In addition, xbuild has already been deprecated since Mono 5.0.
The minimum version of Mono for building OpenBVE today is 5.20.1, so I don't think it makes sense to fall back to xbuild anymore.


Last edited by S520 on Fri Sep 18, 2020 12:46 pm; edited 3 times in total (Reason for editing : Add the error message of NuGet and fix typo)
S520
S520

Posts : 113
Join date : 2018-08-24
Location : Japan

https://github.com/s520

Back to top Go down

Linux compilation -- Not registered task Move Empty Re: Linux compilation -- Not registered task Move

Post by leezer3 Fri Sep 18, 2020 8:16 pm

That sounds like a good idea.

I've opened a PR with some changes to the makefile in it (Attempts to detect the Mono version, presence of msbuild & nuget)
I think this works OK, but please take a look Smile

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

S520 likes this post

Back to top Go down

Linux compilation -- Not registered task Move Empty Re: Linux compilation -- Not registered task Move

Post by tckosvic@ix.netcom.com Fri Sep 18, 2020 11:47 pm

Installing msbuild through openSUSE build service fixed the issue.  Compilation finished with zero errors and 4 warnings  I'll take a walk-through of the warnings to see if they look important.

thanks again,

tom kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Gothpaladinus likes this post

Back to top Go down

Linux compilation -- Not registered task Move Empty Re: Linux compilation -- Not registered task Move

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum