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 

issues compiling 3.0.1


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Lonnie.CTR.Souder
Guest





PostPosted: Wed Sep 26, 2018 8:59 pm    Post subject:
issues compiling 3.0.1
Reply with quote

Hello, I am trying to upgrade some image generators and found that we can no longer compile our code. In fact I cannot compile OSG 3.0.1 anymore. Here is the error I getting:





/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In constructor ‘osg::State::State()’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:112:26: error: cannot convert ‘bool’ to ‘bool*’ in assignment
_abortRenderingPtr = false;
^~~~~
/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In member function ‘const osg::StateAttribute* osg::State::getLastAppliedTextureAttribute(unsigned int, osg::StateAttribute::Type, unsigned int) const’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:692:55: error: cannot convert ‘bool’ to ‘const osg::StateAttribute*’ in return
if (unit>=_textureAttributeMapList.size()) return false;
^~~~~
src/osg/CMakeFiles/osg.dir/build.make:2702: recipe for target 'src/osg/CMakeFiles/osg.dir/State.o' failed
make[2]: *** [src/osg/CMakeFiles/osg.dir/State.o] Error 1
CMakeFiles/Makefile2:300: recipe for target 'src/osg/CMakeFiles/osg.dir/all' failed
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2



We made an effort to upgrade our software to use the latest and greatest OSG but failed because of some low level code issues which we just don't understand. We plan to do a tech refresh. This is just a band aid to keep things usable.

------------------
Post generated by Mail2Forum
Back to top
Voerman, L.
Guest





PostPosted: Thu Sep 27, 2018 8:16 am    Post subject:
issues compiling 3.0.1
Reply with quote

Hi Lonni,Both were fixed in 2012 by replacing false with NULL.
Regards, Laurens.


Revision: 5743d30dc1614ce4ee809cbc96d1b09c3778c4c2
Author: Robert Osfield < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)>
Date: 2/9/2012 4:54:13 PM
Message:
From Olaf Flebbe, "there are two ocurrences where pointer to bool is mixed with bool. Fixes warnings on MacOSX with llvm.


diff --git a/src/osg/State.cpp b/src/osg/State.cpp
index 0b88d63..2137bbd 100644
--- a/src/osg/State.cpp
+++ b/src/osg/State.cpp
@@ -109,7 +109,7 @@ State::State():
        }
    }


-    _abortRenderingPtr = false;
+    _abortRenderingPtr = NULL;


    _checkGLErrors = ONCE_PER_FRAME;


@@ -689,7 +689,7 @@ bool State::getLastAppliedTextureMode(unsigned int unit,Stat


 const StateAttribute* State::getLastAppliedTextureAttribute(unsigned int unit,S
 {
-    if (unit>=_textureAttributeMapList.size()) return false;
+    if (unit>=_textureAttributeMapList.size()) return NULL;
    return getLastAppliedAttribute(_textureAttributeMapList[unit],type,member);
 }


"
----
Modified: src/osg/State.cpp






On Wed, Sep 26, 2018 at 10:59 PM < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:

Hello, I am trying to upgrade some image generators and found that we can no longer compile our code.  In fact I cannot compile OSG 3.0.1 anymore.  Here is the error I getting:





/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In constructor ‘osg::State::State()’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:112:26: error: cannot convert ‘bool’ to ‘bool*’ in assignment
    _abortRenderingPtr = false;
                         ^~~~~
/data/oldproject/OpenSceneGraph/src/osg/State.cpp: In member function ‘const osg::StateAttribute* osg::State::getLastAppliedTextureAttribute(unsigned int, osg::StateAttribute::Type, unsigned int) const’:
/data/oldproject/OpenSceneGraph/src/osg/State.cpp:692:55: error: cannot convert ‘bool’ to ‘const osg::StateAttribute*’ in return
    if (unit>=_textureAttributeMapList.size()) return false;
                                                      ^~~~~
src/osg/CMakeFiles/osg.dir/build.make:2702: recipe for target 'src/osg/CMakeFiles/osg.dir/State.o' failed
make[2]: *** [src/osg/CMakeFiles/osg.dir/State.o] Error 1
CMakeFiles/Makefile2:300: recipe for target 'src/osg/CMakeFiles/osg.dir/all' failed
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2



We made an effort to upgrade our software to use the latest and greatest OSG but failed because of some low level code issues which we just don't understand.  We plan to do a tech refresh.  This is just a band aid to keep things usable.





_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12145

PostPosted: Thu Sep 27, 2018 9:14 am    Post subject:
issues compiling 3.0.1
Reply with quote

Hi Lonni,

Laurens suggested fix is what I would have suggested too so I'd
recommend you just apply these locally.

For updating to the latest version, given that you are jumping from
3.01 to 3.6.x would be a big jump. Both are still part of 3.x series
so broadly similar w.r.t public API, so for the most part I would
expect a recompile to be sufficient. It's still a long period though
so there are lots changes to the interface, implementations, as
additional features or features refactored.

If you do the big jump and just find a few problems then just let us
know what issues you have and we may be able to point you in the right
direction to resolve them. If the big jump introduces too many
issues then perhaps jumping to 3.2.x first, get things working, then
jump to 3.4.x then finally to 3.6.x might be easier. Or if you are
lucky then just jumping to 3.4.x would be an easy enough step.

As a general note, few users now use 3.0.x so there hasn't been any
activity within the OSG community to support it, for the last couple
of years the main focus has been on 3.4.x and 3.6.x. Build and bug
fixes have all focused on there two stable release series. I'm pretty
confident that 3.6.3 is the best release we've made so once you've
made the leap and got things working there it should be a much more
stable base - and any issues found by the community will be wrapped up
and pushed out as subsequent minor point releases, so you'll be able
to benefit from these too.

Cheers,
Robert.


------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General 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 osg3.6.3 plugin issues jaisingla Plugins [osgPlugins] 2 Thu Oct 18, 2018 6:35 am View latest post
No new posts GL profiles issues on Windows Riccardo Corsi General 11 Tue Sep 04, 2018 8:46 pm View latest post
No new posts osgText: two thread-safety issues gwaldron General 1 Tue Jul 31, 2018 2:54 pm View latest post
No new posts Volume rendering issues... tommwilliamson General 4 Wed Jul 25, 2018 12:19 pm View latest post
No new posts Graphics context issues eventhorizon5 General 6 Mon Jul 09, 2018 7:00 am 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