Error by debug

Open discussion on QxOrm library

Error by debug

Postby Sniperman » Wed Apr 11, 2012 12:41 pm

Hi,
I am interesting in using OXOrm. I have tried to run the Test case QxBlog, but I have got the following error message while debugging the qxBlog.pro (cannot open file OxOrmd.lib file not found).
I don't know how to run it correctly, please any tips.
Sniperman
 

Re: Error by debug

Postby QxOrm admin » Wed Apr 11, 2012 1:33 pm

Hi,

Could you provide more informations about your development environment please :
- windows, linux, mac os x ?
- your compiler (MSVC2008, MSVC2010, MinGW, GCC, other) ?
- Qt version ?
- boost version ?

If you work with MSVC (2008 or 2010), you can open *.sln project files for all examples into ./test/ directory of QxOrm package.
If you work with MinGW or GCC, there is some scripts into ./tools/ directory to build QxOrm library + all examples (all binaries will be generated into ./test/_bin/ directory).
For more informations, you can visit the FAQ of QxOrm library here : http://www.qxorm.com/qxorm_en/faq.html#faq_30
QxOrm admin
 

Re: Error by debug

Postby Sniperman » Wed Apr 11, 2012 6:25 pm

Thanks for reply,
sorry for missed information. I use SVC2008 with Qt SDK version 1.2.1 and boost 1.46.1.
Could you tell me what are the steps that should I follow from the beginning namely after I have downloaded and unzipped the directory.
Thank in advance
Sniperman
 

Re: Error by debug

Postby QxOrm admin » Thu Apr 12, 2012 9:56 am

Could you tell me what are the steps that should I follow from the beginning


Once you have installed MSVC, you can follow those steps to install your development environment :
1- Download and install Qt 4.8 for MSVC2008 ;
2- Add Qt 'bin' directory to the PATH of Windows ;
3- Download my boost 1.49 package and unzip it : http://www.qxorm.com/lib/boost_1_49.zip ;
4- Add 'lib_shared' directory from my boost package to the PATH of Windows ;
5- Download QxOrm package and unzip it ;
6- Open 'QxOrm.pri' file and modify boost parameters (QX_BOOST_INCLUDE_PATH, QX_BOOST_LIB_PATH, etc.) ;
7- Open './test/qxBlog/qxBlog.sln' for example with MSVC2008, then try to build it and execute it ;
8- Test all examples from './test/' directory of QxOrm package.

Note : you are using boost 1.46.1 => don't worry, it will work with your version too.
If you have some problems with boost, you can download my boost package...
QxOrm admin
 

Re: Error by debug

Postby Siperman » Thu Apr 12, 2012 11:33 am

Thanks a lot for your help, but I am not sure what you mean with step 2, 4.
2- Add Qt 'bin' directory to the PATH of Windows ;
4- Add 'lib_shared' directory from my boost package to the PATH of Windows ;
Siperman
 

Re: Error by debug

Postby Sniperman » Thu Apr 12, 2012 12:03 pm

Hi QxOrm admin. It works now thanks again.
I have one more question, is there any possibility to use XML, UML or XSD database definition file for automatically generating the Database.
Sniperman
 

Re: Error by debug

Postby QxOrm admin » Thu Apr 12, 2012 12:17 pm

It works now thanks again

Good news ;)

is there any possibility to use XML, UML or XSD database definition file for automatically generating the Database.

No, this is not a feature provided by QxOrm library.
You have to write your C++ classes, and to design your database by the tool provided by your SGBD (for example Navicat for MySql, pgAdmin for PostgreSQL, SQLite Manager for SQLite, etc...).

You can also generate automatically your SQL schema using introspection engine of QxOrm library, more details into the FAQ here : http://www.qxorm.com/qxorm_en/faq.html#faq_230
Another example to generate a SQL schema is the function QString qx::QxClassX::dumpSqlSchema(), here is the source code of this function : http://www.qxorm.com/qxorm_en/resource/ ... chema.html
QxOrm admin
 


Return to QxOrm - Open discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron