Discussion:
[osg-users] Enable Qt5Widgets_DIR into cmake (GUI)
Andrea Martini
2018-09-05 07:40:23 UTC
Permalink
Dear all,
i would like to enable Qt5 form Cmake(GUI) 3.8.2 using OSG 3.5.3 on Windows10. I installed QT 5.8.0 in c:\QT\... and i set environment variable QTDIR to C:\Qt\Qt5.8.0\5.8\msvc2013_64

My focus consits in get osgQtBrowser and osgQtWidgets example projects in osg solutions (visual studio 2013).

What i get is:

Ungrouped Entries-> Qt5Widgets_DIR = Qt5Widgets_DIR-NOTFOUND

Furthermore, several QT -> items are automatically filled with NOFOUND (after Configure process). I must manually fill each items!!!

Is there a way to tell CMAKE to fill all qt entries automatically?

Thank you in advance

Regards

Andrea



...

Thank you!

Cheers,
Andrea

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74643#74643
Konstantin Podsvirov
2018-09-05 07:47:14 UTC
Permalink
_______________________________________________
osg-users mailing list
osg-***@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Andrea Martini
2018-09-05 08:51:57 UTC
Permalink
Hello Konstatine,
thank you for your suggestion.
Now CMAKE fills all Qt entries automatically.

But, osgQtWidgets and osgQtBrowser aren't in .sln
Looking into mypath\OpenSceneGraph-3.5.3\examples\CMakeLists.txt i found:

...
IF ( (QT4_FOUND AND QT_QTWEBKIT_FOUND) OR Qt5WebKitWidgets_FOUND )
ADD_SUBDIRECTORY(osgQtWidgets)
ADD_SUBDIRECTORY(osgQtBrowser)
ENDIF()
...

Infact, CMAKE (GUI) fill Qt5WebKitWidgets_DIR with Qt5WebKitWidgets_DIR-NOTFOUND. I searched in C:\Qt\Qt5.8.0\5.8\msvc2013_64\lib\cmake and folder Qt5WebKitWidgets is absent.

This is the reason i can't find osgQtWidgets and osgQtBrowser projects in the solution.

I will try with a suggestion on :
https://stackoverflow.com/questions/49249355/could-not-find-qt5webkitwidgets

using qt 5.5 instead of 5.8


Thank you!

Cheers,
Andrea

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=74645#74645

Loading...