HamedMasafi / Nut

Advanced, Powerful and easy to use ORM for Qt
GNU Lesser General Public License v3.0
294 stars 75 forks source link

What requirement is nut? #38

Closed liufeijin closed 5 years ago

liufeijin commented 5 years ago

Could you make a list of requirement for using nut?
I knew 1 requirement is "mysql connector c " source code.

I use qt5.12 on windows10. Many thanks! jeff

HamedMasafi commented 5 years ago

The Nut's dependency is Qt itself. If your Qt can connect to a database then Nut can too. In other words Nut use QSqlDatabase, so there is no other requirement, just make sure your sql driver works fine in your os environment. In your case you should provide mysql c connector and it should be enough.

liufeijin commented 5 years ago

Hi HamedMasafi I use your dev branch build success. But got the error "The class Post is not registered with qt meta object' then app crashed. I will test the master branch soon. BTW, the package of nut-dev is not include serializer/src. It is empty under the folder of serializer. Best regards, jeff

liufeijin commented 5 years ago

Hi HamedMasfi I switched to master branch. when i build it got error as below: 1

liufeijin commented 5 years ago

I changed to amreisa's master branch , build success. When run it ,seems can connect to mysql database. PICs for your reference. 2

3 4

HamedMasafi commented 5 years ago

Hi @liufeijin The _dev_branch is under development. I'm working on new features. Some unsuitability my occurs. If you want to use new features hold few days the new version is coming. Else switch to master branch (that is old without new features)