Comments (19)
Ah, good catch. Some people are still using XP, and that's why I postponed updating the used .NET framework (still 3.5)
I think one of these days I have to update anyhow. Ideally I'll switch to .NET Core. That ought to solve this particular problem.
from c64studio.
Also, if you replace the property group at the end of C64Studio.csproj with
<PropertyGroup>
<PostBuildEvent Condition="'$(OS)' == 'Windows_NT' ">copy "$(TargetDir)C64Studio.exe" "$(SolutionDir)C64StudioRelease\$(TargetFileName)"
copy "$(TargetDir)*.dll" "$(SolutionDir)C64StudioRelease"
del "$(SolutionDir)C64StudioRelease\BASIC Dialects\*.*" /Q
copy "$(ProjectDir)BASIC Dialects\*.*" "$(SolutionDir)C64StudioRelease\BASIC Dialects"</PostBuildEvent>
<PostBuildEvent Condition="'$(OS)' == 'Unix' ">cp $(TargetDir)C64Studio.exe $(SolutionDir)C64StudioRelease/$(TargetFileName)
cp $(TargetDir).dll $(SolutionDir)C64StudioRelease
rm -f "$(SolutionDir)C64StudioRelease/BASIC Dialects/"
cp $(ProjectDir)BASIC?Dialects/* $(SolutionDir)C64StudioRelease/BASIC?Dialects</PostBuildEvent>
</PropertyGroup>
ittl fix the builds on linux
from c64studio.
Please keep hacking on this as I really want to use it on Linux with the least bit of fuss :-D
from c64studio.
Did you install the dotnet35 package? AFAIK this one was required when I tested it via PlayOnLinux in Ubuntu.
Edit: Just retested to be sure, 7.0 runs fine in Ubuntu for me.
If there is anything you need for me to lookup in that system, just ask. I'm not particularely fit with Linux systems.
from c64studio.
I'm trying to get it to run on Linux itself, not through wine (which works). The problem seems to be that Xamarin/Mono have dropped support for older versions of .net on Linux, and the standard install is only for .net 4 and later. I found some instruction on how to install older versions but they are out of date and don't work any more. I don't know enough to fix this with a reasonable amount of effort.
from c64studio.
That sounds like a good idea. I'll try again when it happens.
from c64studio.
Does the same solution apply with macOS?
from c64studio.
I have absolutely no idea, but I guess that Mono works the same on different platforms.
from c64studio.
when building and running the latest master through latest Mono on Arch Linux, the program builds fine (after changing the post build task), but when running it seems to try to access a folder that only root can, not sure why though
from c64studio.
After fixing that problem by creating the folder with the right permissions, i was able to get far enough to see that a lot of code is directly talking with the native Windows APIs, first problem that came up was with the DPIHandler, which i just stubbed out, next was the FastImage
class, which heavily uses the gdi32.dll native library, it might be possible to gut out the class and replace it with the cross platform SixLabors.ImageSharp
or to System.Drawing
though. Overall, most native imports arent that important, and it may be possible to replace all of them, as only ~60 native imports are used
Ah, good catch. Some people are still using XP, and that's why I postponed updating the used .NET framework (still 3.5) I think one of these days I have to update anyhow. Ideally I'll switch to .NET Core. That ought to solve this particular problem.
Switching to .NET Core, would unfortanately not fix the issue, as it still doesnt provide Linux versions of GDI or any other native windows APIs, aside from that, .NET core would also create a bigger issue, that being WinForms, as .NET core has 0 winforms support on linux, so if linux is a target, then you will have to stick with .net framework/mono
EDIT: Apparently mono has a gdi32.dll replacement, but not a user32.dll replacement, which is used by FastImage
EDIT2: i managed to get it semi-running, but its crashing on FastColoredTextBox.cs due to Imm32.dll access
from c64studio.
Yeah, I did some ugly PInvoke stuff with FastImage. Back when I introduced it I had performance issues and huge delays with System.Drawing. I'll see if I can fix it up now, should be doable.
Imm32.dll is a problem though, that's Windows' input method manager for special keyboard layout methods. As I see it's only used in a few places; I could probably conditionally keep it out when compiling via Mono.
from c64studio.
Yeah, I did some ugly PInvoke stuff with FastImage. Back when I introduced it I had performance issues and huge delays with System.Drawing. I'll see if I can fix it up now, should be doable. Imm32.dll is a problem though, that's Windows' input method manager for special keyboard layout methods. As I see it's only used in a few places; I could probably conditionally keep it out when compiling via Mono.
I believe in Mono, the most popular IMEs do "just work" with the basic Mono WinForms controls, so yeah conditionally skipping the Imm32.dll calls on non-windows platforms would work
from c64studio.
hmmm it seems that compile time constant isnt working for me
and also, that code doesnt compile anyway, as the top func is extern yet has a body, which produces a compile error
from c64studio.
After gutting out the caret funcs in FastColoredTextBox, i was able to get it fully booting on my local fork which just entirely guts fastimage and related code, so all thats left is to remove FastImage usage, and it should hopefully work on linux after that
(i cant test too much here as a lot requires fastimage so this is really barebones)
from c64studio.
Nice! It'll take a while to replace FastImage.
Did you check if the cursor is still working in the editor control? The caret is the blinking cursor, that is crucial.
from c64studio.
Nice! It'll take a while to replace FastImage. Did you check if the cursor is still working in the editor control? The caret is the blinking cursor, that is crucial.
The position seems wrong, but other then that, it seems to work (albeit it blinks very slowly), i wonder if the position is wrong due to the font?
EDIT: Its actually decently usable, the caret position is just slightly too far right, but aside from that it seems to follow text properly
from c64studio.
One problem which is a little more important: the keys always activate the top bar's shortcuts , so letters like D
are just untypable
from c64studio.
The shortcut issue is weird. I wonder if a SetFocus call got missing?
from c64studio.
The shortcut issue is weird. I wonder if a SetFocus call got missing?
Its possible i had accidentally stripped it out when mass deleting code that references FastImage
from c64studio.
Related Issues (20)
- Can't launch Vice, error parsing command line options HOT 1
- Quote key moves. HOT 4
- Solution / Project creation doesn't seem to match what was configured. HOT 2
- Solution node context menu offers rename project incorrectly HOT 1
- Cursor stops blinking after some seconds in the editor HOT 5
- How do you type the british pound symbol? HOT 2
- Windows 11 Trojan detected ? HOT 8
- Outline View (basic source code): double clicking on referenced variables will jump to wrong line of code HOT 2
- Charscreen reverse mode backspace clears in non-reverse. HOT 1
- Graphicscreen editor to show which colors are active in current charblock HOT 6
- Align value one off HOT 2
- Sprite Preview "Save as GIF" Produces Broken GIF HOT 2
- Huge settings.dat hangs editor while closing HOT 1
- Value table editor HOT 2
- Cannot type "\" in a BASIC #include directive HOT 2
- How to assembly 65816 in recent commits? HOT 2
- Automatic Renumber Off by Default HOT 2
- Const value not shown in 'Find all references' HOT 6
- Request: Screen editor zoom HOT 2
- Request: In screen editor, select colors for mouse buttons HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c64studio.