View Full Version : ? about thinAir TOOLS options
EROS:
In the thinAir IDE, under TOOLS, what are the options "COMPILE" and "COMPILE & EXECUTE" supposed to do?
I have FBC installed on my system, but when I try to use either of these options, nothing happens.
Are these options operational yet?
Don B.
ErosOlmi
10-10-2007, 08:36
Ciao Don,
I've moved this post into thinAir forum.
I'm not sure how it works because I do not use it other than for thinBasic. Roberto, thinBasic author, will give more info.
In any case, under thinBasic option dialog (menu windows\options) there is a tab called "Compilers" where to indicate other compilers location. Maybe you have to indicate where your FBC is located. While I'm writing, I'm wondering how to specify command line parameters ... Roberto will tell you more :D
Ciao
Eros
RobertoBianchi
10-10-2007, 09:50
Don,
yes compilers' options are operational but initially compiler's options were added after the compiler executable, later I have put the control on compiler presence and now the result is that it is not more possible to insert them there.
Please wait until I'll add a field on Compilers tab where you can specify the options.
Regards,
Roberto
Eros & Roberto:
Thanks very much for your replies.
Don B.
RobertoBianchi
28-11-2007, 13:40
Hi Don,
In this http://community.thinbasic.com/index.php?topic=1364.msg9663;topicseen#new new version of ThinAir I changed a bit the OPTION/COMPILER tab adding the DEFAULT COMPILER OPTIONS in order to compile with FreeBasic.
I tested this feature with the C:\FreeBasic\examples\curses\colors.bas FreeBasic examples and it seems working fine.
Please see pitures below for more details.
May be that won't be the final layout about this topic but that's all for now.
Best regards,
Roberto
Roberto I can't seem to setup powerbasic to compile properly via thinair.
Can you tell me how you have yours setup?
Here is a screenshot of what I have, Thanks:
RobertoBianchi
17-12-2007, 16:12
Hi Ken,
please check my setup in attached pictures.
Ciao,
Roberto
Thanks Roberto.
It is working now. When I do compile and run it works, but I still get an error compiler not found.... but then the program does run.
And if I do a compile only... I get the error all the time.
I don't have the console compiler at all and so I don't have that setup in the options dialog, could that be the problem?
RobertoBianchi
18-12-2007, 10:34
Ken,
I removed the console compiler from compiler option but again seems working fine.
could you please delete the executable before do compile and run?
If the program still runs then ThinAir is able to compile but may be there is an error on path.
Could you please show the error window and your compiler options?
Thanks,
Roberto
Roberto you are right. I deleted the executable and it never compiles nor can it run it then.
Here is a screenshot of my settings and also you will see where my pbwin is installed.
I appreciate your help. Thanks.
RobertoBianchi
18-12-2007, 14:04
Ken,
settings seem ok, may be the erros it's due to space in source file file path.
In order to test please try to remove space from ...\jose roca\... as ...\joseroca\... and let me know.
Bye,
Roberto
Roberto, I moved the source file to root c: and pressed the compile and run button.
As you can see from the screenshot, it compiled fine this time but it gives an error when trying to run it.
If I go out on my own and double click on the exe, it runs fine.
Thanks for the help, almost there in working it out.
RobertoBianchi
19-12-2007, 13:35
Ken, please find the attached version of ThinAir that should fix the trouble and also handle path with embedded space inside.
Thank you very much and best regards,
Roberto
Roberto, sorry to report... still getting errors.
Here is what I get now. And after I click OK, I get an error that it couldn't find the executable, which makes sense as it didn't compile it.
RobertoBianchi
20-12-2007, 12:29
Ken, seems that the PBWIN.EXE ignore the /I parameter and it's not able to find the include file.
To test that, simply insert the full path in the #include metastatement and let me know.
Meanwhile I'll try to do some work around.
Ciao,
Roberto
That did the trick Roberto.
Thanks!!!
ErosOlmi
20-12-2007, 13:45
Ken,
even if it works, its not the correct way.
I think Roberto has the solution just round the corner ... He is testing ...
Ciao
Eros
RobertoBianchi
20-12-2007, 14:30
Hi Ken,
I forgot that PB compilers are 16-bit executables, now the attached file should work correctly.
Please note that if you want use auto positioning in case of error you should add the /L parameter in the default compiler option (like /IC:\PB\PBWin80\WinAPI\ /L for me).
Ciao,
Roberto
Thanks for the heads up Eros.
Roberto thanks for the fix. It all seems to be working really great now.
Now I can enjoy the nice syntax coloring in my powerbasic sources too using thinAir!
Thanks again!!
ErosOlmi
20-12-2007, 16:26
Ken,
just in case you need Power Basic keywords list, get this download: http://www.powerbasic.com/support/downloads/files/PBWKeys4.zip
Ciao
Eros
Thanks Eros, that will make life a lot easier!
ErosOlmi
21-12-2007, 08:32
I forgot that PB compilers are 16-bit executables, now the attached file should work correctly.
Well, PBW version 804 and PBCC version 404 are true 32bit applications.
In any case the latest way thinAir uses for executing compilation process should be OK in both cases: 16 or 32 bit PB compilers.
Ciao
Eros