could not import: dos_qabstractitemmodel_qmetaobject
dawkot opened this issue · 4 comments
dawkot commented
I downloaded and built DOtherSide following the instructions multiple times, AFAIK without errors, but any nim program importing latest (git cloned or otherwise) nimqml crashes at runtime with message as in title.
Nim Compiler Version 1.0.4 [Linux: amd64]
Using Qt version 5.14.0
filcuc commented
I'll give it a look
dawkot commented
These are the only functions starting with "dos_qabstract":
000000000010bcf0 T dos_qabstractlistmodel_beginInsertRows
000000000010bd80 T dos_qabstractlistmodel_beginRemoveRows
000000000010be10 T dos_qabstractlistmodel_beginResetModel
000000000010c940 T dos_qabstractlistmodel_create
000000000010d180 T dos_qabstractlistmodel_dataChanged
000000000010bd40 T dos_qabstractlistmodel_endInsertRows
000000000010bdd0 T dos_qabstractlistmodel_endRemoveRows
000000000010be50 T dos_qabstractlistmodel_endResetModel
000000000010d110 T dos_qabstractlistmodel_qmetaobject
nm -D libDOtherSide.so.0.6 | grep dos_qabstract
filcuc commented
@dawkot on my machine i get
filippo@X510UNR:~/Projects/CppProjects/DOtherSide/build/lib$ nm -D libDOtherSide.so.0.6.4 | grep dos_qabs
00000000000e2b90 T dos_qabstractitemmodel_beginInsertColumns
00000000000e2a30 T dos_qabstractitemmodel_beginInsertRows
00000000000e2c40 T dos_qabstractitemmodel_beginRemoveColumns
00000000000e2ae0 T dos_qabstractitemmodel_beginRemoveRows
00000000000e2cf0 T dos_qabstractitemmodel_beginResetModel
00000000000e30e0 T dos_qabstractitemmodel_canFetchMore
00000000000e4530 T dos_qabstractitemmodel_create
00000000000e2d90 T dos_qabstractitemmodel_createIndex
00000000000e5ae0 T dos_qabstractitemmodel_dataChanged
00000000000e2bf0 T dos_qabstractitemmodel_endInsertColumns
00000000000e2a90 T dos_qabstractitemmodel_endInsertRows
00000000000e2ca0 T dos_qabstractitemmodel_endRemoveColumns
00000000000e2b40 T dos_qabstractitemmodel_endRemoveRows
00000000000e2d40 T dos_qabstractitemmodel_endResetModel
00000000000e3130 T dos_qabstractitemmodel_fetchMore
00000000000e2f30 T dos_qabstractitemmodel_flags
00000000000e3030 T dos_qabstractitemmodel_hasChildren
00000000000e3080 T dos_qabstractitemmodel_hasIndex
00000000000e2f80 T dos_qabstractitemmodel_headerData
00000000000e5120 T dos_qabstractitemmodel_qmetaobject
00000000000e2ea0 T dos_qabstractitemmodel_roleNames
00000000000e2e40 T dos_qabstractitemmodel_setData
00000000000e2a00 T dos_qabstractlistmodel_columnCount
00000000000e4220 T dos_qabstractlistmodel_create
00000000000e28d0 T dos_qabstractlistmodel_index
00000000000e2970 T dos_qabstractlistmodel_parent
00000000000e5090 T dos_qabstractlistmodel_qmetaobject
00000000000e3f10 T dos_qabstracttablemodel_create
00000000000e27a0 T dos_qabstracttablemodel_index
00000000000e2840 T dos_qabstracttablemodel_parent
00000000000e5000 T dos_qabstracttablemodel_qmetaobject
i will test with Qt 5.14 and repot
dawkot commented
I moved 'libDOtherSide.so.0.6' from build/lib into /usr/lib because diff shows that they are not identical (even though both were produced by make) so I replaced the one in /usr/lib and nimqml examples are working now.