Recent

Author Topic: How to build QT4pas5.dll win64 [resolved]  (Read 8536 times)

freeman35

  • Jr. Member
  • **
  • Posts: 92
How to build QT4pas5.dll win64 [resolved]
« on: March 13, 2015, 01:34:28 pm »
qt 4.8.6 binary files from:
http://sourceforge.net/projects/qtx64/files/?source=navbar

I'm sooo lucky  :D after one day qt binnary project removed  %)

May be someone need this. just this dll file is enough for run my application.This is my dll compiled in w8 x64 with qt 4.8.6. This my compiled dll is x64.
http://www.delphiturkiye.com/files/Qt4Pas5.7z

mingw64 files from: http://www.drangon.org/mingw/

qt4pas5 source from
http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html

how to from:
http://wiki.freepascal.org/Qt_Interface#Quick_start_guide_for_Windows

qt bin and lib folder hast be added system PATH
for test, in terminal type
>qmake -query
this result for qt. if paths is wrong, try execute "qtbinpatcher.exe"
>make -v
has to be x64 mingw64 or under qt folder same name

>where make.exe
show which one is in path

in QT4Pas.pro's folder, (I mean qt4pas source folder)
>qmake QT4Pas.pro
>make
thats all. just need more time for compile if without error.

if get a this error (keyword is -fpermissive):
......
loses precision [-fpermissive]
   return (unsigned int) ((QWidget *)handle)->winId();
...

open QT4Pas.pro file with any text editor, and add this lines in QT4Pas.pro file
....
OBJECTS_DIR = tmp

QMAKE_CFLAGS += -fpermissive
QMAKE_CXXFLAGS += -fpermissive
QMAKE_LFLAGS += -fpermissive
....

and re do
>qmake QT4Pas.pro
>make

I did like this, and it works for me.
« Last Edit: March 14, 2015, 01:59:38 pm by freeman35 »

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: How to build QT4pas5.dll win64 [resolved]
« Reply #1 on: March 13, 2015, 04:39:00 pm »
So you can put compiled libQt4Pas.dll somewhere so other ppl does not need to recompile it.
Maybe it would be wise to rename libQt4Pas.dll to libQt4Pas64.dll (when building, of course then
 in qt45.pas in lazarus it must be setted up so for win64 target), but it's not big problem.

zeljko

  • Hero Member
  • *****
  • Posts: 1594
    • http://wiki.lazarus.freepascal.org/User:Zeljan
Re: How to build QT4pas5.dll win64 [resolved]
« Reply #2 on: March 13, 2015, 04:39:59 pm »
Also, keep that binaries since project at provided link is not active anymore  8-)

 

TinyPortal © 2005-2018