Open unilock opened 3 years ago
Im having no luck with this in wine, the arduino blinks once then the program locks. Fine in windows.
@L10N37 Don't run it in WINE. Compile it for Linux with mono
, xbuild
, and LibUsbDotNet as described above.
Compiling for macOS is beyond the scope of my knowledge, though it shouldn't differ too much from my rudimentary instructions.
@unilock Thank you for the guidelines, I could build the application under Linux, too. Maybe we can provide a script that fetches the required dependency off the Internet and unpacks it correctly. I can take care of that once I'm done with a pull-request.
EDIT: I just want also to underline that there is a GUI glitch (at least with KDE) which causes the "Untitled" tab after reading a PS memory card to stay "grey", as if no data were read. Just go to "File" -> "New". A new tab opens and magically the former one is also visible now.
Building on rpm
based distros (Fedora, OpenSUSE) works just fine for me after installing the default LibUSB package (libusb on Fedora; libusb-0_1, libusb-1_0 on OpenSUSE). I haven't tested building on deb
based distros as I don't have a machine running Debian or derivatives.
@unilock I've adapted your build instructions and put them into MONO.md. Thanks for the info!
I have a question on building Memcardrex on Linux. I wanted to try Visual Studio Code for Linux if I can use it to build since I had bad experiences with Mono. I installed C# extension for VS Code and .net Framework v6.0 that is available from the official Linux Mint repository, altough I am aware the latest is version 7.0 that I tried to add and configure manually but with no success. Does anyone has any hints on compiling this app on Linux using VS Code?
I'm using Pop!_OS (Ubuntu) 21.04 / hirsute. I've installed
mono-devel
from the official website, following the instructions for Ubuntu 20.04 / focal. (Using the outdated packages in Ubuntu's default repos resulted in more errors.)When running
xbuild /property:TargetFrameworkVersion=v4.0
, I get the following errors:Here's what
msbuild
reports:Installing
libusb-1.0-0-dev
did not help.I fixed this by downloading the LibUsbDotNet NuGet package and extracting the contained
lib
folder to<root of repository>/packages/LibUsbDotNet.2.2.29
. But I'm not sure how to fix this in a more sane manner.BTW, to run on Linux, you have to run
mono <root of repository>/MemcardRex/bin/Debug/MemcardRex.exe
.Also, selecting the "Quit" button from within MemcardRex freezes the program. You then have to CTRL+C Mono. I guess one should only use the window's "X" button.