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 

Could NOT find osgDB (missing: OSGDB_LIBRARY)


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


Joined: 10 Mar 2010
Posts: 10

PostPosted: Mon Feb 02, 2015 1:24 pm    Post subject:
Could NOT find osgDB (missing: OSGDB_LIBRARY)
Reply with quote

Hi,

I have got some problems to build my application on Linux Mint using openscenegraph/
I have got an error when I try to build my makefile using cmake. My cmakelist.txt works fine on windows 7 64 bits with openscenegraph. Problem is only for linux :
Code:

cmake -G "Unix Makefiles"
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY)
-- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY)
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY)
-- Could NOT find osg (missing:  OSG_LIBRARY)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY)
CMake Error at /usr/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OSGDB_FOUND OSGUTIL_FOUND OSGGA_FOUND OSGVIEWER_FOUND OSGTEXT_FOUND
  OSGSIM_FOUND OSG_FOUND OPENTHREADS_FOUND) (found suitable version "3.2.1",
  minimum required is "3.2.1")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.0/Modules/FindOpenSceneGraph.cmake:230 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:17 (find_package)

-- Configuring incomplete, errors occurred!





I have build Openscenegraph :
Code:

cmake -G "Unix Makefiles"
make
sudo make install
cd ..

I have inserted in .bashrc :
Code:
export PATH=${PATH}:/usr/local/share/OpenSceneGraph/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/share/OpenSceneGraph-3.2.1/lib
export OSG_FILE_PATH=/usr/local/share/OpenSceneGraph/OpenSceneGraph-Data:usr/local/share/OpenSceneGraph/OpenSceneGraph-Data/Images

I can run examples as osgplanets



Thank you for your help!

Cheers,
Laurent

[/quote]
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10908

PostPosted: Mon Feb 02, 2015 1:33 pm    Post subject:
Could NOT find osgDB (missing: OSGDB_LIBRARY)
Reply with quote

HI Laurent,


Have you installed the headers for the OSG?

Robert.


On 2 February 2015 at 13:24, Laurent Berger < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Hi,

I have got some problems to build my application on Linux Mint using openscenegraph/
I have got an error when I try to build my makefile using cmake. My cmakelist.txt works fine on windows 7  64 bits with openscenegraph. Problem is only for linux :

Code:

cmake -G "Unix Makefiles"
-- Could NOT find osgDB (missing:  OSGDB_LIBRARY)
-- Could NOT find osgUtil (missing:  OSGUTIL_LIBRARY)
-- Could NOT find osgGA (missing:  OSGGA_LIBRARY)
-- Could NOT find osgViewer (missing:  OSGVIEWER_LIBRARY)
-- Could NOT find osgText (missing:  OSGTEXT_LIBRARY)
-- Could NOT find osgSim (missing:  OSGSIM_LIBRARY)
-- Could NOT find osg (missing:  OSG_LIBRARY)
-- Could NOT find OpenThreads (missing:  OPENTHREADS_LIBRARY)
CMake Error at /usr/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find OpenSceneGraph (missing: OPENSCENEGRAPH_LIBRARIES
  OSGDB_FOUND OSGUTIL_FOUND OSGGA_FOUND OSGVIEWER_FOUND OSGTEXT_FOUND
  OSGSIM_FOUND OSG_FOUND OPENTHREADS_FOUND) (found suitable version "3.2.1",
  minimum required is "3.2.1")
Call Stack (most recent call first):
  /usr/local/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/cmake-3.0/Modules/FindOpenSceneGraph.cmake:230 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:17 (find_package)

-- Configuring incomplete, errors occurred!







I have build Openscenegraph :

Code:

cmake -G "Unix Makefiles"
make
sudo make install
cd ..



I have inserted in .bashrc :

Code:
export PATH=${PATH}:/usr/local/share/OpenSceneGraph/bin
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/share/OpenSceneGraph-3.2.1/lib
export OSG_FILE_PATH=/usr/local/share/OpenSceneGraph/OpenSceneGraph-Data:usr/local/share/OpenSceneGraph/OpenSceneGraph-Data/Images



I can run examples as osgplanets



Thank you for your help!

Cheers,
Laurent


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





_______________________________________________
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
View user's profile Send private message
lberger
Newbie


Joined: 10 Mar 2010
Posts: 10

PostPosted: Mon Feb 02, 2015 2:21 pm    Post subject:
Reply with quote

Thanks for your answer.

I think yes : I can find in /usr/local/include osg osgnimation...osgVolume osgWidget

In cmakecache.txt I ve got :
Quote:

//Path to a file.
OPENTHREADS_INCLUDE_DIR:PATH=/usr/local/include

//Path to a library.
OPENTHREADS_LIBRARY:FILEPATH=OPENTHREADS_LIBRARY-NOTFOUND

//Path to a library.
OPENTHREADS_LIBRARY_DEBUG:FILEPATH=OPENTHREADS_LIBRARY_DEBUG-NOTFOUND
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10908

PostPosted: Mon Feb 02, 2015 3:01 pm    Post subject:
Could NOT find osgDB (missing: OSGDB_LIBRARY)
Reply with quote

Hi Laurent,


It's not a Linux specific issue as it'll work fine if the heads and libs are installed in standard places.



If your headers and libs are in a non standard place you'll need to tell Cmake where to look, either at first configuration or via the ccmake tool.  For instance try setting the OSG_DIR env var to where you've put the OSG.  If you are still having problems have a look at CMake's /usr/share/cmake-version/Modules directory for it's Find OSG related scripts.

Robert.


On 2 February 2015 at 14:21, Laurent Berger < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Thanks for your answer.

I think yes  : I can find  in /usr/local/include osg osgnimation...osgVolume osgWidget

In cmakecache.txt I ve got :

Quote:

//Path to a file.
OPENTHREADS_INCLUDE_DIR:PATH=/usr/local/include

//Path to a library.
OPENTHREADS_LIBRARY:FILEPATH=OPENTHREADS_LIBRARY-NOTFOUND

//Path to a library.
OPENTHREADS_LIBRARY_DEBUG:FILEPATH=OPENTHREADS_LIBRARY_DEBUG-NOTFOUND



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





_______________________________________________
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
View user's profile Send private message
lberger
Newbie


Joined: 10 Mar 2010
Posts: 10

PostPosted: Mon Feb 02, 2015 4:31 pm    Post subject:
Reply with quote

Thanks it's ok now with OSG_DIR==/usr/local/share/OpenSceneGraph-3.2.1/

But what's "standard places"? (I'm not a Linux specialist)

...


Thank you!

Cheers,
Laurent
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 10908

PostPosted: Mon Feb 02, 2015 4:49 pm    Post subject:
Could NOT find osgDB (missing: OSGDB_LIBRARY)
Reply with quote

HI Laurent,

On 2 February 2015 at 16:31, Laurent Berger < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Thanks it's ok now with OSG_DIR==/usr/local/share/OpenSceneGraph-3.2.1/


That's certainly non standard Smile


Quote:
But what's "standard places"? (I'm not a Linux specialist)


Header files are normally placed in:


  /usr/include

  /usr/local/include


Libs in


  /usr/lib

  /usr/local/lib


There are a few other variations too.  Have a look at the CMake find modules to see where it checks.


One doesn't normally place headers and libs under a specific version subdirectory like your have in case.  Do you compile and install it yourself?


Robert.


 

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
lberger
Newbie


Joined: 10 Mar 2010
Posts: 10

PostPosted: Mon Feb 02, 2015 8:31 pm    Post subject:
Reply with quote

I have installed myself using command :

Code:
cmake -G "Unix Makefiles"
make
sudo make install

with previous command include are in /usr/local/include
and lib in /usr/local/lib64
So now I have set OSG_DIR=/usr/local/lib64
and may be now I have a standard place for OSG
is it right?


Cheers,
Laurent
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 Missing Text tnassour General 0 Thu Apr 13, 2017 8:55 am View latest post
No new posts CMake: 3rdPartyPackages - extended to... robertosfield Submission 1 Wed Dec 21, 2016 5:10 pm View latest post
No new posts Missing ReaderWriterOpenCASCADE.h robertosfield Submission 2 Tue Dec 13, 2016 9:49 am View latest post
No new posts CMake: 3rdPartyPackages - extended to... zonk Submission 0 Sat Oct 22, 2016 3:20 pm View latest post
No new posts OSG v3.5.6 missing copy ShapeDrawable... LiChi General 1 Fri Oct 14, 2016 4:39 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