Building for Core Profile

classic Classic list List threaded Threaded
3 messages Options
DamianDixon DamianDixon
Reply | Threaded
Open this post in threaded view
|

Building for Core Profile

I've just got my self a new small laptop with an Intel GPU (HD 520). I've installed ubuntu 18.04.

I've tried to build OSG and osgEarth for Core Profile but seem to have made a right hash of it.

Could someone point me at any documentation for building for Core Profile.

The cmake scripts for OSG don't pick up glcorearb.h. So I updated the settings and turned on GL3 and turned off GL2 and GL1.

Just not sure if I missed anything else.

Thanks
Damian
DamianDixon DamianDixon
Reply | Threaded
Open this post in threaded view
|

Re: Building for Core Profile

I found that the safest way to build OSG for OpenGL Core Profile was to do the following:

cmake  -DOPENGL_PROFILE=GLCORE <OpenSceneGraphSourceDirectory>

In addition the latest source for osgEarth has a fix in osgEarthQt/ViewerWidget for ensuring the version of OpenGL set in OSG is passed to Qt.


plevy plevy
Reply | Threaded
Open this post in threaded view
|

Re: Building for Core Profile

Damian is correct, I used this:

cd OpenSceneGraph
mkdir build && cd build
cmake .. -DOPENGL_PROFILE=GLCORE -DBUILD_OSG_EXAMPLES=ON
make -j4

--
Paul Levy : Pelican Mapping\


On Tue, Jul 24, 2018 at 2:18 AM DamianDixon [via osgEarth] <[hidden email]> wrote:
I found that the safest way to build OSG for OpenGL Core Profile was to do the following:

cmake  -DOPENGL_PROFILE=GLCORE <OpenSceneGraphSourceDirectory>

In addition the latest source for osgEarth has a fix in osgEarthQt/ViewerWidget for ensuring the version of OpenGL set in OSG is passed to Qt.





If you reply to this email, your message will be added to the discussion below:
http://forum.osgearth.org/Building-for-Core-Profile-tp7591954p7591959.html
To start a new topic under osgEarth, email [hidden email]
To unsubscribe from osgEarth, click here.
NAML