Recent

Author Topic: QT On Windows Error  (Read 23822 times)

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: QT On Windows Error
« Reply #15 on: May 24, 2014, 04:52:35 am »
This has become a twice a year event for this forums. So here are the win32 libraries for qt needed to run application compiled for QT on windows. They are based on QT4.8.3  and they where auto created during installation I have no idea how to build them for 64bit nor the will to learn.
http://sourceforge.net/projects/codelibrarian/files/Release/win32%20QTDLL%204%20Lazarus.7z/download

I'll keep them there for now until lazarus jumps to qt5 or events render them unneeded.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

zeljko

  • Hero Member
  • *****
  • Posts: 1054
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT On Windows Error
« Reply #16 on: May 24, 2014, 11:18:16 am »
there is a small problem when building qt dll
"g++ " error:1387 CreateProcess: No Such file or directory
hm...I don't think it's error from Qt4Pas bindings source.Have you followed steps from Qt4Pas README ?

zeljko

  • Hero Member
  • *****
  • Posts: 1054
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT On Windows Error
« Reply #17 on: May 24, 2014, 11:20:44 am »
This has become a twice a year event for this forums. So here are the win32 libraries for qt needed to run application compiled for QT on windows. They are based on QT4.8.3  and they where auto created during installation I have no idea how to build them for 64bit nor the will to learn.
http://sourceforge.net/projects/codelibrarian/files/Release/win32%20QTDLL%204%20Lazarus.7z/download

I'll keep them there for now until lazarus jumps to qt5 or events render them unneeded.

Qt-4.8.3 is buggy and crashes on win32. Better use Qt-4.8.4 which fixed that crashes (in accessible code - null pointer).
For 64bit Qt you must use Qt-4.8.6 and mingw 4.8.2 which can build 32 and 64 bit Qt and Qt4Pas.

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: QT On Windows Error
« Reply #18 on: May 24, 2014, 11:30:39 am »
Qt-4.8.3 is buggy and crashes on win32. Better use Qt-4.8.4 which fixed that crashes (in accessible code - null pointer).
For 64bit Qt you must use Qt-4.8.6 and mingw 4.8.2 which can build 32 and 64 bit Qt and Qt4Pas.

Well I haven't seen any problems using those dlls so far but then again I'm only using them to test custom components with qt widget set for lazarus never had an application with QT on windows.

I'll try to update to 4.8.4 some time before the end of the year but no promises as to when it will happen.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Derit

  • Jr. Member
  • **
  • Posts: 55
Re: QT On Windows Error
« Reply #19 on: June 29, 2014, 12:22:44 pm »
hi zeljko i'm confirmation qt 4.8.6 on windows
work fine....
this qt4pas library compile with qt 4.8.6 you need
http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download

« Last Edit: June 29, 2014, 04:06:20 pm by Derit »
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

vfclists

  • Hero Member
  • *****
  • Posts: 825
    • HowTos Considered Harmful?
Re: QT On Windows Error
« Reply #20 on: July 14, 2014, 02:27:40 pm »
A few questions about QT 4.8.6

What files are needed to develop and run Qt 4 application on windows?

Is the Qt4Pas5.dll attached in the previous reply all that is required?

Are there any examples of MDI programs using Qt?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: QT On Windows Error
« Reply #21 on: July 14, 2014, 11:36:50 pm »
What files are needed to develop and run Qt 4 application on windows?

Is the Qt4Pas5.dll attached in the previous reply all that is required?
Nope, you'll need what the dll depends on: the whole Qt framework
Are there any examples of MDI programs using Qt?
None that I know of, but you can start by creating one form with FormStyle fsMDIForm and another with fsMDIChild, setting the Parent of form fsMDIChild to the form fsMDIForm.

zeljko

  • Hero Member
  • *****
  • Posts: 1054
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: QT On Windows Error
« Reply #22 on: July 15, 2014, 09:14:20 am »
None that I know of, but you can start by creating one form with FormStyle fsMDIForm and another with fsMDIChild, setting the Parent of form fsMDIChild to the form fsMDIForm.

Setting Parent will raise AV afair.
Make main form = fsMDIForm.
For mdichilds (form must be fsMDIChild):
with TMyMDIChild.Create(MainForm or Application) do
  Show;

Leledumbo

  • Hero Member
  • *****
  • Posts: 8108
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: QT On Windows Error
« Reply #23 on: July 15, 2014, 07:00:23 pm »
None that I know of, but you can start by creating one form with FormStyle fsMDIForm and another with fsMDIChild, setting the Parent of form fsMDIChild to the form fsMDIForm.

Setting Parent will raise AV afair.
Make main form = fsMDIForm.
For mdichilds (form must be fsMDIChild):
with TMyMDIChild.Create(MainForm or Application) do
  Show;
Not in here (x86_64-linux-qt), it works just fine and indeed shows MDI behavior.

vfclists

  • Hero Member
  • *****
  • Posts: 825
    • HowTos Considered Harmful?
Re: QT On Windows Error
« Reply #24 on: July 15, 2014, 08:13:07 pm »
I just tried a basic compile with files atttached and got this error.
Quote
The procedure entry point ??1QVariant@@QAE@XZ could not be located in the dynamic link library QtCore4.dll

Is there some dependency on the Lazarus Qt configuration?

hi zeljko i'm confirmation qt 4.8.6 on windows
work fine....
this qt4pas library compile with qt 4.8.6 you need
http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download

Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

Derit

  • Jr. Member
  • **
  • Posts: 55
Re: QT On Windows Error
« Reply #25 on: July 29, 2014, 04:01:29 pm »
qt library wear all modules and resources, not split library that is in use ... and memory usage is big...
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

stocki

  • Full Member
  • ***
  • Posts: 132
Re: QT On Windows Error
« Reply #26 on: August 19, 2014, 05:42:51 pm »
hi zeljko i'm confirmation qt 4.8.6 on windows
work fine....
this qt4pas library compile with qt 4.8.6 you need
http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download

What switches are needed to compile qt4pas5.dll that is able to find the correct entry points in qtxx4.dlls? The one delivered with Lazarus brings errors with latest Qt4.8.

« Last Edit: August 19, 2014, 05:46:23 pm by stocki »

Derit

  • Jr. Member
  • **
  • Posts: 55
Re: QT On Windows Error
« Reply #27 on: December 01, 2014, 12:58:36 pm »
What switches are needed to compile qt4pas5.dll that is able to find the correct entry points in qtxx4.dlls? The one delivered with Lazarus brings errors with latest Qt4.8.
i compile qt4pas5.dll with Qt4.8.5, use it's  dll with Qt ver 4.8.5, old Qt version recompile from source qt4pas5
Lazarus Trunk/FPC Trunk/2.6.2/2.6.4

taazz

  • Hero Member
  • *****
  • Posts: 5363
Re: QT On Windows Error
« Reply #28 on: December 01, 2014, 10:44:04 pm »
hi zeljko i'm confirmation qt 4.8.6 on windows
work fine....
this qt4pas library compile with qt 4.8.6 you need
http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download

What switches are needed to compile qt4pas5.dll that is able to find the correct entry points in qtxx4.dlls? The one delivered with Lazarus brings errors with latest Qt4.8.

Doesn't really matter as far as you use mingw to compile and not gcc or visual studio.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

kwer

  • New Member
  • *
  • Posts: 10
  • Its my fortune to have it, its my fate to lose it.
Re: QT On Windows Error
« Reply #29 on: May 30, 2017, 12:46:56 pm »
This has become a twice a year event for this forums. So here are the win32 libraries for qt needed to run application compiled for QT on windows. They are based on QT4.8.3  and they where auto created during installation I have no idea how to build them for 64bit nor the will to learn.
http://sourceforge.net/projects/codelibrarian/files/Release/win32%20QTDLL%204%20Lazarus.7z/download

I'll keep them there for now until lazarus jumps to qt5 or events render them unneeded.

thanks!
----------------------------------
Duolong, please render me a fastest horse, I must  leave now!
----------------------------------