-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux support #28
Comments
Update - using the environment variable It seems to detect it fine if I either copy the After doing this, it then complains about locating All of this is basically to say that since all of these exceptions were being thrown by OpenTK.DisplayDevice, I'm assuming the version of OpenTK that Track Studio uses is probably outdated, or has other issues making it incompatible with the latest Linux drivers. |
Tried it again today and it just worked. I'm not sure if there was an update to fedora packages that added support for whatever wasn't working, but it opened fine. |
Tried to export multiple models on Linux, the textures all get exported, but I get the error: EDIT: forgot to try the obvious "rename the track studio folder to have no space". After doing so it works again in the version I have installed (making this a minor oversight), however using the latest version of Track Studio it once again crashes and I get these errors: |
I saw linux-related commits, so decided to give the latest version a try. ErrorUnhandled exception. System.TypeInitializationException: The type initializer for 'DirectXTexNet.TexHelper' threw an exception. ---> System.BadImageFormatException: Could not load file or assembly '/home/infina/Downloads/net8.0/x64/DirectXTexNetImpl.dll'. An attempt was made to load a program with an incorrect format.File name: '/home/infina/Downloads/net8.0/x64/DirectXTexNetImpl.dll' When trying to enable game shaders I also get the same error relating to After downloading every Track Studio version from around 3 weeks ago (the time I downloaded the one I'm currently using), it seems like these issues only started occuring after 1.0.761 (with 1.0.759 being able to do these things completely fine). |
EDIT: I originally thought this was only an issue on release builds, however that happened to be up to chance. Updated comment below: Upon further testing it seems to be completely random whether this issue occurs or not for a given build. The "working" builds did still have issues though - even though I could now see the textures folder and game shaders, trying to export any textures gives me completely transparent images (still the correct resolution, but every pixel is #00000000). |
Track Studio won't run on Linux (tested on both Fedora and Ubuntu).
Note - the usage docs still say to run
dotnet MapStudio.dll
, but this file no longer seems to exist. Since every other dll in the project complained about a missing libhostpolicy.so I'm assuming the correct one to run is now TrackStudio.dllHowever, running it gives me this error:
Error
Unhandled exception. System.TypeInitializationException: The type initializer for 'OpenTK.DisplayDevice' threw an exception.---> System.DllNotFoundException: Unable to load shared library 'gbm' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libgbm: cannot open shared object file: No such file or directory
at OpenTK.Platform.Linux.Gbm.CreateDevice(Int32 fd)
at OpenTK.Platform.Linux.LinuxFactory.SetupDisplay(String gpu, IntPtr& gbm_device, IntPtr& egl_display)
at OpenTK.Platform.Linux.LinuxFactory.CreateDisplay(IntPtr& gbm_device, IntPtr& egl_display)
at OpenTK.Platform.Linux.LinuxFactory.get_gpu_fd()
at OpenTK.Platform.Linux.LinuxFactory.CreateDisplayDeviceDriver()
at OpenTK.DisplayDevice..cctor()
--- End of inner exception stack trace ---
at OpenTK.DisplayDevice.get_Default()
at UIFramework.Framework..ctor(MainWindow window, GraphicsMode gMode, String asssemblyVersion, String name, Int32 width, Int32 height) in C:\projects\track-studio\MapStudio.UI\src\UIFramework\Framework.cs:line 24
at TrackStudio.Program.Main(String[] args) in C:\projects\track-studio\Track Studio\src\Program.cs:line 50
Aborted (core dumped)
I also tried installing the dependencies in WINE and running the exe, which gave me:
A fatal error occurred, the required library hostfxr.dll could not be found in [Z:\usr\lib64\dotnet\host\fxr\8 .0.4]
This was easily fixed by copying hostfxr.dll from the dotnet install at `~/.wine/drive-c` into the same folder as TrackStudio.exe, however even though the GUI loads and registers when I hover over the buttons, clicking them doesn't create their respective drop-down menus - basically rendering the program unusable.
The text was updated successfully, but these errors were encountered: