Sign in Join

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

Mailing lists / lazarus / 2003-08

Lazarus GTK/win32 (was: RE: Newbie Questions)

17 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Michael Van Canneyt
to Marc Weustink: + From: + + + > But I compiled my first hello world :) + + Can you send me the diffs for…
Marc Weustink wrote 10 lines
+ From: + + On Tue, 5 Aug 2003, Marc Weustink wrote: + + > But I compiled my first hello world :) + + Can you send me the diffs for the GTK units ? Then I'll patch the + ones in CVS. OK, but I'll check tonight first what other ifdefs can be removed.

Good. About the image problem: Images work under Windows (see GIMP ;)) but are tricky. You may want to have a look at fpGTK to see where it goes wrong. If that is fixed, the windows/GTK version of lazarus may be used to develop and debug the native Win32 version, which would be a great progress.

Not to mention that then Lazarus is truly cross-platform :-)

Michael.

Reply by email

Michael Van Canneyt
to Marc Weustink: This is an english list, and I guess not all of us understand spanish, so I'll insert the…
Marc Weustink wrote 9 lines
* it is fucked to compile it using any of two * ways, none of the 2 works well .. but .. in some future we will have * someone working.:) I already proved the library wol and it works very * well in windows and is very similar to lazarus, but the problem is * that when I wanted to update to fpc1.0.10 wol it compiles but later * on having executed any application it gives error ....: ( Cant see why fpc 1.0.10 would give a problem, unless you've hit the bug Michael was talking about.

The bug is essentially that event handlers don't work in Delphi mode. I'm surprised Lazarus hasn't hit it before... It means all units use objfpc mode, probably.

Michael.

Reply by email

Miguel

Hola, Miguel,

Hey, I didn�t know I can move all these things :-)

I think too the GTK-Windows thing could be the best solution for a working Lazarus on Windows.

Perhaps GTK Widgets don�t look so good as native Windows ones, but I don't mind about it.

I'll be waiting for the gtk windows patches, REALLY anxious ;-)

Thank you all

Miguel

2003-08-06

Reply by email

Miguel

Hi,

I recently discovered this proyect, and as a Win32 programmer, I was a little discouraged reading about the no-usability of Lazarus under Windows, so

1) What is the status for win32 by now ?
2) Can I design and debug on Linux, and then compile on win32 ?
3) Can I compile using gtk widgets on win32 ?

Thank you in advance,

Miguel

Reply by email

Elio Cuevas Gómez

Hi all.
First i'll introduce myself: My name is Elio, i have been programming in Delphi and Pascal for a while and just recently switched to Linux and Lazarus. I would love to help in the development of Lazarus, as soon as i get used to it, i hope you'll give me the chance.

I have a couple of questions:

1.- I installed lazarus in my system (Debian) directly from the sources using "make install" and everything goes well. But when i compile the projects Lazarus can't find "Interfaces", "LResource", "Controls", etc. So i guess these units aren't installed. Where should i put them?

2.- How do you make a MDI app? I already have a FSMDIFORM Form and a FSMDICHILD form, but when i run the program, both forms are independent one of the other. Is MDI implemented?

Reply by email

Michael Van Canneyt
to Miguel: I recently discovered this proyect, and as a Win32 programmer, I was a little discouraged…
Miguel wrote 5 lines
Hi, I recently discovered this proyect, and as a Win32 programmer, I was a little discouraged reading about the no-usability of Lazarus under Windows, so 1) What is the status for win32 by now ?

Today we tried it in my company:

Most demos seem to be in a more or less working state.

The IDE starts, but you can't type anything in the editor. Most dialogs seem to work, although many settings are not saved. (the path to the compiler, for one thing)

You can drop buttons and other components on forms, this works, but since the editor window itself does not work, this functionality is useless.

2) Can I design and debug on Linux, and then compile on win32 ?

This should be possible. As far as the components work, the programs will also work.

3) Can I compile using gtk widgets on win32 ?

Many examples work, but the IDE itself doesn't. For me it's an open issue whether this is due to GTK-for-win32 itself or due to the workings of the LCL. I've written other GTK applications with almost all available widgets (so not just 'Hello world') which work perfectly on windows. This indicates that it's the LCL which is somewhere at fault, but the general opinion of the Lazarus developers is that it is GTK-for-win32 which doesn't work correctly. Judge for yourself.

Michael.

Reply by email

Marc Weustink
to Marc Weustink: [SNIP] I think it is partly due to the missing GTK functions on the win32 lib. Today I…
Michael Van Canneyt wrote 27 lines
On Tue, 5 Aug 2003, Marc Weustink wrote: > At 00:14 5-8-2003 +0200, Michael Van Canneyt wrote: > > > >On Mon, 4 Aug 2003, Miguel wrote: > > [SNIP] > > > > 3) Can I compile using gtk widgets on win32 ? > > > >Many examples work, but the IDE itself doesn't. For me it's an open issue > >whether this is due to GTK-for-win32 itself or due to the workings of > >the LCL. I've written other GTK applications with almost all available > >widgets (so not just 'Hello world') which work perfectly on windows. This > >indicates that it's the LCL which is somewhere at fault, but the general > >opinion of the Lazarus developers is that it is GTK-for-win32 which > >doesn't work correctly. Judge for yourself. > > I think it is partly due to the missing GTK functions on the win32 lib. > Today I tried to compile, but it failed on GTK_WIDGET_SET_APP_PAINTABLE We must make a distinction between 'not in the GTK unit' and 'not in the win32 GTK dll'. The former doesn't necessarily imply the latter. You can uncomment the {$ifndef win32} around the call mentioned above in the GTK unit, because it is definitely present in the gtk dll.

OK, I thought of the old situation, where not in the unit mostly ment not in the dll.

This is, in fact, true for many of the calls that are still between {$ifndef win32}...

OK

Show quoted text 12 lines
The problem is/was that many of these calls were ifdefed out because the initial win32 version of the GTK dlls indeed didn't have these calls, and this resulted in errors when linking. But the 1.3 version has almost all calls: fpgtk uses most of them, and all works fine. (fpgtk was developed on windows, so...) It's not hard to test: comment all the remaining {$ifndef win32}, see which ones you must uncomment again to be able to link your application... If I find time, I will do it myself. Maybe then lazarus will work on win32 a little faster than expected ;)

I'll try it. Only problem is that we have to build our own gtk unit (again)

What shall I do with the modified gtk unit ?

Marc

Reply by email

Marc Weustink
to Prof. Roberto A. Berrospe Machin: Yo consegui compilar el ultimo lazarus que en realidad lo baje en rpm lo descomprimi en…

Hi,
This is an english list, and I guess not all of us understand spanish, so I'll insert the online translated text here as wel.

+ From: Prof. Roberto A. Berrospe Machin
+
+ Sent: dinsdag 5 augustus 2003 3:01
+
+ Yo consegui compilar el ultimo lazarus que en realidad lo baje en rpm lo
+ descomprimi en linux y luego lo pase a windows, y me compilo sin ningun
+ problemas; pero no funciona bien, se cuelga al abrir el ide...

* I managed to compile the last lazarus who actually lowers it in rpm
* decompressed it in linux and then I spent it to windows, and I compile
* without no my problems; but it does not work well, is hung on having
* opened the ide...

OK, I've seen them both. The win32 version compiles and runs, but you can't edit.
The GTK version compiles runs etc. but without any graphic. However I didn't commit all needed changes yet.

+ Yo estoy haciendo un compilador basic gpl que usa como libreria grafica
+ lazarus y quiero hacerlo crossplataform. por eso estoy deseando que el
+ lazarus funcione 100% en windows, o al menos como en linux ;)

* I am making a compiler basic gpl that lazarus uses like graphical
* library and want to do it crossplataform. because of it am wishing
* that lazarus works 100 in windows, or at least like in linux;)

+ trate de compilarlo en windows usando gtk pero me da no mil, 500 mil
+ errores... es jodido compilarlo usando cualquiera de las dos maneras,
+ ninguna de las 2 funciona bien.. pero.. en algun futuro tendremos alguno
+ funcionando. :) ya probe la libreria wol y funciona muy bien en
+ windows y es
+ muy parecida al lazarus, pero el problema es que cuando quise
+ actualizar al
+ fpc1.0.10 wol compila pero despues al ejecutar cualquier aplicacion da
+ error.... :(

* try to compile it in windows using gtk but it gives me not thousand,
* 500 thousand errors ...

:)

* it is fucked to compile it using any of two
* ways, none of the 2 works well .. but .. in some future we will have
* someone working.:) I already proved the library wol and it works very
* well in windows and is very similar to lazarus, but the problem is
* that when I wanted to update to fpc1.0.10 wol it compiles but later
* on having executed any application it gives error ....: (

Cant see why fpc 1.0.10 would give a problem, unless you've hit the bug Michael was talking about.

Marc

Reply by email

Michael Van Canneyt
to Marc Weustink: [SNIP] I think it is partly due to the missing GTK functions on the win32 lib. Today I…
Marc Weustink wrote 19 lines
At 00:14 5-8-2003 +0200, Michael Van Canneyt wrote: >On Mon, 4 Aug 2003, Miguel wrote: [SNIP] > > 3) Can I compile using gtk widgets on win32 ? > >Many examples work, but the IDE itself doesn't. For me it's an open issue >whether this is due to GTK-for-win32 itself or due to the workings of >the LCL. I've written other GTK applications with almost all available >widgets (so not just 'Hello world') which work perfectly on windows. This >indicates that it's the LCL which is somewhere at fault, but the general >opinion of the Lazarus developers is that it is GTK-for-win32 which >doesn't work correctly. Judge for yourself. I think it is partly due to the missing GTK functions on the win32 lib. Today I tried to compile, but it failed on GTK_WIDGET_SET_APP_PAINTABLE

We must make a distinction between 'not in the GTK unit' and 'not in the win32 GTK dll'. The former doesn't necessarily imply the latter.

You can uncomment the {$ifndef win32} around the call mentioned above in the GTK unit, because it is definitely present in the gtk dll.

This is, in fact, true for many of the calls that are still between
{$ifndef win32}...

The problem is/was that many of these calls were ifdefed out because the initial win32 version of the GTK dlls indeed didn't have these calls, and this resulted in errors when linking.

But the 1.3 version has almost all calls: fpgtk uses most of them, and all works fine. (fpgtk was developed on windows, so...)

It's not hard to test: comment all the remaining {$ifndef win32}, see which ones you must uncomment again to be able to link your application... If I find time, I will do it myself.

Maybe then lazarus will work on win32 a little faster than expected ;)

Michael.

Reply by email

Mattias Gaertner
to Marc Weustink: This is an english list, and I guess not all of us understand spanish, so I'll insert the…
Show quoted text 17 lines
On Tue, 5 Aug 2003, Marc Weustink wrote: > * it is fucked to compile it using any of two > * ways, none of the 2 works well .. but .. in some future we will have > * someone working.:) I already proved the library wol and it works very > * well in windows and is very similar to lazarus, but the problem is > * that when I wanted to update to fpc1.0.10 wol it compiles but later > * on having executed any application it gives error ....: ( > > Cant see why fpc 1.0.10 would give a problem, unless you've hit the bug > Michael was talking about. The bug is essentially that event handlers don't work in Delphi mode. I'm surprised Lazarus hasn't hit it before... It means all units use objfpc mode, probably.

Yes, we hit it. (e.g. Fri, 25 Jul 2003 10:32:02)
And yes again, the mode was simply changed to objfpc. An no, because there are still 4 units with mode delphi. I will change them ...

Mattias

Reply by email

Marc Weustink
to Michael Van Canneyt: Yay !! :/ Can you send me the diffs for the GTK units ? Then I'll patch the ones in CVS.…

+ From:
+
+ On Tue, 5 Aug 2003, Marc Weustink wrote:
+
+ > But I compiled my first hello world :)
+
+ Can you send me the diffs for the GTK units ? Then I'll patch the + ones in CVS.

OK, but I'll check tonight first what other ifdefs can be removed.

+ There is a possibility that we'll release a 1.0.10a version,

:)

+ as we discovered a serious bug in the 1.0.10 :/

AI.

+if this is so, then the patch for GTK will be in it.

OK.

Marc

Reply by email

Michael Van Canneyt
to Marc Weustink: [SNIP] Hmm... I've a running Lazarus :-) Whithout any image :( But I compiled my first…
Marc Weustink wrote 11 lines
At 00:59 5-8-2003 +0200, Marc Weustink wrote: >At 00:43 5-8-2003 +0200, Michael Van Canneyt wrote: [SNIP] >>Maybe then lazarus will work on win32 a little faster than expected ;) > >I'll try it. Only problem is that we have to build our own gtk unit (again) Hmm... I've a running Lazarus :-)

Yay !!

Whithout any image :(

:/

But I compiled my first hello world :)

Can you send me the diffs for the GTK units ? Then I'll patch the ones in CVS.

There is a possibility that we'll release a 1.0.10a version, as we discovered a serious bug in the 1.0.10 :/ if this is so, then the patch for GTK will be in it.

Michael.

Reply by email

Prof. Roberto A. Berrospe Machin
to Michael Van Canneyt: We must make a distinction between 'not in the GTK unit' and 'not in the win32 GTK dll'.…

Yo consegui compilar el ultimo lazarus que en realidad lo baje en rpm lo descomprimi en linux y luego lo pase a windows, y me compilo sin ningun problemas; pero no funciona bien, se cuelga al abrir el ide...

Yo estoy haciendo un compilador basic gpl que usa como libreria grafica lazarus y quiero hacerlo crossplataform. por eso estoy deseando que el lazarus funcione 100% en windows, o al menos como en linux ;)

trate de compilarlo en windows usando gtk pero me da no mil, 500 mil errores... es jodido compilarlo usando cualquiera de las dos maneras, ninguna de las 2 funciona bien.. pero.. en algun futuro tendremos alguno funcionando. :) ya probe la libreria wol y funciona muy bien en windows y es muy parecida al lazarus, pero el problema es que cuando quise actualizar al fpc1.0.10 wol compila pero despues al ejecutar cualquier aplicacion da error.... :(

www.bloc.arachnoware.com

Saludos.

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Prof. Roberto A. Berrospe Machin
Florida - Uruguay
Tel-Fax: +598-353-0783
E-Mail:
MSN:
Web: http://www.binaryuniverse.com
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Earlier message 28 lines
----- Original Message ----- From: "Marc Weustink" To: Sent: Monday, August 04, 2003 9:43 PM Subject: Re: [lazarus] Newbie Questions > At 00:59 5-8-2003 +0200, Marc Weustink wrote: > >At 00:43 5-8-2003 +0200, Michael Van Canneyt wrote: > > [SNIP] > > > >>Maybe then lazarus will work on win32 a little faster than expected ;) > > > >I'll try it. Only problem is that we have to build our own gtk unit (again) > > Hmm... I've a running Lazarus :-) > Whithout any image :( > But I compiled my first hello world :) > > Marc > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Prof. Roberto A. Berrospe Machin
to Marc Weustink: + From: + + + > But I compiled my first hello world :) + + Can you send me the diffs for…

Sorry, i have posted my email in spanish.. i dont know why i do that... Well guys if know that GTK v1 is working under windows because i have tryed the
examples thats RAPIDQ have and FPC too and all works fine... and not only that, i have tryed some others examples thats uses GTK and works really good. (not a good look but works ;) ).

Somebody have a workable gtk version or winapi version of lazarus (please..!!!!!!)
as i have comented i making a gpl basic compiler (translator) thats translate from VB to pascal and you can see the source code (good for learn pascal) thats uses the LCL as main GUI Library.

So, thanks to all of you.. :)

~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Prof. Roberto A. Berrospe Machin
Florida - Uruguay
Tel-Fax: +598-353-0783
E-Mail:
MSN:
Web: http://www.binaryuniverse.com
~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Earlier message 37 lines
----- Original Message ----- From: "Marc Weustink" To: Sent: Tuesday, August 05, 2003 5:47 AM Subject: RE: [lazarus] Newbie Questions > + From: > + > + On Tue, 5 Aug 2003, Marc Weustink wrote: > + > + > But I compiled my first hello world :) > + > + Can you send me the diffs for the GTK units ? Then I'll patch the + ones > in CVS. > > OK, but I'll check tonight first what other ifdefs can be removed. > > + There is a possibility that we'll release a 1.0.10a version, > > :) > > + as we discovered a serious bug in the 1.0.10 :/ > > AI. > > +if this is so, then the patch for GTK will be in it. > > OK. > > Marc > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives >

Reply by email

Marc Weustink
to Miguel: I recently discovered this proyect, and as a Win32 programmer, I was a little discouraged…
Michael Van Canneyt wrote
On Mon, 4 Aug 2003, Miguel wrote:

[SNIP]

Show quoted text 9 lines
> 3) Can I compile using gtk widgets on win32 ? Many examples work, but the IDE itself doesn't. For me it's an open issue whether this is due to GTK-for-win32 itself or due to the workings of the LCL. I've written other GTK applications with almost all available widgets (so not just 'Hello world') which work perfectly on windows. This indicates that it's the LCL which is somewhere at fault, but the general opinion of the Lazarus developers is that it is GTK-for-win32 which doesn't work correctly. Judge for yourself.

I think it is partly due to the missing GTK functions on the win32 lib. Today I tried to compile, but it failed on GTK_WIDGET_SET_APP_PAINTABLE

Marc

Show quoted text 6 lines
Michael. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Mattias Gaertner
to Elio Cuevas Gómez: Hi all. First i'll introduce myself: My name is Elio, i have been programming in Delphi…
Show quoted text 12 lines
Hi all. First i'll introduce myself: My name is Elio, i have been programming in Delphi and Pascal for a while and just recently switched to Linux and Lazarus. I would love to help in the development of Lazarus, as soon as i get used to it, i hope you'll give me the chance. I have a couple of questions: 1.- I installed lazarus in my system (Debian) directly from the sources using "make install" and everything goes well. But when i compile the projects Lazarus can't find "Interfaces", "LResource", "Controls", etc. So i guess these units aren't installed. Where should i put them?

The "make install" is not complete. Gladfully you don't need it. Lazarus is a development tool and its binaries and sources work together. That means, they should stay in one directory.
So, contrary to most c programs, which require "configure", "make", "make install", lazarus only needs "make".
Just put the lazarus directory wherever you like and do a "make" or "make clean all". Sources and binaries live happily together in one directory.

2.- How do you make a MDI app? I already have a FSMDIFORM Form and a FSMDICHILD form, but when i run the program, both forms are independent one of the other. Is MDI implemented?

MDI is not implemented yet. Any help is welcome.

Mattias

Reply by email