Recent

Author Topic: GTK2 problems  (Read 11567 times)

oddjobz

  • Guest
GTK2 problems
« on: January 02, 2005, 08:45:08 pm »
Hi,

I have Lazarus up and running on an x86 machine and it's looking good - only problem I have atm is that gtk2 seems not to want to play ball.

I've followed the instructions in lcl/interfaces/gtk2 and installed gtk2forpascal .. as long as I don't rebuild lazarus when prompted this seems to be Ok. (if I rebuild Lazarus, it crashes and refuses to restart...)

When I then try to compile lcl/interfaces/gtk2/gtk2interface.lpk, it fails with a 1 compilation error...

RegisterUnit( 'atk' , @atk.Register );
>> Identifier not found "Register"

Can anyone shed any light on this ?

thanks ..

Dr.Tyrell

  • Newbie
  • Posts: 1
GTK2 problems
« Reply #1 on: February 01, 2005, 04:24:17 am »
For those who haven't noticed (I did only this past week :) FPC has current working gtk2forlazarus in its packages/extras directory.  And glib/glibconfig.inc is fixed.

My gtk2 compiled Lazarus still crashes when you try to do, well, almost anything!  Comboboxes are a big problem, and any configuration screen, say for example Environment/Editor Options, crashes the program.

We need people who know gtk2 to hunker down and sweat out the code.  I'm not that good of a programmer but will continue to delve.

Lightning

  • Sr. Member
  • ****
  • Posts: 422
GTK2 problems
« Reply #2 on: February 01, 2005, 11:38:20 am »
GTK2 is "work in progress" not usable yet !
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
GTK2 problems
« Reply #3 on: February 01, 2005, 12:57:57 pm »
Oh, Lightning, is there progress?

Lightning

  • Sr. Member
  • ****
  • Posts: 422
GTK2 problems
« Reply #4 on: February 02, 2005, 11:03:31 am »
Vincent didn't you read the IRC logs, some guys managed to compile with GTK2 but apps are still unstable, however Almindor will start working on GTK2 this month and others will contribute to GTK2 support, it seems Mattias has done some good work on GTK2 :)
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Almindor

  • Sr. Member
  • ****
  • Posts: 412
    • http://www.astarot.tk
GTK2 problems
« Reply #5 on: February 04, 2005, 10:44:31 pm »
Not so fast there. I don't want to dissapoint you in the end so I'll do it now ;)
I'm working on it true but that means I'm just trying to understand how LCL uses interfaces and how to debug/code things easy(since the general approach is quite.. complicated (like finding out what's wrong etc.))

I'm not sure when some viable code will come out of this foundry ;)
Don't forget I also have a game to finish.

I'll do what I can, but that doesn't mean anything visible will come out anytime soon.(but hopefully something will, in the least some bugfixes)

Anonymous

  • Guest
GTK2 problems
« Reply #6 on: April 24, 2005, 09:14:39 pm »
Hi.
I'm trying too to use GTK2. It is very pretty tan GTK1.
I have some questions to developers about that.
Why they choose GTK1 in the first moment and never port it fastest for GTK2 and forget GTK1?
Why they use some complicated code? for example in the TList component.
And Why they try to imitate the exact Delphi IDE? May you try to imitate only some aspects. But not just the same and exact Delphi IDE (you lost time trying to make a compatible application).
I think if we don't try to think in too much things we will have more fast a finished work. More fast and easy for us.
Just don't think in too much things I mean what you just first try to search the best option. Later try to work in that option. (Choosing GTK 2 from the begining is a good idea).
Now I'm trying to develop applications in GTK2.
I need a tool. I know just too much Pascal programing. Just my tool maybe based in FPC. But... If I cannot found some good tool (I mean complete and effective) in Pascal, then I will use the actually ready tools in C++. But, I prefer an Ide same as Lazarus but much more flexible and effective.
I will try to work in it. Ok?
Anywhere, you all can reduce time if recreate all LCL in GTK2. And you will win some other features too. GTK2 is more complete and simple than GTK1.
I will try to do so when I will have time.
If you don't make that before me we will have two versions of Lazarus, haha.

Bye. Good Luck. =D

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
GTK2 problems
« Reply #7 on: April 24, 2005, 09:44:24 pm »
Quote from: "Anonymous"
Hi.
I'm trying too to use GTK2. It is very pretty tan GTK1.

Agreed.
Quote
I have some questions to developers about that.
Why they choose GTK1 in the first moment and never port it fastest for GTK2 and forget GTK1?

Because gtk2 was not yet available in summer 1999.

Quote
Just don't think in too much things I mean what you just first try to search the best option. Later try to work in that option. (Choosing GTK 2 from the begining is a good idea).

Until the gtk2 widget set interface is more stable than the gtk1 widget set interface, the gtk1 widget set interface will be maintained. You wouldn't want to end with two broken widget interfaces.

Quote
Anywhere, you all can reduce time if recreate all LCL in GTK2. And you will win some other features too. GTK2 is more complete and simple than GTK1.

It is my estimation that fixing gtk1 bugs is less time consuming, then fixing the GTK2 bugs (in lazarus).
Quote
I will try to do so when I will have time.
If you don't make that before me we will have two versions of Lazarus, haha.

We are looking forward to your patches for the gtk2 widget set interface. The more people contribute, the earlier the gtk2 widget set can be become the default on platforms supporting it.

Hitnrun

  • New Member
  • *
  • Posts: 24
GTK2 problems
« Reply #8 on: June 21, 2007, 03:40:11 pm »
Just wondering, now 2 years after this conversation, is GTK2 in Lazarus stable yet? I looked for this info, but didn't found anything...

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
GTK2 problems
« Reply #9 on: June 21, 2007, 03:57:19 pm »
Not as stable as gtk1.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
GTK2 problems
« Reply #10 on: June 21, 2007, 05:51:20 pm »

 

TinyPortal © 2005-2018