linux下使用QxOrm。
首先将QxOrm的QxOrm.pri文件的配置boost路径指定刀boost上。参考上一篇编译boost
然后编译QxOrm,编译完成后。
新建一个Widget的测试项目
建好好,将QxOrm项目里的QxOrm.pri.复制到该目录下,与main同级。
然后修改pro文件
1.引入pri
2.添加外部库
并选中lib
点下一步完成。
这时候,pro文件下会多一些引用
。
debug编译,成功。
release编译,失败,需要去掉然后release就可以成功。反之,debug失败。
release编译完成后,打包,出错,ldd命令发现缺少文件
找到该文件并
将该文件和release生成的文件放在一起。
再次运行打包命令,成功。
但是会发现,使用,/文件 命令可以运行程序,但是直接点击是无法运行程序的。
ldd再次查看,发现报错了,确认原因,将刚才找到那几个lib,放在lib文件夹下
再次鼠标点击,可以正常打开。