First, I developed QT. I mounted a virtual machine through a board and then accessed the shared directory between the PC and the virtual machine through the smb service. It is really good to use databases to do projects in the past few days. Of course, the best choice is to use the SQLite database that comes with QT to do this. So I created a simple small program in the XP system with qtcreator, run the experiment and try the following:
Click the "View" button to add a piece of information, which can be easily implemented on the PC. However, on the arm dinner Board, an error is always reported when the database can be opened but the insert operation is executed, I thought of everything I could think of. 1. modified the database permissions, 2. Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/usr/local/trolltech/QtEmbedded-4.7.0-arm/plugins/sqldrivers, the path of the SQLite library is also added, but the running result is the same. The error message is that the database is not opened but the dynamic library exceeds the link Queue (which is not good in English. Later, I decided to adopt the second choice. I ran the SQLite plug-in on the arm-board Linux system and ended in failure (but I got a lot of inspiration, as described in the following blog post ), however, the method I came up with is a good sqlitedemo.
Run on the board, but the SQL statement still does not work. The error message is that the database fails to be opened, but the next decision is made. The file system and kernel are re-burned, and the result is still not good, at the edge of the crash, I asked the boss for advice. After a while, I put the generated executable file in the root directory! I can perform various operations on the database. I also put my own small QT SQLite demo in the root directory and the results were successfully run. It's strange! Some people on the Internet say that the friendly arm board does not provide good support for databases. I almost ran away from this question and should criticize myself.