GLBasic forum

Main forum => Off Topic => Topic started by: MrTAToad on 2010-Sep-02

Title: Linux editor
Post by: MrTAToad on 2010-Sep-02
I was wondering whether anyone has thought about doing a GLBasic editor for Linux.

To save doing everything from scratch, I think the easiest way would be to create a custom wizard in Code::Blocks along with a custom lexer setup.

The only downside is how to get it to handle a GLBasic projects...
Title: Re: Linux editor
Post by: Kuron on 2010-Sep-15
Quote from: MrTAToad on 2010-Sep-02
I was wondering whether anyone has thought about doing a GLBasic editor for Linux.
I have thought about it, but it would not be a lot of help without a Linux-based compiler, would it?

I currently use Microsoft Small Basic in the classroom, and I have been been working on a Linux IDE for Small Basic because one of my students only has a Linux-based netbook at home.  This way he has no excuse for not doing his homework ;)
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-15
It could either use GCC directly (after using GPC) or call the C compiler than GLBasic uses...

It would be handy especially as there is/will be a dedicated Mac IDE :)

Would make it more appealing to the average Linux user...

If you need any testing with your IDE, I may be able to help!
Title: Re: Linux editor
Post by: Kuron on 2010-Sep-15
Quote from: MrTAToad on 2010-Sep-15
It could either use GCC directly (after using GPC) or call the C compiler than GLBasic uses...
Unfortunately, GLB only ships with a Windows-based compiler.  There is simply nothing that can be called from a Linux app, is there?

Wouldn't you have to write a hybrid app so that the Linux editor called GLB under Wine in which case you might as well use GLB's editor?
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-15
Probably need to do it the same way Windows does - creates a cywin drive and compiles using that with the Linux libraries
Title: Re: Linux editor
Post by: Kuron on 2010-Sep-15
That would be beyond my pay grade.  I am very much a Linux newbie.
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-15
Yes, that part would present a slight challenge :)
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-16
The average Linux user :


I think that should define it :)
Title: Re: Linux editor
Post by: Kitty Hello on 2010-Sep-16
I can make a linux GPC quite easily. I did one for Mac - it's pretty much a console program without any special flavour.
I think it would be really easy to compile on Linux. The only problem might be the project handling. But code::blocks can do that, can't it? I have no idea if a lexer/parser would be possible to make.
Title: Re: Linux editor
Post by: ketil on 2010-Sep-17
Why not make such an editor in QT4 using QT creator (maybe even use the opensource QT Creator as an foundation).
QT-script for plugins  :)

You could compile the editor to all QT supported OSes.
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-17
Never used QT, myself...
Title: Re: Linux editor
Post by: Cliff3D on 2010-Sep-17
Personally, I'd have thought making an editor in GLBasic would be amusing - if only to show where GLBasic could do with extending? It could mean that the result is exactly as cross-platform-compatible as GLBasic is, if the compiler portion can be compiled for all the platforms as well. An amusing thought for someone like me who has previously enjoyed tinkering with a version of FORTH which was written in its predecessor.
Title: Re: Linux editor
Post by: Kuron on 2010-Sep-17
QuotePersonally, I'd have thought making an editor in GLBasic would be amusing
A text editor was one of the very first things I wrote with GLB many, many years ago.  IIRC, I had the source on my old GLB tutorial site.
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-23
Would you be able to get a (basic) Linux version of GPC going ?  I'm writing a (linux) editor (using DDgui), and aside from needing to find an XML system that works better than mine, it would be handy to see if I can get the Linux program to compile on Linux, for Linux...

It wont be able to do a lot of things, like code folding, code completion etc - the idea is to be able to load, save, compile and run on Linux.
Title: Re: Linux editor
Post by: ketil on 2010-Sep-25
Quote from: MrTAToad on 2010-Sep-23
Would you be able to get a (basic) Linux version of GPC going ?  I'm writing a (linux) editor (using DDgui), and aside from needing to find an XML system that works better than mine, it would be handy to see if I can get the Linux program to compile on Linux, for Linux...

It wont be able to do a lot of things, like code folding, code completion etc - the idea is to be able to load, save, compile and run on Linux.

There are some XML libraries for FreeBasic (www.freebasic.net).
Those should be quick to port.
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-25
Unfortunately there are none that were actually in BASIC  :blink:
Title: Re: Linux editor
Post by: Kuron on 2010-Sep-26
Quote from: MrTAToad on 2010-Sep-23
Would you be able to get a (basic) Linux version of GPC going ?

Who are you asking?
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-26
Gernot
Title: Re: Linux editor
Post by: Kitty Hello on 2010-Sep-27
I'm here!!!
Yes, I'll make you a GPC for Linux. No big deal.
Title: Re: Linux editor
Post by: MrTAToad on 2010-Sep-27
Ah good - I want to see if I can at least get a script going to compile on Linux, for Linux :)
Title: Re: Linux editor
Post by: phaelax on 2010-Oct-19
I too would like to see something running on Linux.  I'd still consider myself inexperience with it, but I'm learning it quickly.

I have an IDE I wrote in Java, changing the keyword file for GLB would be simple. The only tricky part is linking it to the proper compiler. As for handling GLB project files, shouldn't be difficult.
Title: Re: Linux editor
Post by: Kitty Hello on 2010-Oct-20
read the gbap file with a text editor. It's pretty easy.
The gpc is explained in the manual. I'll help you if you need some info.
The "platform.ini" is a file that tells me how to link/compile the generated cpp files then. You can copy/paste the gcc line for linux and just adjust the paths. I'd do that hardcoded for a linux ide.
Title: Re: Linux editor
Post by: bigsofty on 2010-Oct-20
In the way of an early request, if possible, could this be made to run on other platforms from the initial design perspective? I think a cross-platform DDGUI based editor would be a great long-term asset for the GLB community as a whole.

Cheers,


Ian
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-20
Would be handy especially on a Windows CE machine - even if you cant compile anything...
Title: Re: Linux editor
Post by: trucidare on 2010-Oct-21
to compile for linux just call gcc -flags -defines -output -sourcefiles
much simpler than under windows because pre installed toolchain.

for cross tools gcc --target=wince or something else (require cross gcc for these platform))
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-21
Quote from: Ocean on 2010-Oct-21
Quote from: bigsofty on 2010-Oct-20
... I think a cross-platform DDGUI based editor would be a great long-term asset for the GLB community as a whole...

DDGUI based software looks and feels too 'different' to get wide acceptance.   If DDGUI would offer a more native look and feel on each of the supported platforms, I'm with you...

Ocean
Plus, of course, DDgui would be too limiting...
Title: Re: Linux editor
Post by: bigsofty on 2010-Oct-21
I think it would e worth the effort, think of it, GLBasic on almost any platform. If Gernot says its easy to produce  the GPC then he may support more?

If not, then a nod towards cross-platform compatibility would be appreciated (modularise the Linux API calls for example) if open-source if the target.

Cheers,


Ian
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-21
Gernot has suggested a web-based editor, which would then call a small DOS routine.

I think a Java one would be the best, if its fast enough.
Title: Re: Linux editor
Post by: ketil on 2010-Oct-22
In my opinion, web based editors are only great in theory.
Title: Re: Linux editor
Post by: Schranz0r on 2010-Oct-22
Quote from: MrTAToad on 2010-Oct-21
I think a Java one would be the best, if its fast enough.

its fast enough!
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-22
I think we should volunteer you to do it!
Title: Re: Linux editor
Post by: bigsofty on 2010-Oct-22
Well a GLBasic based one would be good as everyone here could contribute.
Title: Re: Linux editor
Post by: Schranz0r on 2010-Oct-23
Its a lot of work and my java experience is really annoying  :S
If someone help me with it maybe i can see a chance :D
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-23
Alas, I've never used Java...
Title: Re: Linux editor
Post by: backslider on 2010-Oct-24
@Schranz0r: I could help you a little bit with Java if you want ;)
Title: Re: Linux editor
Post by: Schranz0r on 2010-Oct-24
Quote from: backslider on 2010-Oct-24
@Schranz0r: I could help you a little bit with Java if you want ;)

Wenn du Zeit und Lust dazu hast können wir gerne einen Versuch starten!
Aber wie gesagt meine Java-kenntnisse halten sich in grenzen :D
Müsste mich erstmal ordentlich einarbeiten!
Title: Re: Linux editor
Post by: ketil on 2010-Oct-25
I have worked alot on big business systems in Java, and I would NEVER consider Java for such a task.
There will be nothing but trouble for the support team when this ide would be run on X number of machines and OS'es.

I think that even Mono is better is a better choise than Java.

But ... as I said earlier: QT IS KING, and QT Creator (VERY good IDE) is opensource.

Consider this:

C++ is the underlaying language of QT Creator as it is on GLB .
It already has perfect codehilightning system and help system.
You could also easily make a QT wrapper for widgets.
QT Creator has it's own plugin system.
QT and QT Creator is also COMPATIBLE WITH SYMBIAN  :good:

Take the "QT Creator" for a testride and check out all the goodies.


Title: Re: Linux editor
Post by: Kitty Hello on 2010-Oct-25
I used Qt in version 3.3.3 and they told me that the Qt creator for 4.x is really good. It's C++, and not the smoothest part of it, though. (At least it was with 3.3.3)
Title: Re: Linux editor
Post by: MrTAToad on 2010-Oct-25
Just need someone proficient in QT then :)
Title: Re: Linux editor
Post by: backslider on 2010-Oct-26
QuoteWenn du Zeit und Lust dazu hast können wir gerne einen Versuch starten!
Aber wie gesagt meine Java-kenntnisse halten sich in grenzen :D
Müsste mich erstmal ordentlich einarbeiten!

Ich weiß ja nicht, wie umfangreich das Projekt sein soll, was die Zeit angeht. ;)
Aber eine "kleine" IDE wäre mit Sicherheit möglich...

Edit: @Ketil: I think you´re right. Mono would be a nice idea, too! Normally I´m programming in C#.Net so it would be easier for me than java I think (I´m using java only in school and I don´t like it so much!)...

Or you write it in QT but then I can´t help *g*

cheers!
Title: Re: Linux editor
Post by: backslider on 2011-Jan-19
*push*

Hi guys!
Now I´ve started to program a GLBasic Linux Editor.
I´m doing it with Mono develop and GTK#.
It´s not very much to see now, but I want to show you my first Gui-Elements. :)
At the moment I´m working on the filehandling for gbap/gbas files.

(http://img269.imageshack.us/img269/6326/glbasiclinuxeditorprevi.png)

cheers.
Title: Re: Linux editor
Post by: Kitty Hello on 2011-Jan-19
Sounds very cool. I hope this will be finished.
Title: Re: Linux editor
Post by: backslider on 2011-Jan-19
I´ve started a Blog now (for interested people) where I will udpate the functions/features and screenshots
when available.

http://www.glbasic.com/forum/index.php?blog=698;sa=topic;id=32 (http://www.glbasic.com/forum/index.php?blog=698;sa=topic;id=32)
Title: Re: Linux editor
Post by: MrTAToad on 2011-Jan-19
It'll could help GLBasic break into the Linux market !
Title: Re: Linux editor
Post by: Ian Price on 2011-Jan-20
QuoteIt'll could help GLBasic break into the Linux market !
GLB appears to be breaking into EVERY market! :P :D
Title: Re: Linux editor
Post by: Kitty Hello on 2011-Jan-20
Breaking into a super market might not be on purpose, though ;)
Title: Re: Linux editor
Post by: backslider on 2011-Jan-20
 =D
Title: Re: Linux editor
Post by: backslider on 2011-Jan-20
Could someone tell me, how to compile this source

http://sourceforge.net/projects/commonplace/files/scintilla-sharp/0.8/scintilla-sharp-src-0.8.zip/download

to a Mono Develop - friendly lib under Linux?
thanks.