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...
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 ;)
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!
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?
Probably need to do it the same way Windows does - creates a cywin drive and compiles using that with the Linux libraries
That would be beyond my pay grade. I am very much a Linux newbie.
Yes, that part would present a slight challenge :)
The average Linux user :
- Knows how to switch the computer on and off
- Doesn't need to jot down passwords onto easily viewable bits of paper
- Knows how to update Linux
- Isn't afraid of using GUI nor the Terminal
- Can install packages without help
I think that should define it :)
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.
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.
Never used QT, myself...
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.
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.
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.
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.
Unfortunately there are none that were actually in BASIC :blink:
Quote from: MrTAToad on 2010-Sep-23
Would you be able to get a (basic) Linux version of GPC going ?
Who are you asking?
Gernot
I'm here!!!
Yes, I'll make you a GPC for Linux. No big deal.
Ah good - I want to see if I can at least get a script going to compile on Linux, for Linux :)
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.
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.
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
Would be handy especially on a Windows CE machine - even if you cant compile anything...
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))
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...
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
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.
In my opinion, web based editors are only great in theory.
Quote from: MrTAToad on 2010-Oct-21
I think a Java one would be the best, if its fast enough.
its fast enough!
I think we should volunteer you to do it!
Well a GLBasic based one would be good as everyone here could contribute.
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
Alas, I've never used Java...
@Schranz0r: I could help you a little bit with Java if you want ;)
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!
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.
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)
Just need someone proficient in QT then :)
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!
*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.
Sounds very cool. I hope this will be finished.
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)
It'll could help GLBasic break into the Linux market !
QuoteIt'll could help GLBasic break into the Linux market !
GLB appears to be breaking into EVERY market! :P :D
Breaking into a super market might not be on purpose, though ;)
=D
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.