I'm new to QxOrm library. I was able to build it on my environ QxOrm and link it against Qt4.8.7 but it doesn't work when I built it against Qt5.5.1
As an additional information, all the Qt5 example from the Qt package from Digia are building and running without any problem.
This is my environment:
1) Linux, kernel 4.2.8,
2) I'm using KDE Fedora 23 distribution. The 64 bit version
3) gcc version 5.3.1
4) I'm building from a fresh folder. I will just unzip the folder QxOrm_1.4.1.zip and cd in it and run:
a) qmake-qt5
b) make
Again what is strange is that it builds well for any other application or library but it doesn't work for QxOrm . If anyone faced this issue or has a solution for this problem that would be nice to share the solution. Thank you.
So, when I build QxOmr against qt5, I have these compilation errors:
- Code: Select all
g++ -c -include release/QxOrm -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC -D_QX_MODE_RELEASE -D_QX_BUILDING_QX_ORM -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iinclude -isystem /usr/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -Iqt/moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o release/main.o src/main.cpp
/usr/lib64/qt5/bin/moc -D_QX_MODE_RELEASE -D_QX_BUILDING_QX_ORM -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-g++ -I/home/asnagni/Desktop/FlashTag/Temp/QxOrm -I/home/asnagni/Desktop/FlashTag/Temp/QxOrm/include -I/usr/include -I/usr/include/qt5 -I/usr/include/qt5/QtSql -I/usr/include/qt5/QtCore -I/usr/include/c++/5.3.1 -I/usr/include/c++/5.3.1/x86_64-redhat-linux -I/usr/include/c++/5.3.1/backward -I/usr/lib/gcc/x86_64-redhat-linux/5.3.1/include -I/usr/local/include -I/usr/include include/QxDao/QxDaoAsync.h -o qt/moc/moc_QxDaoAsync.cpp
g++ -c -include release/QxOrm -pipe -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -O2 -Wall -W -D_REENTRANT -fPIC -D_QX_MODE_RELEASE -D_QX_BUILDING_QX_ORM -DQT_NO_DEBUG -DQT_SQL_LIB -DQT_CORE_LIB -I. -Iinclude -isystem /usr/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtCore -Iqt/moc -I/usr/lib64/qt5/mkspecs/linux-g++ -o release/moc_QxDaoAsync.o qt/moc/moc_QxDaoAsync.cpp
qt/moc/moc_QxDaoAsync.cpp:15:2: error: #error "This file was generated using the moc from 5.5.1. It"
#error "This file was generated using the moc from 5.5.1. It"
^
qt/moc/moc_QxDaoAsync.cpp:16:2: error: #error "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
^
qt/moc/moc_QxDaoAsync.cpp:17:2: error: #error "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
qt/moc/moc_QxDaoAsync.cpp:22:5: error: ‘QByteArrayData’ does not name a type
QByteArrayData data[8];
^
qt/moc/moc_QxDaoAsync.cpp:28:24: error: ‘QByteArrayData’ was not declared in this scope
- idx * sizeof(QByteArrayData)) \
^
qt/moc/moc_QxDaoAsync.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(0, 0, 33), // "qx::dao::detail::QxDaoAsyncRu..."
^
qt/moc/moc_QxDaoAsync.cpp:29:5: error: ‘Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET’ was not declared in this scope
)
^
qt/moc/moc_QxDaoAsync.cpp:32:1: note: in expansion of macro ‘QT_MOC_LITERAL’
QT_MOC_LITERAL(0, 0, 33), // "qx::dao::detail::QxDaoAsyncRu..."
^