Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-other / 2017-05

Using ideU for beginners

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Breneman

I got a little started: http://wiki.freepascal.org/ideU

Probably should add additional pages for:
A) Example of use (polYdev, translating fpc applications into Java applications with text that started this message thread) B) How to start (for beginners per www.controlpascal.com/tutorial.htm *after* start with mini distributions)
- first step (install complete fpc, compile & run a console program like *Hello World*, introduce debugging?)
- second step (install fpGUI, compile & run Control Terminal)

How simple can we make this?

Paul Breneman
to Paul Breneman
Paul Breneman wrote 12 lines
I got a little started: http://wiki.freepascal.org/ideU Probably should add additional pages for: A) Example of use (polYdev, translating fpc applications into Java applications with text that started this message thread) B) How to start (for beginners per www.controlpascal.com/tutorial.htm *after* start with mini distributions) - first step (install complete fpc, compile & run a console program like *Hello World*, introduce debugging?) - second step (install fpGUI, compile & run Control Terminal) How simple can we make this?

I think that before creating more new pages for beginners that I should do what I mentioned a few days ago. I'm still a beginner myself! :)

From the new wiki page: http://wiki.freepascal.org/ideU

To see ideU in operation (in translating fpc applications into Java applications) watch this 6 MB video:
https://sites.google.com/site/designerext/fpc_java.mp4 and follow these instructions:
http://lists.freepascal.org/pipermail/fpc-pascal/2017-April/050711.html

I'll try to figure out how to do things first on my 64-bit Xubuntu 16.04 for a console program. After that is clear it should be easier to try the same thing on Android?

Fred van Stappen
to Paul Breneman

De : fpc-other de la part de Paul Breneman
Envoyé : dimanche 28 mai 2017 23:46
À :
Objet : Re: [fpc-other] Using ideU for beginners

Paul Breneman wrote 13 lines
I got a little started: http://wiki.freepascal.org/ideU Probably should add additional pages for: A) Example of use (polYdev, translating fpc applications into Java applications with text that started this message thread) B) How to start (for beginners per www.controlpascal.com/tutorial.htm<http://www.controlpascal.com/tutorial.htm> *after* start with mini distributions) - first step (install complete fpc, compile & run a console program like *Hello World*, introduce debugging?) - second step (install fpGUI, compile & run Control Terminal) How simple can we make this?

I think that before creating more new pages for beginners that I should do what I mentioned a few days ago. I'm still a beginner myself! :)

From the new wiki page: http://wiki.freepascal.org/ideU

To see ideU in operation (in translating fpc applications into Java applications) watch this 6 MB video:
https://sites.google.com/site/designerext/fpc_java.mp4 and follow these instructions:
http://lists.freepascal.org/pipermail/fpc-pascal/2017-April/050711.html

I'll try to figure out how to do things first on my 64-bit Xubuntu 16.04 for a console program. After that is clear it should be easier to try the same thing on Android?
_______________________________________________

Hello Paul.

It should be possible because, in fact, fpGUI applications is also a console program.

For a console program a terminal emulator is needed, like Jon Foster explained in that topic : http://free-pascal-general.1045716.n5.nabble.com/fpc-code-for-Java-class-and-Android-td5728166.html

--->

The only thing that console apps need is a terminal emulator. A bunch of ways that can happen and it depends on whether this is to be provided through the Android market or not. If not things are much easier. Terminal emulators abound you can pretty much just pick one.

--->

OK.

Now the challenge is to create a Java class and find the code that will:

--> re-direct the result of main-method of your console-app-transformed-into-Java-library into that emulated-terminal.

So, maybe, the trick could be done with Android too (if there is a Android-terminal-emulator).

Other ideas are welcome.

Fre;D

Paul Breneman
to Paul Breneman: I think that before creating more new pages for beginners that I should do what I…
Paul Breneman wrote 28 lines
On 05/28/2017 09:14 AM, Paul Breneman wrote: > I got a little started: http://wiki.freepascal.org/ideU > > Probably should add additional pages for: > A) Example of use (polYdev, translating fpc applications into Java > applications with text that started this message thread) > B) How to start (for beginners per www.controlpascal.com/tutorial.htm > *after* start with mini distributions) > - first step (install complete fpc, compile & run a console program > like *Hello World*, introduce debugging?) > - second step (install fpGUI, compile & run Control Terminal) > > How simple can we make this? I think that before creating more new pages for beginners that I should do what I mentioned a few days ago. I'm still a beginner myself! :) From the new wiki page: http://wiki.freepascal.org/ideU To see ideU in operation (in translating fpc applications into Java applications) watch this 6 MB video: https://sites.google.com/site/designerext/fpc_java.mp4 and follow these instructions: http://lists.freepascal.org/pipermail/fpc-pascal/2017-April/050711.html I'll try to figure out how to do things first on my 64-bit Xubuntu 16.04 for a console program. After that is clear it should be easier to try the same thing on Android?

I just *easily* translated *two* fpGUI programs into Java applications:
1) memotest from www.turbocontrol.com/easyfpgui.htm
2) ctrlterm from www.ctrlterm.com/

There were only *two* changes to the instructions:
1) *Replace* "begin MainProc;" with "exports ..."
2) *Add* "-fPIC" to compile parameters in memotest.sh and ctrlterm.sh

I'll update the wiki and try a simple console program.

Fred van Stappen
to Paul Breneman: I think that before creating more new pages for beginners that I should do what I…
I'll try to figure out how to do things first on my 64-bit Xubuntu 16.04 for a console program.

Hello Paul.

I have try with console program on Linux Mint 64 ---> no problem, works perfectly.

Please take a look at this video: https://sites.google.com/site/fredvsbinaries/fpg_java_console.mp4

I have try also with a audio console program --> it works.

But of course the java class was run from a terminal.

Fre;D