Lazarus

Programming => Widgetset => QT => Topic started by: Derit on May 20, 2014, 10:43:44 am

Title: QT On Windows Error
Post by: Derit on May 20, 2014, 10:43:44 am
i'm run my app on windows with qt widgetset
i'm download qt 4.8.6 external error found and i'm download qt 4.7.3
procedure entry point error
Title: Re: QT On Windows Error
Post by: zeljko on May 20, 2014, 06:34:27 pm
I don't understand what's your exact problem. Where are Qt dll's on your windows machine ? What version of libQt4Pas.dll do you have ?
Title: Re: QT On Windows Error
Post by: Derit on May 21, 2014, 04:52:33 am
Qt4Pas5.dll ver 5.2.5.0


Title: Re: QT On Windows Error
Post by: zeljko on May 21, 2014, 11:01:06 am
Maybe you did not downloaded mingw based qt libs ? Maybe you have multiple Qt dll's around. You have to check that first.
Title: Re: QT On Windows Error
Post by: Derit on May 21, 2014, 12:24:37 pm
i'm download qt from the link http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe (http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe)

and MinGW-gcc-4.4.0
Title: Re: QT On Windows Error
Post by: zeljko on May 21, 2014, 03:29:54 pm
i'm download qt from the link http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe (http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe)

and MinGW-gcc-4.4.0
Why 4.7.3 ? Why not 4.8.5 or 4.8.6 ?
Title: Re: QT On Windows Error
Post by: Derit on May 21, 2014, 04:02:53 pm
i'm download qt from the link http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe (http://ftp.heanet.ie/mirrors/ftp.trolltech.com/pub/qt/pub/source/qt-win-opensource-4.7.3-mingw.exe)

and MinGW-gcc-4.4.0
Why 4.7.3 ? Why not 4.8.5 or 4.8.6 ?

QT 4.8.6 external error on windows... on time debuging...
Title: Re: QT On Windows Error
Post by: zeljko on May 21, 2014, 06:45:05 pm
Please: check your filesystem for Qt dll's.Probably you have installed multiple dlls around. I'm using Qt-4.8.5 on Windows XP/Win7 without problems.
Title: Re: QT On Windows Error
Post by: Derit on May 22, 2014, 09:11:29 am
my problem same with post 557.0
http://forum.lazarus.freepascal.org/index.php?topic=7557.0 (http://forum.lazarus.freepascal.org/index.php?topic=7557.0)

"Can not find the entry point in _Z11qt_assert_xPKcS0_S0_i procedure dynamic-link library QtCore4.dll" on qt 4.7.3  on qt 4.8.6 external error
Title: Re: QT On Windows Error
Post by: zeljko on May 22, 2014, 05:11:23 pm
But that problem is solved. Have you seen what Zoran says about dlls ?
Title: Re: QT On Windows Error
Post by: Derit on May 23, 2014, 06:50:02 am
yes i seen what Zoran says about dlls but not work

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

zoran say "All of them were originally installed"

mingwm10.dll not exist in dir "C:\Qt\4.8.6\bin"  i also install mingw32
mingwm10.dll not exist...
Title: Re: QT On Windows Error
Post by: zeljko on May 23, 2014, 07:12:14 am
and zlib.dll must be there or in C:\Windows\System32.
I really don't know what's up with your installation, I'll download 4.8.6 and try it.
Title: Re: QT On Windows Error
Post by: zeljko on May 23, 2014, 05:12:19 pm
ok. 4.8.6 does not work per default. I have 4.8.4 and that one works with Qt4Pas.dll from official site.
For 4.8.6 you need libgcc_s_dw2-1.dll, libstdc++-6.dll and libwinpthread-1.dll, AND ALSO Qt4Pas.dll have to be rebuilded against mingw 4.8.2. Then it'll work.
Now old Qt4Pas.dll uses mingw10.dll ,so it definitelly cannot work.
If you rebuild Qt4Pas against Qt-4.8.6 and mingw-4.8.2 pls send me dll , I'm to lazy to rebuild it :)
Title: Re: QT On Windows Error
Post by: Derit on May 24, 2014, 03:21:34 am
Qt interface should be tested with the latest version of Qt not of old version, ok i rebuild ...
Title: Re: QT On Windows Error
Post by: Derit on May 24, 2014, 03:50:27 am
there is a small problem when building qt dll
"g++ " error:1387 CreateProcess: No Such file or directory
Title: Re: QT On Windows Error
Post by: taazz 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 (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.
Title: Re: QT On Windows Error
Post by: zeljko 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 ?
Title: Re: QT On Windows Error
Post by: zeljko 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 (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.
Title: Re: QT On Windows Error
Post by: taazz 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.
Title: Re: QT On Windows Error
Post by: Derit 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 (http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download)

Title: Re: QT On Windows Error
Post by: vfclists 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?
Title: Re: QT On Windows Error
Post by: Leledumbo 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.
Title: Re: QT On Windows Error
Post by: zeljko 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;
Title: Re: QT On Windows Error
Post by: Leledumbo 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.
Title: Re: QT On Windows Error
Post by: vfclists 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 (http://sourceforge.net/projects/qt4pas/files/windows/Qt4Pas5.zip/download)

Title: Re: QT On Windows Error
Post by: Derit 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...
Title: Re: QT On Windows Error
Post by: stocki 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 (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.

Title: Re: QT On Windows Error
Post by: Derit 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
Title: Re: QT On Windows Error
Post by: taazz 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 (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.
Title: Re: QT On Windows Error
Post by: kwer 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 (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!