Skip to content
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? #16

Open
burbruee opened this issue Aug 14, 2022 · 1 comment
Open

Linux support? #16

burbruee opened this issue Aug 14, 2022 · 1 comment

Comments

@burbruee
Copy link

burbruee commented Aug 14, 2022

Hi,

Wondering if it's possible to compile Savestate2snes for linux?
Didn't see anything mentioned specifically about it, but decided to give it a try.

I got QUsb2Snes compiled and working, detects my sd2snes non-pro. sd2snes on the latest beta firmware with built-in savestate and usb2snes support.

The game I need savestate support for however does not work with the built-in savestates. Saves the state but corrupted graphics and hard-freezes the snes on load.
So wanted to try Savestate2snes to see if maybe it works there? Even if it doesn't I prefer to be able to store savestates on my PC.

Checked out master and tried:

git submodule init
git submodule update
qmake
make -j24

But no luck, getting errors within snesclassicstuff folder, which I'm not even sure if that would be needed for sd2snes stuff?

Here are some of the errors I'm getting:

snesclassicstatut.cpp:145:37: error: ‘class StuffClient’ has no member named ‘commandDatas’
  145 |         QString result = controlCo->commandDatas().trimmed();
      |                                     ^~~~~~~~~~~~
snesclassicstatut.cpp:178:20: error: ‘class StuffClient’ has no member named ‘executeCommand’
  178 |         controlCo->executeCommand("TMP_CANOE_PID=`pidof canoe-shvc`;"
      |                    ^~~~~~~~~~~~~~
snesclassicstatut.cpp:98:11: warning: enumeration value ‘NONE’ not handled in switch [-Wswitch]
   98 |     switch(m_state)
      |           ^

Pretty much all errors relate to 'class StuffClient', either executeCommand or commandDatas not being a member of said class.

I'm on Fedora 36, gcc 12.1.1, qmake 3.1, qt 5.15.5
Also got qt5-qtwebsockets and qt5-qtserial stuff installed (required for QUsb2snes)
Not sure if anything else is needed for savestate2snes, if it's possible to build at all.

The windows version works perfectly fine through wine but doesn't detect the sd2snes, which makes sense as it's probably using windows specific stuff to connect I'm assuming.

Thanks.

@Skarsnik
Copy link
Owner

I probably forget to update the SNES classic submodule. You could try compiling a tagged release and not master.

Using Savestate2Snes on wine should work since it uses QUsb2Snes to connect to the SD2Snes, it does not connect directly to the USB serial port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants