Omnimaga

Calculator Community => TI Calculators => General Calculator Help => Topic started by: Hayleia on July 23, 2014, 05:37:30 am

Title: Development Environment for z80 on Linux ?
Post by: Hayleia on July 23, 2014, 05:37:30 am
So, as the title says, I am looking for something that would allow me to code in Axe (or in Basic if you prefer) on Linux.

Basically, I need something like TokenIDE (not necessarily with as many options like image editing and such, just something to edit 8xp files, or convert txt files into 8xp files) and something like Wabbitemu (same, I don't necessarily need an interface with keys, just something with a screen that I can transfer 8xp files to).

Absolute requirement: offline. SourceCoder and jsTIfied are not an option for example.

So, any idea ?

(note that "TokenIDE running with mono" can be an option if it works, I didn't try yet in case people have a better solution).
Title: Re: Developpement Environnment for z80 on Linux ?
Post by: Streetwalrus on July 23, 2014, 05:39:52 am
Tokens works in mono. However since you use vim I'd recommend shmibs's tok8x. As for the emu, I recommed tilem or wabbit in wine. Keep an eye out for z80e though. ;)
Title: Re: Developpement Environment for z80 on Linux ?
Post by: Hayleia on July 23, 2014, 05:48:02 am
Ok, thanks, I'll try those :)
(first the "linux native" options and if I don't like them, the "windows native" ones).
Title: Re: Developpement Environment for z80 on Linux ?
Post by: Sorunome on July 23, 2014, 07:54:11 am
Wabbitemu runs out-of-the-box with no issues at all in wine.
If you don't like it there is still tilem and wxwabbitemu
Title: Re: Developpement Environment for z80 on Linux ?
Post by: Streetwalrus on July 23, 2014, 08:17:21 am
As I said though, keep an eye out for z80e. :P
Title: Re: Developpement Environment for z80 on Linux ?
Post by: Hayleia on July 23, 2014, 09:40:09 am
So, I tried to try tilem and wxwabbitemu...

I can't manage to install tilem. When I do "./configure && make && sudo make install", it says "undefined reference to <<pow@@GLIBC_2.0>>". Some Googling told me to add "-lm", but even after I added -lm to every CFLAGS in every Makefile with a CFLAGS, it still gave me that error (when I ran the previous command without the "./configure &&" part).

For wxwabbitemu, it is a bit better. I can install it, launch it with a 84+SE rom, send programs with drag and drop... but File, View, Calculator, Debug and Help don't do anything so I can't put a skin (if supported) and can't change keybindings, which is not very convenient for example for the "+" key...

Probably will try Wabbitemu in wine if there's nothing better.
edit Seems like it mostly works. Drag and drop doesn't work, and keypresses have some latency, but apart from that I don't have a lot of problems.

Now I'll test "editors".
Title: Re: Development Environment for z80 on Linux ?
Post by: ben_g on July 23, 2014, 12:47:06 pm
Depending on what version of linux you use, there may be a software center application (which is basically the linux version of the appstore). You can easily install tilem from there.
Title: Re: Development Environment for z80 on Linux ?
Post by: Sorunome on July 23, 2014, 12:56:37 pm
Keypresses don't have latency if you turn the skin off ;)
Title: Re: Development Environment for z80 on Linux ?
Post by: Hayleia on July 23, 2014, 01:24:08 pm
Depending on what version of linux you use, there may be a software center application (which is basically the linux version of the appstore). You can easily install tilem from there.
Lubuntu. I know that Ubuntu has some sort of store (that I used two or three times on my other laptop) but if it's on Lubuntu too, I don't know where.
Anyway, I installed it from the Omnimaga PPA :)

Keypresses don't have latency if you turn the skin off ;)
Ah, good to know (especially since I don't use the skin).

Is there a way to edit keybindings on tilem ? Because they don't match Wabbit's and I am used to Wabbit's.
Title: Re: Development Environment for z80 on Linux ?
Post by: Deep Toaster on July 23, 2014, 01:39:38 pm

I can't manage to install tilem. When I do "./configure && make && sudo make install", it says "undefined reference to <<pow@@GLIBC_2.0>>". Some Googling told me to add "-lm", but even after I added -lm to every CFLAGS in every Makefile with a CFLAGS, it still gave me that error (when I ran the previous command without the "./configure &&" part).
i posted about this just a few days ago:

http://www.omnimaga.org/index.php?topic=21333

The important part is to put -lm on LIBS in gui/Makefile, because -lm has to come after all the other library loads.

As for editors, I'm planning to make IES work while offline ;) Might be a few weeks though.
Title: Re: Development Environment for z80 on Linux ?
Post by: Streetwalrus on July 23, 2014, 01:45:13 pm
Depending on what version of linux you use, there may be a software center application (which is basically the linux version of the appstore). You can easily install tilem from there.
Lubuntu. I know that Ubuntu has some sort of store (that I used two or three times on my other laptop) but if it's on Lubuntu too, I don't know where.
Pretty sure you need to install it on Lubuntu. It's in the repos though.
By the way, Synaptic > all when messing with an apt based system.
Title: Re: Development Environment for z80 on Linux ?
Post by: Hayleia on July 23, 2014, 02:29:18 pm

I can't manage to install tilem. When I do "./configure && make && sudo make install", it says "undefined reference to <<pow@@GLIBC_2.0>>". Some Googling told me to add "-lm", but even after I added -lm to every CFLAGS in every Makefile with a CFLAGS, it still gave me that error (when I ran the previous command without the "./configure &&" part).
i posted about this just a few days ago:

http://www.omnimaga.org/index.php?topic=21333 (http://www.omnimaga.org/index.php?topic=21333)

The important part is to put -lm on LIBS in gui/Makefile, because -lm has to come after all the other library loads.

As for editors, I'm planning to make IES work while offline ;) Might be a few weeks though.
Wow, never saw that topic o.o
And yeah,  I did not put it on LIBS -.-
And great to hear about IES :D

I know that Ubuntu has some sort of store (that I used two or three times on my other laptop) but if it's on Lubuntu too, I don't know where.
Pretty sure you need to install it on Lubuntu. It's in the repos though.
By the way, Synaptic > all when messing with an apt based system.
Well as I said, I did not use it that much on my Ubuntu laptop so I don't think I'll install it on my Lubuntu :P

Is there a way to edit keybindings on tilem ? Because they don't match Wabbit's and I am used to Wabbit's.
Any ideas about that or is it impossible ?
Title: Re: Development Environment for z80 on Linux ?
Post by: Deep Toaster on July 24, 2014, 12:55:59 am
I don't think it's possible. I've grown accustomed to both keybindings myself—seems like TilEm's philosophy is "map things as accurately as possible." So if you type a capital letter A on your keyboard, TilEm will press Alpha, then MATH (A).
Title: Re: Development Environment for z80 on Linux ?
Post by: Hayleia on July 24, 2014, 03:26:10 pm
Wabbitemu does the same for "alphanumerical" keys, but what is the ON key for example on TilEm ? There can't be a logical key for this one but at least there's an option menu in Wabbitemu telling you that this key is F12 and that you can change it if you don't like it :P
Title: Re: Development Environment for z80 on Linux ?
Post by: Hooloovoo on July 24, 2014, 07:30:45 pm
ON is F12 in tilem as well iirc. I can't test this right now though as I don't have an F12 on my desktop's keyboard.
Title: Re: Development Environment for z80 on Linux ?
Post by: Hayleia on July 25, 2014, 02:21:52 am
ON is F12 in tilem as well iirc. I can't test this right now though as I don't have an F12 on my desktop's keyboard.
Ah ? Weird, I pressed F12 to turn the calc on but it didn't work O.O
Or maybe it was not F12 that I try even though I thought it was -.-

Also, here's what I found on the PDF on TilEm's website:
"The keybindings are defined in a keybindings.ini file (usually copied into /.config/tilem2/keybindings.ini).
There's currently no tool to interactively edit this file, but you can edit it by hand if you do this carefully"
:D