SPC to IT conversion with OpenSPC, help compiling?

Ok so I accidentally stumbled on something I didn’t even realize was possible, this program is supposed to be able to convert spc to it. Holy shit! That’s awesome!

https://github.com/uyjulian/OpenSPC

So I’m trying to compile it on Linux but… I don’t know anything about Linux. Instructions say just run make from the source directory. So then I get an error, and I don’t know what it means. I googled it and can’t seem to find an answer that makes sense to me (I have found nearly every answer to any linux question I ever google to be completely indecipherable by me) and nothing that relates to OpenSPC directly.

Here’s my error (running mint in virtual box), any ideas?:

usually i start by prefix the local folder commands with ./ -> ./make.

This is in many cases pretty important on Linux

./make comes back with No such file or directory

At the moment this link Carbonthief points to a 404 for me -> https://github.com/uyjulian/OpenSPC, but there is -> https://github.com/christopho/openspc_precise There seems to be a openspc.exe file in the zip download, don’t know if that’s helpful. According to the Linux ‘file’ program it is a MS-DOS executable with DJGPP go32 extend applied (ah, the days of 32-bit protected mode dos extenders…) You might need DosBox or some emulation to work with that file.

./make means you are asking Linux to search and run a program called ‘make’ within the current directory, hence the ‘No such file or directory’ error :slight_smile:

Huh, wonder what happened to the original link… your link looks like a modification of what my link originally was, which said it ran in DOS or Linux. I’ll check it out after work. Thanks. Been a long time since I used DosBox.

Oh without the original sources I can only guess what’s happening, and not even try to analyse or whatever.

I think the “-arch” option seems to be something apple-only after a little research? maybe this makefile was targeted at apple, and not at linux after all, and also made up without all bells and whistles like checking for the right system etc? You can tell a makefile being hastily made up by looking at it, if you are close to understanding what it does and it’s very small it wasn’t done “real good” - makefiles suck big times. You could try to mod the makefiles (and maybe even the code) from a tiny bit to really badly to try to get a working linux executable in the end. But as you’ve said you have little experience with that stuff, I wouldn’t recommend to start learning with some case like this. Seems by the other sources that this stuff is coded with a core of assembly, so maybe one prerequisite is to have it run in 32bit mode in order to have the assembly parts working.

So this is a mpc to it converter - can you bring a link to the sources with makefile

Been a long time since I used DosBox.

I would try DosBox sir, before trying to get a Linux compilation :slight_smile: You may also need some dos extender exectutable files in the same directory as well -> http://www.delorie.com/djgpp/dl/ofc/simtel/v2misc/csdpmi5b.zip/

So this is a mpc to it converter - can you bring a link to the sources with makefile

I got the source and dos exectutable files from -> https://github.com/christopho/openspc_precise OopslFly. Yeah I agree, makefiles do suck, especially if they are over 4 lines long and are machine script generated :slight_smile:

Ah ok, no way for me trying to make it linux-buildable. Seems like an old dos-gcc-rhide-project, using an ye olde version of allegro library header which is only compatible with djgpp for something, with lots of assembly files. This one would require more work to make it functionally than just fixing a makefile & some header. Now the other (now down) project seemed to already have a makefile (for mac?), so less work in trying to adapt it to linux or another build system?

use dosbox to render your .it files in the meantime. I don’t find snes chipchoons interesting enough to be willing to help with this, at least not in that extend.

Are you trying to find spc2it?

https://github.com/uyjulian/spc2it

git clone https://github.com/uyjulian/spc2it.git;cd spc2it;make;./spc2it /path/to/spc/file.spc

OpenSPC repo is replaced by the above.

Good luck I bumped into this topic via google :slight_smile:
Also, -arch option is no longer used in the makefile, should compile on any little-endian machine.
No DOSbox needed, my program is better than the original OpenSPC, it includes some fixes.

Ooo neat, I hadn’t had a chance to even try it in dosbox yet, I’ll give it a shot when I get home from work. Maybe. Ugh I really need to be studying… Too much cool stuff to do…

Ok, I failed. I have no idea how to use this.

Ok, I failed. I have no idea how to use this.

Copy and paste this into Terminal

git clone https://github.com/uyjulian/spc2it.git;cd spc2it;make;./spc2it /path/to/spc/file.spc

You might need to install Git first

sudo apt-get install git

Oh, probably do need to install git first. I did copy paste that string already and got an error. Will try after work which just started so 9 hours or so. Thanks.

Ok I installed git successfully and copy pasted that line, and got:

Filepath: /path

Error: can’t open file

Oh wait hold that thought I just woke up, forgot need to specify an actual path to a .spc

Ok that didn’t work either. Maybe I installed it, but not sure how to use it now? I tried just./spc2it /home/carbon/downloads/spc2it-master/ct-s17.spc and got the same file path error.

Ok I installed git successfully and copy pasted that line, and got:

Filepath: /path
Error: can’t open file

Oh wait hold that thought I just woke up, forgot need to specify an actual path to a .spc

Ok that didn’t work either. Maybe I installed it, but not sure how to use it now? I tried just./spc2it /home/carbon/downloads/spc2it-master/ct-s17.spc and got the same file path error.

Are you sure you can access that file? If you have file permission problem try sudo ./spc2it

Tried and now I get:

sudo: ./spc2it: command not found

So maybe it didn’t install? But I can see this:

http://imgur.com/klL9qaL,OSDEjh4

Tried and now I get:
sudo: ./spc2it: command not found

So maybe it didn’t install? But I can see this:

http://imgur.com/klL9qaL,OSDEjh4

You didn’t change directory to the spc2it directory.

Oops…

Ok now I just get the same filepath error. But I figured out how to show hidden files so now I’m just putting the .spc’s into the spc2it directory, and IT WORKS holy shit dude I’m looking at a an IT file in openmpt right now of one of my favorite chrono trigger songs! Love you thank you!

edit: I didn’t realize Renoise couldn’t import IT’s, but it totally can. Welp that’s it, time to quit my job and become a snes composer full time.

I lost my VM I had set up for this and I’m trying to remake it, and I’m running into a problem. Instead of a make file, it’s a cmake file now, and I can’t figure out how to use it. I managed to install cmake, but I can’t figure out how to use it to actually compile spc2it. I’ve installed git, I’ve installed cmake, and I’ve cloned the git and I’m in the spc2it directory. I’m staring at this:

What do?

Scratch that, there’s a windows version now, no VM needed anymore. Works great:

https://github.com/uyjulian/spc2it/releases