Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-02

QT: installaton error.

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Kjow

Hi all,

I'm trying to use QT on Windows 7, so I downloaded WIN "Libray Binary" V2.1 from here:
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

and I replaced the file C:\Develop\Lazarus\lcl\interfaces\qt\qt45.pas

When I try to rebuild LCL for QT by IDE, I get this error:

C:\Develop\binw32\make.exe: Entering directory `C:/Develop/Lazarus/lcl' C:/Develop/binw32/rm.exe -f units/i386-win32/alllclunits.ppu C:/Develop/fpc/2.5.1/bin/i386-Win32/fpc.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/i386-win32 -di386 alllclunits.pp Free Pascal Compiler version 2.5.1 [2010/02/22] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
73 lines compiled, 0.2 sec
C:/Develop/binw32/make.exe -C interfaces all
make.exe[1]: Entering directory `C:/Develop/Lazarus/lcl/interfaces' C:/Develop/binw32/make.exe -C qt all
make.exe[2]: Entering directory `C:/Develop/Lazarus/lcl/interfaces/qt' C:/Develop/binw32/rm.exe -f ../../units/i386-win32/qt/interfaces.ppu \ ../../units/i386-win32/qt/interfaces.o
C:/Develop/fpc/2.5.1/bin/i386-Win32/fpc.exe -gl -dqt -Fu../../units/i386-win32 -Fu. -FE. -FU../../units/i386-win32/qt -di386 interfaces.pp
Free Pascal Compiler version 2.5.1 [2010/02/22] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling interfaces.pp
Compiling qtint.pp
C:\Develop\Lazarus\lcl\interfaces\qt\qtwinapi.inc(1181,7) Error: Can't determine which overloaded function to call
C:\Develop\Lazarus\lcl\interfaces\qt\qtwinapi.inc(1485,5) Note: User defined: implement EnumFontFamiliesEx for other than default C:\Develop\Lazarus\lcl\interfaces\qt\qtint.pp(259) Fatal: There were 1 errors compiling module, stopping

or by command line "make clean all LCL_PLATFORM=qt" :

...
...
...
Compiling qtwsforms.pp
Compiling qtwsmenus.pp
Compiling qtwsspin.pp
Compiling qtwsstdctrls.pp
qtwsstdctrls.pp(508,4) Note: User defined: implement TQtWSCustomListBox.SetColum nCount
qtwsstdctrls.pp(1257,4) Note: User defined: implement TQtWSCustomComboBox.SetArr owKeysTraverseList
Compiling qtwsdesigner.pp
Compiling qtthemes.pas
qtwinapi.inc(1181,7) Error: Can't determine which overloaded function to call qtwinapi.inc(1485,5) Note: User defined: implement EnumFontFamiliesEx for other than default
qtint.pp(259) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `c:/Develop/Lazarus/lcl/interfaces/qt' make[2]: *** [qt_all] Error 2
make[2]: Leaving directory `c:/Develop/Lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `c:/Develop/Lazarus/lcl' make: *** [lcl] Error 2

Can you help me?

Thanks,
Kjow

PS If I try to compile a QT demo, it is ok:

D:\Downloads\Lazarus\QT\Win\win_demos-V2.1_Qt4.5.3\demos-V2.1_Qt4.5.3\circles>fpc circles.pas
Free Pascal Compiler version 2.5.1 [2010/02/22] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling circles.pas
Compiling qt4.pas
Linking circles.exe
14170 lines compiled, 0.4 sec , 132768 bytes code, 27464 bytes data

Reply by email

Kjow
to Den Jean

2010/2/23 Den Jean :

Show quoted text 10 lines
On Monday 22 February 2010 23:38:50 Kjow wrote: > qtwinapi.inc(1181,7) Error: Can't determine which overloaded function to call see patch here: http://lists.lazarus.freepascal.org/pipermail/qt/2010-February/001475.html and explanation here: http://lists.lazarus.freepascal.org/pipermail/qt/2010-February/001477.html the necessary update to lazarus trunk is in progress.

Thank you!

I tried to make the modify, and LCL builds ok, but when I try to compile and run a project, I have this error:

"The procedure entry point _Z5qFreePv could not be located in the dynamic link libaray QtCore4.dll"

I copied in the same dir of the exe builded, these files:

Qt4Pas5.dll
QtCore4.dll
mingwm10.dll

Thanks!
Kjow

PS I downloaded and installed: "Qt SDK for Windows* (287 MB)" from: http://qt.nokia.com/downloads

Reply by email

Kjow
to Kjow

2010/2/23 Kjow :

"The procedure entry point _Z5qFreePv could not be located in the dynamic link libaray QtCore4.dll"

Solved.
I added to path:

C:\Program Files\QT\qt\bin

(the directory which contains "mingwm10.dll")
Now It seems to work well.

Bye :)

Reply by email

Den Jean
to Kjow
Kjow wrote 7 lines
Solved. I added to path: C:\Program Files\QT\qt\bin (the directory which contains "mingwm10.dll") Now It seems to work well.

Copying dlls around is a recipe for disaster. In the end after upgrading things, the wrong library will get loaded and you will not understand. Leave the Qt dlls in the Qt installation dir e.g. c:\Qt\4.5.3\bin, leave mingw dlls in e.g. c:\MinGW\bin. Both paths should be in the path env. variable. This way it is clear what gets called when.

Reply by email

Kjow
to Den Jean

2010/2/23 Den Jean :

Show quoted text 6 lines
Copying dlls around is a recipe for disaster. In the end after upgrading things, the wrong library will get loaded and you will not understand. Leave the Qt dlls in the Qt installation dir e.g. c:\Qt\4.5.3\bin, leave mingw dlls in e.g. c:\MinGW\bin. Both paths should be in the path env. variable. This way it is clear what gets called when.

I simply added to system path the qt's bin path, no file/dll copied. I don't know how was the "old" 4.5.x path structure, but I simply installed the latest qt v4.6.2 from Nokia site and added the path to system variables.

But, now I have a little problem... A new project works well, but if I change the widget from win32/64 from qt of an existing project Lazarus returns this error:

Hint: Start of reading config file C:\Develop\fpc\2.5.1\bin\i386-Win32\fpc.cfg Hint: End of reading config file C:\Develop\fpc\2.5.1\bin\i386-Win32\fpc.cfg Free Pascal Compiler version 2.5.1 [2010/02/23] for i386 Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Win32 for i386
Compiling fuel.lpr
PPU Loading C:\Develop\Lazarus\lcl\units\i386-win32\qt\qtint.ppu PPU Source: qtint.pp not found
PPU Source: qtdefines.inc not found
PPU Source: qtwinapih.inc not found
PPU Source: qtlclintfh.inc not found
PPU Source: qtobject.inc not found
PPU Source: qtwinapi.inc not found
PPU Source: qtlclintf.inc not found
Recompiling qtint, checksum changed for qt4
qtint.pp(11,35) Fatal: Can't find unit qtint used by interfaces

How to solve this?

Thanks!
Kjow

Reply by email