[odb-users] Problem with ODB in QtCreator and MingW

t-online jan.k.pi at t-online.de
Fri Apr 17 12:08:21 EDT 2015


I tried what you said in your last message, I read the MingW, QtCreator and Windows tutorial carefully and added the 
"peron-odb.hxx" include and get the following error : 

===============================
17:56:10: Running steps for project test...
17:56:10: Configuration unchanged, skipping qmake step.
17:56:10: Starting: "C:\Qt\Qt5.4.0\Tools\mingw491_32\bin\mingw32-make.exe" 
C:/Qt/Qt5.4.0/Tools/mingw491_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'C:/Users/Jan/Documents/QT-Projects/build-test-Desktop_Qt_5_4_0_MinGW_32bit-Debug'
odb --database mysql --profile qt --generate-schema --generate-query --generate-session -IC:/Qt/Qt5.4.0/5.4/mingw491_32/include ..\test\person.h
odb: error: the system couldn't find the path.


Makefile.Debug:110: recipe for target 'person-odb.cxx' failed
mingw32-make[1]: *** [person-odb.cxx] Error 1
mingw32-make[1]: Leaving directory 'C:/Users/Jan/Documents/QT-Projects/build-test-Desktop_Qt_5_4_0_MinGW_32bit-Debug'
mingw32-make: *** [debug] Error 2
makefile:34: recipe for target 'debug' failed
17:56:11: The process "C:\Qt\Qt5.4.0\Tools\mingw491_32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project test (kit: Desktop Qt 5.4.0 MinGW 32bit)
When executing step "Make"
17:56:11: Elapsed time: 00:00.
================================

How I install ODB : 
- I put all ODB Compiler files in the QtCreator's MingW folder (without putting it in different structure as downloaded)
- and install all libarys in the QtCreator's MingW folder with : 
        - ./configure --prefix=/c/Qt/Tools/mingw491_32/i686-w64-mingw32
        - make
        - make install prefix=/c/Qt/Tools/mingw491_32/i686-w64-mingw32


Jan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: project-files.zip
Type: application/x-zip-compressed
Size: 4045 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20150417/f28aa87b/project-files.bin


More information about the odb-users mailing list