QT下的嵌入式ARM数据库移植设置
最近纠结这个啊,不带数据库的QT程序在PC上编译成功后,经过qmake-arm之后就可以在ARM上运行,没什么问题。
现在的程序包含了sqlite在pc上编译运行没问题,但是经过qmake-arm交叉编译,连编译都不能通过,错误代码如下:
In file included from /usr/local/qtembed450-arm/include/QtSql/QSQLiteDriver:1,
from widget.h:13,
from main.cpp:2:
/usr/local/qtembed450-arm/include/QtSql/qsql_sqlite.h:47:46: error: QtSql/private/qsqlcachedresult_p.h: No such file or directory
In file included from /usr/local/qtembed450-arm/include/QtSql/QSQLiteDriver:1,
from widget.h:13,
from main.cpp:2:
/usr/local/qtembed450-arm/include/QtSql/qsql_sqlite.h:65: error: expected class-name before '{' token
/usr/local/qtembed450-arm/include/QtSql/qsql_sqlite.h:74: error: 'QSqlCachedResult' has not been declared
/usr/local/qtembed450-arm/include/QtSql/qsql_sqlite.h:74: error: expected ',' or '...' before '&' token
查看了下确实没qsqlcachedresult_p.h这个文件,因为我这个arm库不是我自己编译的,不知道他是怎么编译的,是不是没有编译sqlite方面的东西。是不是我要重新编译交叉编译一下库呢?还有你们是怎么样使用QT自带的SQLite移植到嵌入式ARM里面去的?