Sign in Join

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

Mailing lists / lazarus / 2000-04

Calling the compiler

36 messages · 12 people ·

Reply by email Subscribe to this list Your subscription

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

codepunk
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…

I think we should run the compiler directly to avoid confusion. I don't think people would like messing with make files. I have used the KDevelop app for some time now and this is the method by which they run GCC and is also the reason so many people have trouble with it. I think we can get more reliability it we run it ourselves.

Cliff

Jeff Wormsley wrote 21 lines
Can this be done similar to the way a C++Builder project is handled: ie. Create a makefile. Then the ide would create the makefile and then call make to compile, rather than calling ppc directly. Or is there any merit to this at all? Jeff. On 04/16/2000 at 9:10 PM Curtis White wrote: >I actually have some info on how to do this, including how to capture the >output. I will try to get the compiler working within the next couple days. I >already have the compiler options dialog created, so it just needs to put those >options together and send them to the compiler. I will see if I can get it >going. > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Marc Weustink
to codepunk

+ From: codepunk
+
+ I think we should run the compiler directly to avoid
+ confusion. I don't think people would like messing with
+ make files. I have used the KDevelop app for
+ some time now and this is the method by which they run GCC
+ and is also the reason so many people have trouble with it.
+ I think we can get more reliability it we run it ourselves.

Same here.
Makefiles are OK if you want to build a complete project (ie Lazarus) without IDE. I think from the IDE we should call the compiler directly.

Marc

Reply by email

Michael Van Canneyt
to codepunk: I think we should run the compiler directly to avoid confusion. I don't think people…
codepunk wrote 5 lines
I think we should run the compiler directly to avoid confusion. I don't think people would like messing with make files. I have used the KDevelop app for some time now and this is the method by which they run GCC and is also the reason so many people have trouble with it. I think we can get more reliability it we run it ourselves.
I agree with Cliff;

Calling the compiler directly eliminates possible bugs in Makefiles, false dependencies, eliminates the need for make, and will work faster...

Not to mention that make gets totally confused if you have interdependency of units.

You can use some makefile kind of project group (If you look at the project group in Delphi, you'll see that it _IS_ a makefile); but I wouldn't put any rules in some targets...

Michael.

Reply by email

Curtis White
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…

I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

Curtis

Shane Miller wrote 59 lines
One thing that would be cool to add soon would be the ability to compile within Lazarus. All I want to be able to do a spawn the compiler and add a define to it. The define would be to define GTK or QT for selecting a widget. How do I do this under Linux? How do I execute the ppc386 compiler or makefile? Also, I would like to capture the output to show in a window in Lazarus... --------------------------------------- Shane Miller Take a look at other product/projects of mine below! Get paid to surf the net! http://alladvantage.com/go.asp?refid=DEX-870 Get paid to surf the net by clicking here too!!! http://epipo.com/sine.asp?dex870 Home page : http://www.lakefield.net/~smiller Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard Lazarus : http://www.lazarus.freepascal.org ----- Original Message ----- From: "codepunk" To: Sent: Monday, April 17, 2000 1:28 AM Subject: [lazarus] Hello screenshots in GTK and QT > Here are the screenshots of hello world in QT and GTK. > > Qt is at http://www.codepunk.com/files/hqt.jpg > GTK is at http://www.codepunk.com/files/hgtk.jpg > > To bad they look almost exactly the same. Or maybe that is a good thing, yes > methinks it is good. > > All I did to build it is compiled the gtk one then i blew away all the old > ppu's and .o files. I opened interfaces.pp and uncommented qt and recompiled > pretty cool stuff. > > Cliff > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus
---------------------------------- Curtis White http://www.aracnet.com/~cwhite/ ----------------------------------

Reply by email

Shane Miller

I quickly tried the TProcess class.
I used the following:

var
CProcess : TProcess;
Begin
CProcess := TProcess.Create('ppc386 lazarus.pp',[poRunSuspended]);
CProcess.ShowWindow := true;
CProcess.Execute;
end;

I ended up with a few errors and it crashed Lazarus. Am I using it correctly or am I missing something. Shane

>> 04/17/00 03:00AM >>>
Curtis White wrote 5 lines
I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

To keep things portable, have a look at the TProcess class in the FCL. This allows you to spawn the compiler, and capture it's output in streams. Using the asyncio unit you can make it as if it was a background process. There are example programs for both units.

Both components are well-tested. TProcess is even used in commercial apps...

Michael.

Show quoted text 81 lines
Curtis Shane Miller wrote: > One thing that would be cool to add soon would be the ability to compile > within Lazarus. All I want to be able to do a spawn the compiler and add a > define to it. The define would be to define GTK or QT for selecting a > widget. > > How do I do this under Linux? How do I execute the ppc386 compiler or > makefile? > Also, I would like to capture the output to show in a window in Lazarus... > > --------------------------------------- > Shane Miller > Take a look at other product/projects of mine below! > > Get paid to surf the net! > http://alladvantage.com/go.asp?refid=DEX-870 > > Get paid to surf the net by clicking here too!!! > http://epipo.com/sine.asp?dex870 > > Home page : http://www.lakefield.net/~smiller > > Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip > > Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard > > Lazarus : http://www.lazarus.freepascal.org > > ----- Original Message ----- > From: "codepunk" > To: > Sent: Monday, April 17, 2000 1:28 AM > Subject: [lazarus] Hello screenshots in GTK and QT > > > Here are the screenshots of hello world in QT and GTK. > > > > Qt is at http://www.codepunk.com/files/hqt.jpg > > GTK is at http://www.codepunk.com/files/hgtk.jpg > > > > To bad they look almost exactly the same. Or maybe that is a good thing, > yes > > methinks it is good. > > > > All I did to build it is compiled the gtk one then i blew away all the old > > ppu's and .o files. I opened interfaces.pp and uncommented qt and > recompiled > > pretty cool stuff. > > > > Cliff > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus -- ---------------------------------- Curtis White http://www.aracnet.com/~cwhite/ ---------------------------------- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Florian Klaempfl
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…
Marc Weustink wrote 9 lines
+ From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get + everything working with the command line, especially on Win9x + where the command line length is very constrained. There you have a point

In this case you can use a response file: Just write all parameters to param.tmp for example and the call the compiler with
ppc386 @param.tmp myprogram.pp
To do this with GNU Make is much harder afaik. Only Borland Make provides a response file generated by the make utility.

Reply by email

Shane Miller

I got it to work. I had to add the path to ppc386.... Shane

>> 04/17/00 09:10AM >>>

I quickly tried the TProcess class.
I used the following:

var
CProcess : TProcess;
Begin
CProcess := TProcess.Create('ppc386 lazarus.pp',[poRunSuspended]);
CProcess.ShowWindow := true;
CProcess.Execute;
end;

I ended up with a few errors and it crashed Lazarus. Am I using it correctly or am I missing something. Shane

>> 04/17/00 03:00AM >>>
Curtis White wrote 5 lines
I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

To keep things portable, have a look at the TProcess class in the FCL. This allows you to spawn the compiler, and capture it's output in streams. Using the asyncio unit you can make it as if it was a background process. There are example programs for both units.

Both components are well-tested. TProcess is even used in commercial apps...

Michael.

Show quoted text 81 lines
Curtis Shane Miller wrote: > One thing that would be cool to add soon would be the ability to compile > within Lazarus. All I want to be able to do a spawn the compiler and add a > define to it. The define would be to define GTK or QT for selecting a > widget. > > How do I do this under Linux? How do I execute the ppc386 compiler or > makefile? > Also, I would like to capture the output to show in a window in Lazarus... > > --------------------------------------- > Shane Miller > Take a look at other product/projects of mine below! > > Get paid to surf the net! > http://alladvantage.com/go.asp?refid=DEX-870 > > Get paid to surf the net by clicking here too!!! > http://epipo.com/sine.asp?dex870 > > Home page : http://www.lakefield.net/~smiller > > Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip > > Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard > > Lazarus : http://www.lazarus.freepascal.org > > ----- Original Message ----- > From: "codepunk" > To: > Sent: Monday, April 17, 2000 1:28 AM > Subject: [lazarus] Hello screenshots in GTK and QT > > > Here are the screenshots of hello world in QT and GTK. > > > > Qt is at http://www.codepunk.com/files/hqt.jpg > > GTK is at http://www.codepunk.com/files/hgtk.jpg > > > > To bad they look almost exactly the same. Or maybe that is a good thing, > yes > > methinks it is good. > > > > All I did to build it is compiled the gtk one then i blew away all the old > > ppu's and .o files. I opened interfaces.pp and uncommented qt and > recompiled > > pretty cool stuff. > > > > Cliff > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus -- ---------------------------------- Curtis White http://www.aracnet.com/~cwhite/ ---------------------------------- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller

Look at the unitlist class and make sure the compiler compiles the first entry in this class. The first unit should be the project unit. This only should occur when they select Build Project of course...

Shane

>> 04/16/00 11:05PM >>>

I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

Curtis

Shane Miller wrote 59 lines
One thing that would be cool to add soon would be the ability to compile within Lazarus. All I want to be able to do a spawn the compiler and add a define to it. The define would be to define GTK or QT for selecting a widget. How do I do this under Linux? How do I execute the ppc386 compiler or makefile? Also, I would like to capture the output to show in a window in Lazarus... --------------------------------------- Shane Miller Take a look at other product/projects of mine below! Get paid to surf the net! http://alladvantage.com/go.asp?refid=DEX-870 Get paid to surf the net by clicking here too!!! http://epipo.com/sine.asp?dex870 Home page : http://www.lakefield.net/~smiller Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard Lazarus : http://www.lazarus.freepascal.org ----- Original Message ----- From: "codepunk" To: Sent: Monday, April 17, 2000 1:28 AM Subject: [lazarus] Hello screenshots in GTK and QT > Here are the screenshots of hello world in QT and GTK. > > Qt is at http://www.codepunk.com/files/hqt.jpg > GTK is at http://www.codepunk.com/files/hgtk.jpg > > To bad they look almost exactly the same. Or maybe that is a good thing, yes > methinks it is good. > > All I did to build it is compiled the gtk one then i blew away all the old > ppu's and .o files. I opened interfaces.pp and uncommented qt and recompiled > pretty cool stuff. > > Cliff > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus
---------------------------------- Curtis White http://www.aracnet.com/~cwhite/ ---------------------------------- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Peter Vreman
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…
Show quoted text 15 lines
+ Ok. The only reason I asked is that it is difficult to get + everything working with the command line, especially on Win9x + where the command line length is very constrained. There you have a point + It seemed + that since everything now can be done via makefile, that it + would be easier to get this working than incorporating the + make functionality. I hadn't realized the difficulties + involved in unit interdependancy. Hmm... The working Makefiles as you see them is just no the surface. They compile everything for any target to solve unit interdependancy. This is not the way to go in the future.

I want to recreate fpcmake to have multiple backends. One would be an internal dependency solver and one would be a Makefile writer. This unit can then be used in lazarus/kassandra.

Peter

Reply by email

Jeff Wormsley
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…

Can this be done similar to the way a C++Builder project is handled: ie. Create a makefile. Then the ide would create the makefile and then call make to compile, rather than calling ppc directly.

Or is there any merit to this at all?

Jeff.

PM Curtis White wrote 6 lines
I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

Reply by email

Florian Klaempfl
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…
Jeff Wormsley wrote 6 lines
Can this be done similar to the way a C++Builder project is handled: ie. Create a makefile. Then the ide would create the makefile and then call make to compile, rather than calling ppc directly. Or is there any merit to this at all?

I think there is no need for this: FPC has a build in make while C compilers doesn't have such a thing. Even more, for cyclic dependend units, you can't create a makefile.

Reply by email

Michael Van Canneyt
to Shane Miller: I quickly tried the TProcess class. I used the following: var CProcess : TProcess; Begin…
Shane Miller wrote 14 lines
I quickly tried the TProcess class. I used the following: var CProcess : TProcess; Begin CProcess := TProcess.Create('ppc386 lazarus.pp',[poRunSuspended]); CProcess.ShowWindow := true; CProcess.Execute; end; I ended up with a few errors and it crashed Lazarus. Am I using it correctly or am I missing something. Shane

The showwindow doesn't work under Linux yet. The component was originally written for Win32 and not all of the windows features have been ported.

Look at the testproc.pp example; the options you should use for compiling are in that example:

Var S : TProcess;
    Buf : Array[1..BUFSIZE] of char;
    I,Count : longint;
    Line : String
begin
  S:=TProcess.Create('/path/to/ppc386 myfile.pp',[poExecuteOnCreate,poUsePipes,poNoConsole]);
  Repeat
    Count:=s.output.read(buf,BufSize);
    // Display buf in a memo, or parse it...
  until Count=0;
  writeln;
  S.Free;
end.
Show quoted text 114 lines
>>> 04/17/00 03:00AM >>> On Sun, 16 Apr 2000, Curtis White wrote: > I actually have some info on how to do this, including how to capture the > output. I will try to get the compiler working within the next couple days. I > already have the compiler options dialog created, so it just needs to put those > options together and send them to the compiler. I will see if I can get it > going. To keep things portable, have a look at the TProcess class in the FCL. This allows you to spawn the compiler, and capture it's output in streams. Using the asyncio unit you can make it as if it was a background process. There are example programs for both units. Both components are well-tested. TProcess is even used in commercial apps... Michael. > > > Curtis > > > Shane Miller wrote: > > > One thing that would be cool to add soon would be the ability to compile > > within Lazarus. All I want to be able to do a spawn the compiler and add a > > define to it. The define would be to define GTK or QT for selecting a > > widget. > > > > How do I do this under Linux? How do I execute the ppc386 compiler or > > makefile? > > Also, I would like to capture the output to show in a window in Lazarus... > > > > --------------------------------------- > > Shane Miller > > Take a look at other product/projects of mine below! > > > > Get paid to surf the net! > > http://alladvantage.com/go.asp?refid=DEX-870 > > > > Get paid to surf the net by clicking here too!!! > > http://epipo.com/sine.asp?dex870 > > > > Home page : http://www.lakefield.net/~smiller > > > > Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip > > > > Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard > > > > Lazarus : http://www.lazarus.freepascal.org > > > > ----- Original Message ----- > > From: "codepunk" > > To: > > Sent: Monday, April 17, 2000 1:28 AM > > Subject: [lazarus] Hello screenshots in GTK and QT > > > > > Here are the screenshots of hello world in QT and GTK. > > > > > > Qt is at http://www.codepunk.com/files/hqt.jpg > > > GTK is at http://www.codepunk.com/files/hgtk.jpg > > > > > > To bad they look almost exactly the same. Or maybe that is a good thing, > > yes > > > methinks it is good. > > > > > > All I did to build it is compiled the gtk one then i blew away all the old > > > ppu's and .o files. I opened interfaces.pp and uncommented qt and > > recompiled > > > pretty cool stuff. > > > > > > Cliff > > > > > > _________________________________________________________________ > > > To unsubscribe: mail with > > > "unsubscribe" as the Subject > > > archives at http://www.miraclec.com/list_archives/lazarus > > > > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > -- > ---------------------------------- > Curtis White > > http://www.aracnet.com/~cwhite/ > ---------------------------------- > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Jeff Wormsley
to Michael Van Canneyt: I agree with Cliff; Calling the compiler directly eliminates possible bugs in Makefiles,…
Show quoted text 11 lines
On Mon, 17 Apr 2000, codepunk wrote: Calling the compiler directly eliminates possible bugs in Makefiles, false dependencies, eliminates the need for make, and will work faster... Not to mention that make gets totally confused if you have interdependency of units. You can use some makefile kind of project group (If you look at the project group in Delphi, you'll see that it _IS_ a makefile); but I wouldn't put any rules in some targets...

Ok. The only reason I asked is that it is difficult to get everything working with the command line, especially on Win9x where the command line length is very constrained. It seemed that since everything now can be done via makefile, that it would be easier to get this working than incorporating the make functionality. I hadn't realized the difficulties involved in unit interdependancy.

Jeff.

Reply by email

Michael Van Canneyt
to Curtis White: I actually have some info on how to do this, including how to capture the output. I will…
Curtis White wrote 5 lines
I actually have some info on how to do this, including how to capture the output. I will try to get the compiler working within the next couple days. I already have the compiler options dialog created, so it just needs to put those options together and send them to the compiler. I will see if I can get it going.

To keep things portable, have a look at the TProcess class in the FCL. This allows you to spawn the compiler, and capture it's output in streams. Using the asyncio unit you can make it as if it was a background process. There are example programs for both units.

Both components are well-tested. TProcess is even used in commercial apps...

Michael.

Show quoted text 81 lines
Curtis Shane Miller wrote: > One thing that would be cool to add soon would be the ability to compile > within Lazarus. All I want to be able to do a spawn the compiler and add a > define to it. The define would be to define GTK or QT for selecting a > widget. > > How do I do this under Linux? How do I execute the ppc386 compiler or > makefile? > Also, I would like to capture the output to show in a window in Lazarus... > > --------------------------------------- > Shane Miller > Take a look at other product/projects of mine below! > > Get paid to surf the net! > http://alladvantage.com/go.asp?refid=DEX-870 > > Get paid to surf the net by clicking here too!!! > http://epipo.com/sine.asp?dex870 > > Home page : http://www.lakefield.net/~smiller > > Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip > > Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard > > Lazarus : http://www.lazarus.freepascal.org > > ----- Original Message ----- > From: "codepunk" > To: > Sent: Monday, April 17, 2000 1:28 AM > Subject: [lazarus] Hello screenshots in GTK and QT > > > Here are the screenshots of hello world in QT and GTK. > > > > Qt is at http://www.codepunk.com/files/hqt.jpg > > GTK is at http://www.codepunk.com/files/hgtk.jpg > > > > To bad they look almost exactly the same. Or maybe that is a good thing, > yes > > methinks it is good. > > > > All I did to build it is compiled the gtk one then i blew away all the old > > ppu's and .o files. I opened interfaces.pp and uncommented qt and > recompiled > > pretty cool stuff. > > > > Cliff > > > > _________________________________________________________________ > > To unsubscribe: mail with > > "unsubscribe" as the Subject > > archives at http://www.miraclec.com/list_archives/lazarus > > > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus -- ---------------------------------- Curtis White http://www.aracnet.com/~cwhite/ ---------------------------------- _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Curtis White
to Michael Van Canneyt

Where can I find the examples for these? I found the test program for TProcess in the fcl/tests directory, but I can't find the example for the asyncio class.

Curtis

Michael Van Canneyt wrote 17 lines
On Sun, 16 Apr 2000, Curtis White wrote: > I actually have some info on how to do this, including how to capture the > output. I will try to get the compiler working within the next couple days. I > already have the compiler options dialog created, so it just needs to put those > options together and send them to the compiler. I will see if I can get it > going. To keep things portable, have a look at the TProcess class in the FCL. This allows you to spawn the compiler, and capture it's output in streams. Using the asyncio unit you can make it as if it was a background process. There are example programs for both units. Both components are well-tested. TProcess is even used in commercial apps... Michael.

Reply by email

Marc Weustink
to Jeff Wormsley: Ok. The only reason I asked is that it is difficult to get everything working with the…

+ From: Jeff Wormsley
+
+ Ok. The only reason I asked is that it is difficult to get
+ everything working with the command line, especially on Win9x
+ where the command line length is very constrained.

There you have a point

+ It seemed
+ that since everything now can be done via makefile, that it
+ would be easier to get this working than incorporating the
+ make functionality. I hadn't realized the difficulties
+ involved in unit interdependancy.

Hmm... The working Makefiles as you see them is just no the surface. They compile everything for any target to solve unit interdependancy. This is not the way to go in the future.

Marc

Reply by email

Shane Miller
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…

One thing that would be cool to add soon would be the ability to compile within Lazarus. All I want to be able to do a spawn the compiler and add a define to it. The define would be to define GTK or QT for selecting a widget.

How do I do this under Linux? How do I execute the ppc386 compiler or makefile?
Also, I would like to capture the output to show in a window in Lazarus...

---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!

Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870

Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870

Home page : http://www.lakefield.net/~smiller

Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip

Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard

Lazarus : http://www.lazarus.freepascal.org

Earlier message 28 lines
----- Original Message ----- From: "codepunk" To: Sent: Monday, April 17, 2000 1:28 AM Subject: [lazarus] Hello screenshots in GTK and QT > Here are the screenshots of hello world in QT and GTK. > > Qt is at http://www.codepunk.com/files/hqt.jpg > GTK is at http://www.codepunk.com/files/hgtk.jpg > > To bad they look almost exactly the same. Or maybe that is a good thing, yes > methinks it is good. > > All I did to build it is compiled the gtk one then i blew away all the old > ppu's and .o files. I opened interfaces.pp and uncommented qt and recompiled > pretty cool stuff. > > Cliff > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

codepunk
to codepunk: Here are the screenshots of hello world in QT and GTK. Qt is at…

Hmm.... The safest way I think would be to run the compiler off of a shell command blowing the output of the compile to temp file and then showing that in a memo component. This way if the compiler explodes in a ball of fire it will not take the ide down with it. Trust me I seen it go up in smoke quite a few times in the last couple of days while implementing the QT hack.

Cliff

Shane Miller wrote 60 lines
One thing that would be cool to add soon would be the ability to compile within Lazarus. All I want to be able to do a spawn the compiler and add a define to it. The define would be to define GTK or QT for selecting a widget. How do I do this under Linux? How do I execute the ppc386 compiler or makefile? Also, I would like to capture the output to show in a window in Lazarus... --------------------------------------- Shane Miller Take a look at other product/projects of mine below! Get paid to surf the net! http://alladvantage.com/go.asp?refid=DEX-870 Get paid to surf the net by clicking here too!!! http://epipo.com/sine.asp?dex870 Home page : http://www.lakefield.net/~smiller Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard Lazarus : http://www.lazarus.freepascal.org ----- Original Message ----- From: "codepunk" To: Sent: Monday, April 17, 2000 1:28 AM Subject: [lazarus] Hello screenshots in GTK and QT > Here are the screenshots of hello world in QT and GTK. > > Qt is at http://www.codepunk.com/files/hqt.jpg > GTK is at http://www.codepunk.com/files/hgtk.jpg > > To bad they look almost exactly the same. Or maybe that is a good thing, yes > methinks it is good. > > All I did to build it is compiled the gtk one then i blew away all the old > ppu's and .o files. I opened interfaces.pp and uncommented qt and recompiled > pretty cool stuff. > > Cliff > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Sebastian Günther
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…
UAB Diprintas wrote 7 lines
Hi, all! How to BYPASS a StdOut in Linux system of my program? For example, I have compiled a some program, and run it from an terminal. And the user have a SHOCK, when see a "program comments" in the terminal.

I would just write a wrapper script which redirects the output to /dev/null:
yourprogram >/dev/null 2>/dev/null

"2>" redirects StdErr

Under Windows and DOS you would use a batch file
yourprogram >null

- Sebastian

Reply by email

UAB Diprintas
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…

Hi, all!

How to BYPASS a StdOut in Linux system of my program? For example, I have compiled a some program, and run it from an terminal. And the user have a SHOCK, when see a "program comments" in the terminal. When the user run the program with apersand (&) like:

$ ./someprog&

...then program is halted. Is it possible to disable it? (Using Lazarus LCL for Linux)

Thanx.
Regads,
Bogdan M.Maryniuck

Reply by email

codepunk
to Marc Weustink: + From: Bogdan M.Maryniuck (UAB Diprintas) + Hi, all! + Here is a one (small) trouble,…

Marc,

One of the problems seems to be that event triggers are getting called after the gtk lib and or qt libs are calling it quits. I ran into this same problem when implementing the QT library. The lib terminate gets called and then a click event still fires. This causes a core since a access violation occurs when the click tries to access a pointer that has already been destroyed or derefed.

There may be some others but this is one of them.

Cliff

Marc Weustink wrote 26 lines
+ From: Bogdan M.Maryniuck (UAB Diprintas) + Hi, all! + Here is a one (small) trouble, but not too sweet. + When user is CLOSING my program by: [snip] + Segmentation fault + Core is dumped This is a known issue, since it happens on exit it hat a low proprity for me. + buddy... user always can see a red file (about ~1 meg) with + 'core' name -( How to fix it? If you're using bash as shell look at the ulimit -c option Don't know for uther shells. Marc _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Florian Klaempfl
to Michael Van Canneyt: Ah well :( It's just one line to add. I'll have a look. Michael.
Michael Van Canneyt wrote 25 lines
On Tue, 18 Apr 2000, Sebastian [iso-8859-1] G�nther wrote: > Michael Van Canneyt wrote: > > > No, it is not (although it would be extremely easy to add). > > but I see no use in being able to do this, > > you can pass command line of arbitrary length to the compiler without > having to use temporary (immediate) files. > > > > even more I think > > it would be very dangerous since the compiler would only start > > compiling of eof() is reached, which could be 'never' and this > > is potentially dangerous. > > Why? This is just a feature which you can use or you don't use it. It is > meant to be there for IDEs and similar tools, and the "-" filename > interpretation as StdIn is very common under Linux. Ah well :( It's just one line to add. I'll have a look.

Be careful! It isn't that easy, for several reason the compiler reads the config file twice!

Reply by email

Sebastian Günther
to Michael Van Canneyt: No, it is not (although it would be extremely easy to add). but I see no use in being…
Michael Van Canneyt wrote
No, it is not (although it would be extremely easy to add). but I see no use in being able to do this,

you can pass command line of arbitrary length to the compiler without having to use temporary (immediate) files.

even more I think it would be very dangerous since the compiler would only start compiling of eof() is reached, which could be 'never' and this is potentially dangerous.

Why? This is just a feature which you can use or you don't use it. It is meant to be there for IDEs and similar tools, and the "-" filename interpretation as StdIn is very common under Linux.

- Sebastian

Reply by email

Michael Van Canneyt
to Sebastian Günther: BTW, is it possible to use StdIn for this? For example this way: ppc386 @- myprogram.pp -…
Show quoted text 9 lines
Florian Klaempfl wrote: > In this case you can use a response file: Just write > all parameters to param.tmp for example and the call > the compiler with > ppc386 @param.tmp myprogram.pp BTW, is it possible to use StdIn for this? For example this way: ppc386 @- myprogram.pp

No, it is not (although it would be extremely easy to add). but I see no use in being able to do this, even more I think it would be very dangerous since the compiler would only start compiling of eof() is reached, which could be 'never' and this is potentially dangerous.

Michael.

Reply by email

Michael Van Canneyt
to Sebastian Günther: you can pass command line of arbitrary length to the compiler without having to use…
Show quoted text 17 lines
Michael Van Canneyt wrote: > No, it is not (although it would be extremely easy to add). > but I see no use in being able to do this, you can pass command line of arbitrary length to the compiler without having to use temporary (immediate) files. > even more I think > it would be very dangerous since the compiler would only start > compiling of eof() is reached, which could be 'never' and this > is potentially dangerous. Why? This is just a feature which you can use or you don't use it. It is meant to be there for IDEs and similar tools, and the "-" filename interpretation as StdIn is very common under Linux.

Ah well :(

It's just one line to add. I'll have a look.

Michael.

Reply by email

Marc Weustink
to Bogdan M.Maryniuck UAB Diprintas: Hi, all! Here is a one (small) trouble, but not too sweet. When user is CLOSING my…

+ From: Bogdan M.Maryniuck (UAB Diprintas)

+ Hi, all!
+ Here is a one (small) trouble, but not too sweet.
+ When user is CLOSING my program by:

[snip]

+ Segmentation fault
+ Core is dumped

This is a known issue, since it happens on exit it hat a low proprity for me.

+ buddy... user always can see a red file (about ~1 meg) with
+ 'core' name -( How to fix it?

If you're using bash as shell look at the ulimit -c option Don't know for uther shells.

Marc

Reply by email

Michal Bukovjan
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…

You may disable the stdout output by issuing

./someprog >/dev/null

or similar. Not sure how to redirect stdout inside Lazarus, though ...

Michal Bukovjan

UAB Diprintas wrote 20 lines
Hi, all! How to BYPASS a StdOut in Linux system of my program? For example, I have compiled a some program, and run it from an terminal. And the user have a SHOCK, when see a "program comments" in the terminal. When the user run the program with apersand (&) like: $ ./someprog& ...then program is halted. Is it possible to disable it? (Using Lazarus LCL for Linux) Thanx. Regads, Bogdan M.Maryniuck _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Bogdan M.Maryniuck UAB Diprintas
to Marc Weustink: + From: Jeff Wormsley + + Ok. The only reason I asked is that it is difficult to get +…

Hi, all!
Here is a one (small) trouble, but not too sweet.
When user is CLOSING my program by:

procedure someform.button1click(sender:tobject);
begin
    close;   // closing *main* form and exiting the application
end;

...then (in Linux platform -- I don't know about Win32):

Segmentation fault
Core is dumped

Because some memory allocation somewhere is not properly handled (or not???).
Hmm... It's not too bad for 0.1 version: program is terminated and worked properly,
buddy... user always can see a red file (about ~1 meg) with 'core' name -( How to fix it?
Ok, I did it by cr-r-r-reated some file, which is runned my program like:

./program > /dev/null # Removing a garbage from terminal, if user # is runned from it
rm core # Remove the 'core' file ;)

-- remove a StOut & User Shock, when user is runned my program from an terminal,
and remove a 'core' file after my program crash, when exiting ;-)))) Ok, boys, now how
I can to fix it ***inside*** the Lazarus?

Thank you (all).
Best regards,
Bogdan M.Maryniuck

Reply by email