Recent

Author Topic: Using GTK2?  (Read 7880 times)

xcap

  • Newbie
  • Posts: 1
Using GTK2?
« on: May 14, 2005, 11:25:38 pm »
Hi

I'd like to know what must I do in order to have my application using gtk2 in linux, because every time I try to compile my project I get the following message:

Fatal: Can't find unit interfaces

I know that I have all the needed packages installed but I don't know how to configure it.

Could someone help me?

Thanks

 :D

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Using GTK2?
« Reply #1 on: May 17, 2005, 10:22:20 am »
You need to compile the interfaces unit for gtk2.

In Lazarus, choose Tools -> Configure build Lazarus.
Set LCL to build and all others to none, uncheck the "Clean all" checkbox and choose the gtk2 LCL interface.
Close the dialog with OK.

Choose Tools -> Build Lazarus.

And try compiling you applocation again.

Mathijs

  • Guest
Using GTK2?
« Reply #2 on: February 25, 2006, 12:41:41 pm »
Quote from: "Vincent"
You need to compile the interfaces unit for gtk2.

In Lazarus, choose Tools -> Configure build Lazarus.
Set LCL to build and all others to none, uncheck the "Clean all" checkbox and choose the gtk2 LCL interface.
Close the dialog with OK.

Choose Tools -> Build Lazarus.

And try compiling you applocation again.


I'm trying to make a 'hello world' gtk2 application. I did what you said: rebuild the LCL with LCL interface set to gtk2. During the recompile of LCL, I got the crypic error message pasted below. Anyone a idea what could be wrong?

Code: [Select]
make[2]: *** [../../units/x86_64-linux/gtk2] Error 1

Cheers,
M.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Using GTK2?
« Reply #3 on: March 20, 2006, 01:26:34 pm »
What is your Lazarus / free pascal version?

Gtk2 works here ...

matthijs

  • Hero Member
  • *****
  • Posts: 537
Using GTK2?
« Reply #4 on: March 20, 2006, 05:26:47 pm »
Quote from: "sekel"
What is your Lazarus / free pascal version?

Gtk2 works here ...


At least he seems to be using 64-bit version. So it might be a X86_64 problem. :)
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

 

TinyPortal © 2005-2018