Missing files in compilation of source in linux (not debian)
2 posters
Page 1 of 1
Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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.
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
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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
5.20.1 or later is required to build OpenBVE.
https://github.com/leezer3/OpenBVE/blob/master/Building.md
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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.
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.
Re: Missing files in compilation of source in linux (not debian)
You also need to create an alias for the command, like the site I showed.tckosvic@ix.netcom.com wrote:nuget restore OpenBVE.sln
make: nuget: Command not found
make: *** [makefile restore] Error 127
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
Re: Missing files in compilation of source in linux (not debian)
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
I'll work through this some more using the microsoft instruction
tckosvic@ix.netcom.com- Posts : 11
Join date : 2020-04-20
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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.
Then build OpenBVE.
Perhaps "Tumbleweed" is a new version of Mono, so "all-***" will also succeed.
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
Perhaps "Tumbleweed" is a new version of Mono, so "all-***" will also succeed.
Re: Missing files in compilation of source in linux (not debian)
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
/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
Re: Missing files in compilation of source in linux (not debian)
First, uninstall nuget installed from the repository.
Then run the modified command below.
I changed the directory where "nuget.exe" is located.
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.
Also, I had a successful complete build with "Tumbleweed".
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".
Re: Missing files in compilation of source in linux (not debian)
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
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
Re: Missing files in compilation of source in linux (not debian)
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
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
Similar topics
» Using OpenBVE in Debian Linux
» Linux compilation -- Not registered task Move
» Debian OpenBve
» Missing File Function?
» Train.MsTS.dll missing(?)
» Linux compilation -- Not registered task Move
» Debian OpenBve
» Missing File Function?
» Train.MsTS.dll missing(?)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum