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

Missing files in compilation of source in linux (not debian)

2 posters

Go down

Missing files in compilation of source in linux (not debian) Empty Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Mon Apr 20, 2020 9:57 pm

Trying to compile source as pulled from github.  I am on openSUSE linux.  I have all the mono files loaded that I can find in the openSUSE software management system.  I am not aware of any missing mono packages.

I run xbuild from the commandline as per the provided instructions and I get following missing file error messages and no compilation.

"The type or namespace name 'CSScriptLibrary' could not be found
The type or namespace name 'Ude' could not be found
The type or namespace name 'SharpCompress' could not be found " (three times for this one).

What is missing here? are these std mono routines or *.dll files.  I don't know.  If I find them what am I looking for and where should I put them.

Need some advice.

Thanks,  Tom Kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Mon Apr 20, 2020 10:23 pm

First, you need to get nuget.
Get it from your distribution, or follow the steps below. (Requires version 2.12 or later.)
https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools#nugetexe-cli

Then build OpenBVE by following the steps below. (Internet connection required.)
https://github.com/leezer3/OpenBVE/blob/master/Building.md#mac--linux
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Tue Apr 21, 2020 5:24 pm

S520, thanks for reply.  Nuget was installed in openSUSE packages.  I did update it from version 2.8.7 to nuget.exe 5.0 from website per your recommendations.
Running  "make all-release" from the doc file you indicated hangs up at line 55 of make file That is the nuget restore line.  It hangs there.
I tried changing line 55 in makefile to:
mono /usr/lib/mono/nuget/nuget.exe restore OpenBVE.sln

This just also hangs and does nothing for hours.  It does look like nuget is running but hanging.
Another thing:
the sln file in the git download is named:  OpenBve.sln,  all the references in the make file call it:  OpenBVE.sln.  Different fle in linux but not in windows. I am experimenting with correcting the names to be consistent.

Any additional advice?

thanks, Tom Kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Tue Apr 21, 2020 5:34 pm

First, the file name is "OpenBVE.sln" on GitHub.
https://github.com/leezer3/OpenBVE/blob/master/OpenBVE.sln
I recommend you to clone again.

Then tell me which version of Mono you are using.
You can find the version by running the command below.
Code:
mono --version
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Tue Apr 21, 2020 6:39 pm

Mono JIT compiler version 5.10.1.47 is version installed from openSUSE package manager

I will do  reclone from github but i have some things i need to do so it will be a few hours before I get that done.

thanks, again
tom kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Tue Apr 21, 2020 7:06 pm

I got some time to try again. This time the download did give file named OpenBVE.sln but the results are the same.
Below is run of make command from command line and response by system.

tom@linux-SUSE15:~/OpenBVE-master> make all-release
nuget restore OpenBVE.sln
make: nuget: Command not found
make: *** [makefile:55: restore] Error 127


nuget at /usr/lib/mono/nuget/nuget.exe is in my path/environment I am sure and it is nuget version 5.0 from the nuget website. Owner is root.

After the above, I tried testing for line 55 of make file : mono /usr/lib/mono/nuget/nuget.exe restore OpenBVE.sln in the make file and it just hangs and does nothing. I read you need the mono command to run nuget on linux

thanks, tom kosvic



tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Tue Apr 21, 2020 7:40 pm

Your version of Mono seems to be out of date.
5.20.1 or later is required to build OpenBVE.
https://github.com/leezer3/OpenBVE/blob/master/Building.md
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Tue Apr 21, 2020 7:46 pm

okay, that will take me some time to change the mono version out.  What I have is latest version from the openSUSE package manager.

Is this make file system from github what is used to make debian packages?

tom kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Tue Apr 21, 2020 7:51 pm

I'm not familiar with openSUSE, but "Tumbleweed" seems to have the latest version.
https://software.opensuse.org/package/mono-complete

Our makefile can also create Debian packages, but other features are also available for other distributions, eg Fedora.
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Tue Apr 21, 2020 8:00 pm

tckosvic@ix.netcom.com wrote:nuget restore OpenBVE.sln
make: nuget: Command not found
make: *** [makefile restore] Error 127
You also need to create an alias for the command, like the site I showed.
Did you perform step 3?
Even if you do, you need to reload the shell as in step 4.
https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools#macoslinux
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Wed Apr 22, 2020 4:47 am

first time I saw the reference to the microsoft file.  Previous compile reference was to the github instruction files. the microsoft alias is  what i was changing to in the make file. 

I'll work through this some more using the microsoft instruction

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Thu Apr 23, 2020 2:52 am

S520,  i now have mono 5.1  also nuget 5.5.1.  I have alias in place for nuget.  When I input nuget at terminal window, I get the help info for nuget.

When I run the make, it still stops at line 55 which is the nuget call.  I get error 127 message.

When I run at terminal just the line 55 from the make file, it starts a process and then just hangs,

I am giving up on compilation. I will use the package distributed copy of openbve that I had.  It didn't run all the input keys right and that was the reason i tried to compile code.  I will work on the key bindings to try to fix the problems.

Thanks for your assistance, Tom Kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Thu Apr 23, 2020 1:00 pm

I installed openSUSE 15.1 on a virtual machine and investigated it.
You may not need it anymore, but I will write information.

First, execute the following command.
Code:
sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
echo -e '#!/bin/sh\nexec /usr/bin/mono /usr/local/bin/nuget.exe "$@"' | sudo tee /usr/local/bin/nuget
sudo chmod 755 /usr/local/bin/nuget

Then build OpenBVE.
Code:
make openbve-debug
You cannot use "all-debug" and "all-release" because the version of Mono is old.

Perhaps "Tumbleweed" is a new version of Mono, so "all-***" will also succeed.
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Thu Apr 23, 2020 6:34 pm

I will try your recommendations. But, openSUSE package manager put nuget 2.8 at

/usr/lib/mono/nuget/nuget.exe   I replaced the software manager installed nuget with nuget.exe 5.51 and left it at the same place.  renamed the original one. that did not work

Your script wants to put nuget at /usr/local/bin/nuget.exe   Perhaps that is where the make file is looking for it.  I dont like to have same executable at two places both of which are in the path

Should I remove/rename the nuget.exe at /usr/lib/mono/nuget/nuget.exe?  I dont know which one will be found first by the compiler

I will try your mods given above.

I am in a lockdown so there is not much else to do.

thanks again, tom kosvic

tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Fri Apr 24, 2020 3:02 pm

First, uninstall nuget installed from the repository.

Then run the modified command below.
I changed the directory where "nuget.exe" is located.
Code:
sudo curl  -o /usr/local/lib/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
echo -e '#!/bin/sh\nexec /usr/bin/mono /usr/local/lib/nuget.exe "$@"' | sudo tee /usr/local/bin/nuget
sudo chmod 755 /usr/local/bin/nuget

Since "nuget.exe" needs to be run via the mono command, put the script in "/usr/local/bin".
This method is also used for the xbuild command.
Check by executing the following command.
Code:
cat /usr/bin/xbuild

Also, I had a successful complete build with "Tumbleweed".
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by tckosvic@ix.netcom.com Fri Apr 24, 2020 6:00 pm

I had success using instructions from the previous email.
I did send an email informing you of my success but for some reason it was not posted to the bb properly.

On another matter, where is best site to get trains and route files for current version of openbve that I just compiled.  Will openbve5 files work? will files from earlier versions work?  An english route runs but I would like to add more UK routes.  I'd like to add a Japanese railroad route, an american route, another european (german or czech) route, and a Japanese and New York subway route for variety.

thanks for your time and efforts.  Tom Kosvic




tckosvic@ix.netcom.com

Posts : 11
Join date : 2020-04-20

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by S520 Fri Apr 24, 2020 9:43 pm

I'm glad to hear that it worked.

However, your remaining question is not appropriate for this section.
Search the forum for similar topics, and if they don't exist, post a new topic in the section below:
https://bveworldwide.forumotion.com/f11-general-topics
or
https://bveworldwide.forumotion.com/f18-newbies-s-shelter
S520
S520

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

https://github.com/s520

Back to top Go down

Missing files in compilation of source in linux (not debian) Empty Re: Missing files in compilation of source in linux (not debian)

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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