Recent

Author Topic: How to compile from Ubuntu in QT4 witgeset  (Read 10003 times)

cpalx

  • Hero Member
  • *****
  • Posts: 754
How to compile from Ubuntu in QT4 witgeset
« on: January 16, 2011, 03:45:11 am »
I tried to compile my app in QT widgeset but display a message,

osprinters.pas(45,7) Fatal: Can't find unit qt4 used by OSPrinters

i installed qt4-dev and all qtlibs,  i dont know what else to do.
 

i use last svn lazarus
FPC 2.4.2

Linux Ubuntu  10.10

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #1 on: January 16, 2011, 03:56:32 am »
I tried to compile my app in QT widgeset but display a message,

osprinters.pas(45,7) Fatal: Can't find unit qt4 used by OSPrinters

i installed qt4-dev and all qtlibs,  i dont know what else to do.

Try compiling printer4lazarus.lpk and set the widget set to Qt.

You can also do it at the command line. For example:

~/lazarus/lazbuild -B --ws=qt ~/lazarus/components/printers/printer4lazarus.lpk

If you haven't compiled printers for your widgetset, you often get errors when you try to compile an app that depends on printers. This trips me up a lot when I test other widgetsets on Mac.

Thanks.

-Phil

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #2 on: January 16, 2011, 04:02:03 am »
so i have to compile printer4lazarus.lpk any time i change the witgeset?

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #3 on: January 16, 2011, 04:07:53 am »
Right. It's like compiling the LCL against a widgetset before you can use it.

Not sure why the printers stuff isn't just part of the LCL.

When you compile printers, you'll get additional .o/.ppu files in components/printers/lib/i386-xxx/qt.

Thanks.

-Phil

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #4 on: January 16, 2011, 04:15:12 am »
Thanks, it complied (For QT and GTK2). I will made some test. Thanks a lot.

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #5 on: January 16, 2011, 04:16:58 am »
OpenDialog crash ...

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #6 on: January 16, 2011, 04:26:30 am »
OpenDialog crash ...

I haven't used Qt in a long time. Looking at the Qt interface Web page, it looks like there's some issues with the latest Qt libraries (4.7).

What version of Qt itself are you using?

What version of the Qt interface?

Thanks.

-Phil

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #7 on: January 16, 2011, 04:30:38 am »
i have 4.7.

But, now a recomplied lazarus in GTK2, and compiled my app in QT and now works fine ...

cpalx

  • Hero Member
  • *****
  • Posts: 754
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #8 on: January 16, 2011, 04:32:48 am »
mm no, same problem ... i will see if there is the bud reported besides i will post it. Thanks

jmLandsvik

  • New Member
  • *
  • Posts: 29
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #9 on: April 09, 2011, 02:02:01 pm »
Hi all

I have the same problem with my Mint KDE/64 installation!

Lazarus 0.9.28.2-10ubuntu1 beta, FPC 2.4.0 (SVN 22277)

btw, can I update Lazarus to .9.30 without waiting for it to show up in the repository?

tnx.
Jan Magne

Blaazen

  • Hero Member
  • *****
  • Posts: 3241
  • POKE 54296,15
    • Eye-Candy Controls
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #10 on: April 09, 2011, 02:12:44 pm »
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Leledumbo

  • Hero Member
  • *****
  • Posts: 8831
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to compile from Ubuntu in QT4 witgeset
« Reply #11 on: April 09, 2011, 06:42:52 pm »
Quote
OpenDialog crash ...
Isn't it because of the QtCurve?

 

TinyPortal © 2005-2018