[odb-users] Problem with ODB in QtCreator and MingW
Boris Kolpackov
boris at codesynthesis.com
Mon Apr 20 09:50:47 EDT 2015
Hi,
t-online <jan.k.pi at t-online.de> writes:
> 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.
So QtCreator runs ODB as you would want. But then ODB fails saying that
the file it tries to compile does not exist. Make helpfully tells you
which directory it is in. So check if
C:/Users/Jan/Documents/QT-Projects/build-test-Desktop_Qt_5_4_0_MinGW_32bit-Debug/..\test\person.h
exists. If it doesn't, then try to figure out where it is and adjust
your project accordingly.
This should be a pretty simple issue to fix. In the future please try
to solve things like this yourself. If you expect me to debug every
silly mistake in your project, I am afraid I won't do that.
Boris
More information about the odb-users
mailing list