Unsolved Trouble following directions
-
Re: Static compile of Qt Charts
Hi all,
I've been trying to follow the steps above. I got the errorProject ERROR: Unknown module(s) in QT: charts
when running qmake on my .pro file.I have a static version of QT installed on an external HD on OSX 10.11.
From the base dir of the install (I can see qtbase folder, configure, etc) I changed into qtcharts. I
../qtbase/bin/qmake; make; make install
. I even manually copied the lib to ../qtbase/lib and the include to ../qtbase/include`, but I still get the qmake error that charts is an unknown module. What am I missing? -
Hi and welcome to devnet,
What version of Qt are you using ?
How did you build it ?
What parameters did you pass ? -
@SGaist 5.9, statically compiled. Build what, QtCharts?
../qtbase/bin/qmake; make;
cp -r ./lib/lib* ../qtbase/lib/; cp -r ./include/QtCharts ../qtbase/include/
-
What parameters did you use to build Qt ?
You should call make install after you build a module. Your manual copy doesn't put everything in place.
-
@SGaist I tried a make install, but it tries to save it to the dynamic install on the internal disk instead of the static one on the external. I don't remember the build parameters exactly, unless there it's saved somewhere.
-
@jack213123 Is "../qtbase/bin/qmake" the qmake from your static Qt build?
-
@jsulm Yes
-
Then use the
-prefix
option when calling configure to set another install path and callmake install
as you should.