OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Question about method of building osgQt


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build]
View previous topic :: View next topic  
Author Message
trexmsuee
Newbie


Joined: 11 Apr 2019
Posts: 1

PostPosted: Thu Apr 11, 2019 2:22 pm    Post subject:
Question about method of building osgQt
Reply with quote

Greetings,

We have an older application using OSG 3.4.0 w/ Qt 5.5.1. I'd like to update to 3.6.3 and migrate to a newer version of Qt. I realize that osgQt has been removed, and maintained in a separate repository. We very keen on trying to refactor our code to use the osgQOpenGLWidget class, as we think that will alleviate some issues we've been having recently on newer computers.

I've successfully built OSG 3.6.3 using MSVC2013 setup by Cmake 3.14, and all is working fine. However, I am stumped as to how to build osgQT? If I try to directly invoke Cmake, I get lots of errors as it doesn't seem to recognize OSG 3.6.3. Should I try to "re-merge" osgQt with OSG and build everything in one build? It doesn't appear that it was meant to work this way.

The error seems to point to some incompatibility between the OSG version osgQT is expecting and 3.6.3? Also, I see "failed to parse version number, report as a bug", which is bothersome.

Apologizes if this is a simplistic question, my background is in embedded engineering, and some of the more modern compiler techniques, especially this complicated, leave me scratching a hole in my head! I'm sure there is a simple answer ...

Any help would be appreciated!

Thank you!

Cheers,
Gerald
Back to top
View user's profile Send private message
Tare
Newbie


Joined: 04 Apr 2018
Posts: 15

PostPosted: Fri May 24, 2019 9:31 am    Post subject:
Reply with quote

I ran into the same problem. I tried around a bit, and I got it to generate solution files with cmake.

First, open the CMakeLists.txt in the osgQt and edit line 95 and remove the "3.6.0" version number.

The result is then
Code:
FIND_PACKAGE(OpenSceneGraph REQUIRED osgDB osgGA osgUtil osgText osgViewer osgWidget)


Then configure everything in cmake and generate it. Even if you still get the error (I think I had it in the GUI when using configure, but not when using generate), it should generate the Visual Studio files (I was going for VS2017, so ymmv).

When I tried to compile, it didn't work though. This may have been a wrong setup on my side, but the include paths where absolute paths to the osgDB, osgGA, osgUtil, ... submoduls, rather than having only OpenSceneGraphs include file.

Having changed that, I end up with a few errors of
Quote:
C4430 missing type specifier - int assumed. Note: C++ does not support default-int

and
Quote:
C2146 syntax error: missing '>' before identifier 'GLFloat'

in the file GL, as well as
Quote:
C2065 'GLenum': undeclared identifier

in the file qopenglext.h

Usually this indicates that your project lacks the
Code:
#include windows.h
(this should be <windows.h>, but the forum somehow doesn't display that correctly) line, however that is obviously only for windows and I have tried including it in the osgQOpenGLWindow file, and that did not work. I will try a bit more and post, if I find the solution to that last problem
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Build system [build] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Building with MinGW on Windows 10 Skaldi Build system [build] 4 Sat May 18, 2019 3:47 pm View latest post
No new posts osgQt & osgEarth not working with... Db80 General 1 Thu May 16, 2019 2:15 pm View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 0 Fri May 10, 2019 11:20 am View latest post
No new posts Building with Visual Studio 2019 icf80 Build system [build] 2 Fri May 10, 2019 11:19 am View latest post
No new posts Really basic question light/material ... dhhabyc General 0 Tue Apr 09, 2019 4:53 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP