Recent

Author Topic: Build Lazarus+QT  (Read 20389 times)

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
Build Lazarus+QT
« on: September 27, 2009, 07:32:48 pm »
Hi,

I'm doing some tests, and I downloaded QT SDK for WIndows.

I installed it, and downloaded Lazarus+FPC from daily snapshots of today.

Once Lazarus is opened, Tools->Setup "Build Lazarus"

In Quick Build, I choosed Build IDE with packages, and QT in widgeset. It builded and all seems worked fine, but, when I try to start it, I get the following error:

"No se encuentra el punto de entrada al procedimiento _Z11qt_assert_xPKcS0_S0_i en la biblioteca de vínculos dinámicos QtCore4.dll"

Translated from google: "Can not find the entry point in _Z11qt_assert_xPKcS0_S0_i procedure dynamic-link library QtCore4.dll"

Some idea?

alter

  • Full Member
  • ***
  • Posts: 151
    • KSP website
Re: Build Lazarus+QT
« Reply #1 on: September 27, 2009, 09:45:02 pm »
Did you copy this dll to Lazarus folder? Or system folder.

Lord_ZealoN

  • Full Member
  • ***
  • Posts: 141
    • http://lordzealon.com
Re: Build Lazarus+QT
« Reply #2 on: September 27, 2009, 09:54:04 pm »
I added to the path.

Cheers.

techpro

  • New member
  • *
  • Posts: 12
    • Tech-Pro.net
Re: Build Lazarus+QT
« Reply #3 on: February 26, 2010, 06:19:00 pm »
I did not try to rebuild Lazarus IDE with QT, but I selected this option for one of my applications just to see what difference it made, and I got the exact same error message (only in English!)

I have the qtcore4.dll in the same folder as the compiled program.
Julian

Zaher

  • Hero Member
  • *****
  • Posts: 571
    • parmaja.com
Re: Build Lazarus+QT
« Reply #4 on: February 26, 2010, 09:37:16 pm »
Do not install QT SDK, try another one of QT installer.

Zoran

  • Hero Member
  • *****
  • Posts: 1429
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Build Lazarus+QT
« Reply #5 on: March 26, 2010, 02:03:45 pm »
I can't get QT interface to work.

I put the Qt4Pas.dll in Qt's bin folder, as written in qt binding's readme. But now I'm getting the message "This application failed to start because mingwm10.dll was not found. Re-installing the application may fix the problem."
And no... There is no application whose reinstalation fixes the problem.

Do not install QT SDK, try another one of QT installer.

On qt's download page (http://qt.nokia.com/downloads/), there are three LGPL downloads for Windows:
- Qt SDK for Windows,
- Qt libraries 4.6.2 for Windows (minGW 4.4, 278 MB) -- I was really hoping this one will work, because it contains the same word from the message above -- minGW.
  and
- Qt libraries 4.6.2 for Windows (VS 2008, 194 MB)

All these are huge downloads, but I downloaded them all and tried installing and uninstalling all three. Should I actually install something else?

I am using today's Lazarus snapshot (0.9.29 rev. 24216), Win XP.

techpro

  • New member
  • *
  • Posts: 12
    • Tech-Pro.net
Re: Build Lazarus+QT
« Reply #6 on: March 26, 2010, 02:53:11 pm »
I uninstalled it in the end because I couldn't see any benefit (though I am using qt on Linux because the widgets look better than without.)

I think it was the mingw version that worked, and I think also that I had to copy some dlls (qtcore and a couple of others) into the program path, as they were not installed into the path by the installer. I basically just copied dlls it complained about not finding until it would run.
Julian

Zoran

  • Hero Member
  • *****
  • Posts: 1429
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Build Lazarus+QT
« Reply #7 on: March 26, 2010, 05:22:51 pm »
Thank you, Julian, I just gave up for today. %)
I'll probably try again tomorrow. ;)

zeljko

  • Hero Member
  • *****
  • Posts: 1050
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Build Lazarus+QT
« Reply #8 on: March 26, 2010, 05:59:58 pm »
@Zoran, missing dll is qt's bin directory (think that 4.6 need + 1 dll from that dir). Just copy it to the place where are other Qt dlls (eg Windows/System32), or set env vars (PATH) to that dir.
Also you'll need zlib.dll (if I remember correctly).
btw. qt works nice on windows :)

Zoran

  • Hero Member
  • *****
  • Posts: 1429
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Build Lazarus+QT
« Reply #9 on: March 28, 2010, 12:16:44 pm »
Finally succeded to start qt version of Lazarus!

@Zoran, missing dll is qt's bin directory (think that 4.6 need + 1 dll from that dir). Just copy it to the place where are other Qt dlls (eg Windows/System32), or set env vars (PATH) to that dir.

Including the directory in windows PATH didn't help for some reason. However, copying the dlls to Windows\System32 did! There were eight dlls.
Here is the list of the dlls which I had to copy:

mingwm10.dll, QtCore4.dll, libgcc_s_dw2-1.dll, QtGui4.dll, QtNetwork4.dll, QtWebKit4.dll, QtXmlPatterns4.dll, phonon4.dll.

All of them were originally installed in C:\Qt\2010.02.1\qt\bin directory (not to be confused with C:\Qt\2010.02.1\bin which also exists).

Also you'll need zlib.dll (if I remember correctly).

I found that the file of that name already exists in system32.

btw. qt works nice on windows :)

Yes it does! Unlike Gtk2 which is full of bugs under windows.
« Last Edit: March 28, 2010, 12:21:36 pm by Zoran »

zeljko

  • Hero Member
  • *****
  • Posts: 1050
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: Build Lazarus+QT
« Reply #10 on: March 28, 2010, 07:38:51 pm »
Finally succeded to start qt version of Lazarus!

Glad to hear that :)