Closed chipacoxyz closed 10 months ago
I didn't realize I wrote the issue in Spanish so that people from other countries can understand it. I'm sorry, if necessary, you can translate it with a translator. Thanks.
⏖⏖⏖
I have edited my previous post, it is now in English.
With respect to the language, you may edit your post and translate it to english, if you don't mind :). You may even use automatic tools. That would be perfectly ok :)
Your problem may come from these sources:
In order to launch RetroVM from WSL2, you need to change the script so that it uses Windows' version and not Linux's (which is what it tries to do under WSL2). It's a simple change to the script and has already been discussed.
Please, check these points (specially 3) and come back with your results :).
Finally I was able to fix it!
As you said, it was a problem with cygwin's git. I fixed it with wsl2 by positioning myself in the cygwin home cygpath -w ~
and cloning it there. It worked the first time. I don't know why cygwin uses Windows git instead of its own binary, it must be the nature of the program. I need to read more about how cygwin works... It was funny, I almost had a heart attack when I typed git --version
and it shows git version 2.41.0.windows.1
😅, now I'm ready to use cpctelera on windows! Thank you very much, professor!
Should I close the issue or you will close it?
The problem is usually related to Windows' PATH environment variable, not cygwin. Usually, PATH points to Windows' git folder before cygwin's folder, which makes it be picked with preference. As simple as that :).
Enjoy CPCtelera and hope to see your creations soon :)
In order to launch RetroVM from WSL2, you need to change the script so that it uses Windows' version and not Linux's (which is what it tries to do under WSL2). It's a simple change to the script and has already been discussed.
I've been looking for a way to make the cpct_rvm script work on wsl2, It was a bit tricky to me to find information, but thanksfully a little CarlSonic1230's youtube comment appeared and made me realize that the redirections in the script doesnt work well on wsl, and I also got an issue with some wsl interop caused by the mono package.
Everything working now.
I've created a gist file explaining everything done step by step to get my personal adapt. Similar to franky52's one, but working 😋.
https://gist.github.com/chipacoxyz/1d304cab190849864dba563517719685
I wish It works for any new cpctelera learner with wsl2 😉.
I'm having an error with a cpctelera's tool (sdcc) when running the
setup.sh
.I installed Cygwin from the official website and followed the installation instructions exactly. I also downloaded the dependencies from the cocktailer website. I cloned the project repository, switched to the development branch, and executed the
setup.sh
script. The program starts up, but then it throws an error.The error:
The log:
I think it's an error caused by Windows' handling of spaces and line breaks. I've tried to fix it by converting the file to a Windows format (a bit hackish) using the unix2dos utility, but it didn't work.
Other details: I can provide more details if necessary. I'm giving up for now. I've tried everything I can think of, and I'm going to use the Manjaro virtual machine. This is a viable solution, but it's not ideal because it requires a lot of resources and can affect my silly idea of good performance 😅.
As a side note: I tried to use WSL2, but I couldn't get RetroVirtualMachine to work. I might have to make a separate issue for that later. I apologize for the length of this message. I tried to include everything that might be helpful, but if you need anything else, please let me know.