[Lazarus] Someone help built qt4pas.dll for win64
FreeMan
freeman35 at delphiturkiye.com
Wed Mar 11 12:44:19 CET 2015
I attached, all errors outputs. system is win8 x64
can some one help what is wrong or how to do build qt4pas5.dll x64?
Thank you.
qt 4.8.6 binary files from:
http://sourceforge.net/projects/qtx64/files/?source=navbar
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
these are my results:
d:\Qt\qt4pas-V2.5_Qt4.5.3>qmake -query
QT_INSTALL_PREFIX:d:\Qt\4.8.6-w64
QT_INSTALL_DATA:d:\Qt\4.8.6-w64
QT_INSTALL_DOCS:d:\Qt\4.8.6-w64\doc
QT_INSTALL_HEADERS:d:\Qt\4.8.6-w64\include
QT_INSTALL_LIBS:d:\Qt\4.8.6-w64\lib
QT_INSTALL_BINS:d:\Qt\4.8.6-w64\bin
QT_INSTALL_PLUGINS:d:\Qt\4.8.6-w64\plugins
QT_INSTALL_IMPORTS:d:\Qt\4.8.6-w64\imports
QT_INSTALL_TRANSLATIONS:d:\Qt\4.8.6-w64\translations
QT_INSTALL_CONFIGURATION:d:/Qt/4.8.6-w64
QT_INSTALL_EXAMPLES:d:\Qt\4.8.6-w64\examples
QT_INSTALL_DEMOS:d:\Qt\4.8.6-w64\demos
QMAKE_MKSPECS:d:\Qt\4.8.6-w64\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.6
d:\Qt\qt4pas-V2.5_Qt4.5.3>qmake Qt4Pas.pro
Project MESSAGE: Note: This binding version was generated for Qt 4.5.3.
Current
Qt is 4.8.6
Project MESSAGE: Qt documents binary compatibility in each Version
Change Note:
http://qt.nokia.com/developer/changes
Project MESSAGE: Pascal Qt Interface for binding platform: MSWINDOWS
Project MESSAGE: Install location: d:\Qt\4.8.6-w64\bin
d:\Qt\qt4pas-V2.5_Qt4.5.3>make
g++ -c -pipe -fno-keep-inline-dllexport -O2 -w -frtti -fexceptions
-mthreads -DU
NICODE -DMSWINDOWS -DQT_DLL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB
-DQT_NETW
ORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT
-DQT_HAVE_SSE
2 -DQT_THREAD_SUPPORT -I"..\4.8.6-w64\include\QtCore"
-I"..\4.8.6-w64\include\Qt
Network" -I"..\4.8.6-w64\include\QtGui"
-I"..\4.8.6-w64\include\QtWebKit" -I"..\
4.8.6-w64\include" -I"..\4.8.6-w64\include\ActiveQt" -I"tmp"
-I"..\4.8.6-w64\mks
pecs\win32-g++-4.6" -o tmp\qt4pas.o src\qt4pas.cpp
In file included from src\qt4pas.cpp:59:0:
src\qwidget_c.cpp: In function 'unsigned int QWidget_winId(QWidgetH)':
src\qwidget_c.cpp:29:51: error: cast from 'WId {aka HWND__*}' to
'unsigned int'
loses precision [-fpermissive]
return (unsigned int) ((QWidget *)handle)->winId();
^
...................
...........
make: *** [tmp/qt4pas.o] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150311/5d3dde9d/attachment-0002.html>
-------------- next part --------------
d:\Qt\qt4pas-V2.5_Qt4.5.3>qmake -query
QT_INSTALL_PREFIX:d:\Qt\4.8.6-w64
QT_INSTALL_DATA:d:\Qt\4.8.6-w64
QT_INSTALL_DOCS:d:\Qt\4.8.6-w64\doc
QT_INSTALL_HEADERS:d:\Qt\4.8.6-w64\include
QT_INSTALL_LIBS:d:\Qt\4.8.6-w64\lib
QT_INSTALL_BINS:d:\Qt\4.8.6-w64\bin
QT_INSTALL_PLUGINS:d:\Qt\4.8.6-w64\plugins
QT_INSTALL_IMPORTS:d:\Qt\4.8.6-w64\imports
QT_INSTALL_TRANSLATIONS:d:\Qt\4.8.6-w64\translations
QT_INSTALL_CONFIGURATION:d:/Qt/4.8.6-w64
QT_INSTALL_EXAMPLES:d:\Qt\4.8.6-w64\examples
QT_INSTALL_DEMOS:d:\Qt\4.8.6-w64\demos
QMAKE_MKSPECS:d:\Qt\4.8.6-w64\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.8.6
d:\Qt\qt4pas-V2.5_Qt4.5.3>qmake Qt4Pas.pro
Project MESSAGE: Note: This binding version was generated for Qt 4.5.3. Current
Qt is 4.8.6
Project MESSAGE: Qt documents binary compatibility in each Version Change Note:
http://qt.nokia.com/developer/changes
Project MESSAGE: Pascal Qt Interface for binding platform: MSWINDOWS
Project MESSAGE: Install location: d:\Qt\4.8.6-w64\bin
d:\Qt\qt4pas-V2.5_Qt4.5.3>make
g++ -c -pipe -fno-keep-inline-dllexport -O2 -w -frtti -fexceptions -mthreads -DU
NICODE -DMSWINDOWS -DQT_DLL -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_GUI_LIB -DQT_NETW
ORK_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE
2 -DQT_THREAD_SUPPORT -I"..\4.8.6-w64\include\QtCore" -I"..\4.8.6-w64\include\Qt
Network" -I"..\4.8.6-w64\include\QtGui" -I"..\4.8.6-w64\include\QtWebKit" -I"..\
4.8.6-w64\include" -I"..\4.8.6-w64\include\ActiveQt" -I"tmp" -I"..\4.8.6-w64\mks
pecs\win32-g++-4.6" -o tmp\qt4pas.o src\qt4pas.cpp
In file included from src\qt4pas.cpp:59:0:
src\qwidget_c.cpp: In function 'unsigned int QWidget_winId(QWidgetH)':
src\qwidget_c.cpp:29:51: error: cast from 'WId {aka HWND__*}' to 'unsigned int'
loses precision [-fpermissive]
return (unsigned int) ((QWidget *)handle)->winId();
^
src\qwidget_c.cpp: In function 'unsigned int QWidget_internalWinId(QWidgetH)':
src\qwidget_c.cpp:39:59: error: cast from 'WId {aka HWND__*}' to 'unsigned int'
loses precision [-fpermissive]
return (unsigned int) ((QWidget *)handle)->internalWinId();
^
src\qwidget_c.cpp: In function 'unsigned int QWidget_effectiveWinId(QWidgetH)':
src\qwidget_c.cpp:44:60: error: cast from 'WId {aka HWND__*}' to 'unsigned int'
loses precision [-fpermissive]
return (unsigned int) ((QWidget *)handle)->effectiveWinId();
^
In file included from src\qt4pas.cpp:14:0:
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QObject*; PPtrIntArray = void*]':
src\qobject_c.cpp:104:49: required from here
src\pascalbind.h:211:16: error: cast from 'QObject*' to 'PTRINT {aka int}' loses
precision [-fpermissive]
array[i] = (PTRINT)qlist[i];
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QModelIndex; PPtrIntArray = void*]':
src\qabstractitemmodel_c.cpp:306:56: required from here
src\pascalbind.h:243:16: error: cast from 'QModelIndex*' to 'PTRINT {aka int}' l
oses precision [-fpermissive]
array[i] = (PTRINT)(new T(qlist[i]));
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QFileInfo; PPtrIntArray = void*]':
src\qdir_c.cpp:216:56: required from here
src\pascalbind.h:243:16: error: cast from 'QFileInfo*' to 'PTRINT {aka int}' los
es precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QAction*; PPtrIntArray = void*]':
src\qwidget_c.cpp:1145:49: required from here
src\pascalbind.h:211:16: error: cast from 'QAction*' to 'PTRINT {aka int}' loses
precision [-fpermissive]
array[i] = (PTRINT)qlist[i];
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QWidget*; PPtrIntArray = void*]':
src\qaction_c.cpp:265:49: required from here
src\pascalbind.h:211:16: error: cast from 'QWidget*' to 'PTRINT {aka int}' loses
precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QGraphicsWidget*; PPtrIntArray = void*]':
src\qaction_c.cpp:272:49: required from here
src\pascalbind.h:211:16: error: cast from 'QGraphicsWidget*' to 'PTRINT {aka int
}' loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QPrinterInfo; PPtrIntArray = void*]':
src\qprinterinfo_c.cpp:60:56: required from here
src\pascalbind.h:243:16: error: cast from 'QPrinterInfo*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
array[i] = (PTRINT)(new T(qlist[i]));
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QTextFrame*; PPtrIntArray = void*]':
src\qtextobject_c.cpp:76:49: required from here
src\pascalbind.h:211:16: error: cast from 'QTextFrame*' to 'PTRINT {aka int}' lo
ses precision [-fpermissive]
array[i] = (PTRINT)qlist[i];
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QAbstractButton*; PPtrIntArray = void*]':
src\qbuttongroup_c.cpp:51:49: required from here
src\pascalbind.h:211:16: error: cast from 'QAbstractButton*' to 'PTRINT {aka int
}' loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QDockWidget*; PPtrIntArray = void*]':
src\qmainwindow_c.cpp:233:49: required from here
src\pascalbind.h:211:16: error: cast from 'QDockWidget*' to 'PTRINT {aka int}' l
oses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QMdiSubWindow*; PPtrIntArray = void*]':
src\qmdiarea_c.cpp:46:49: required from here
src\pascalbind.h:211:16: error: cast from 'QMdiSubWindow*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QListWidgetItem*; PPtrIntArray = void*]':
src\qlistwidget_c.cpp:422:49: required from here
src\pascalbind.h:211:16: error: cast from 'QListWidgetItem*' to 'PTRINT {aka int
}' loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QTreeWidgetItem*; PPtrIntArray = void*]':
src\qtreewidget_c.cpp:371:49: required from here
src\pascalbind.h:211:16: error: cast from 'QTreeWidgetItem*' to 'PTRINT {aka int
}' loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QStandardItem*; PPtrIntArray = void*]':
src\qstandarditemmodel_c.cpp:441:49: required from here
src\pascalbind.h:211:16: error: cast from 'QStandardItem*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QTableWidgetItem*; PPtrIntArray = void*]':
src\qtablewidget_c.cpp:501:49: required from here
src\pascalbind.h:211:16: error: cast from 'QTableWidgetItem*' to 'PTRINT {aka in
t}' loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QGraphicsItem*; PPtrIntArray = void*]':
src\qgraphicsscene_c.cpp:101:49: required from here
src\pascalbind.h:211:16: error: cast from 'QGraphicsItem*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QGraphicsView*; PPtrIntArray = void*]':
src\qgraphicsscene_c.cpp:333:49: required from here
src\pascalbind.h:211:16: error: cast from 'QGraphicsView*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArray(QList
<T>&, PPtrIntArray) [with T = QWebFrame*; PPtrIntArray = void*]':
src\qwebframe_c.cpp:200:49: required from here
src\pascalbind.h:211:16: error: cast from 'QWebFrame*' to 'PTRINT {aka int}' los
es precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QWebSecurityOrigin; PPtrIntArray = void*]':
src\qwebsecurityorigin_c.cpp:16:56: required from here
src\pascalbind.h:243:16: error: cast from 'QWebSecurityOrigin*' to 'PTRINT {aka
int}' loses precision [-fpermissive]
array[i] = (PTRINT)(new T(qlist[i]));
^
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QWebDatabase; PPtrIntArray = void*]':
src\qwebsecurityorigin_c.cpp:57:56: required from here
src\pascalbind.h:243:16: error: cast from 'QWebDatabase*' to 'PTRINT {aka int}'
loses precision [-fpermissive]
src\pascalbind.h: In instantiation of 'void copyQListTemplateToPtrIntArrayWithNe
w(QList<T>&, PPtrIntArray) [with T = QWebHistoryItem; PPtrIntArray = void*]':
src\qwebhistory_c.cpp:73:56: required from here
src\pascalbind.h:243:16: error: cast from 'QWebHistoryItem*' to 'PTRINT {aka int
}' loses precision [-fpermissive]
make: *** [tmp/qt4pas.o] Error 1
d:\Qt\qt4pas-V2.5_Qt4.5.3>
More information about the Lazarus
mailing list