error of installation of omegalib on Mac OS 10.12.4

32 views
Skip to first unread message

l...@umbc.edu

unread,
Apr 26, 2017, 2:39:26 PM4/26/17
to omegalib
Hi,

I am trying to install omegalib on Mac OS 10.12.4 by the following commands:

chmod +x getomega
./getomega

It reports the following error:

[ 96%] Building CXX object modules/cyclops/src/CMakeFiles/cyclops.dir/LineSet.cpp.o
/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/Compositor.cpp:1:/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/AnimatedObject.cpp10::35 :10:fatal error : fatal error: 'osg/io_utils' file 'osgUtil/Optimizer'not  filefound not
 /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/CompositorXML.cppfound:1
:10: fatal error: 'osg/io_utils' file not found
#include <osg/io_utils>
         ^
#include <osg/io_utils>
         ^
#include <osgUtil/Optimizer>
         ^
/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/Entity.cpp:36:10: fatal error: 'osg/Node' file not found
#include <osg/Node>
         ^
1 error generated.
1 error generated.
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/Compositor.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/CompositorXML.cpp.o] Error 1
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/LineSet.cpp:37:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/LineSet.h:40:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/Entity.h:40:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/EffectNode.h:40:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/Material.h:39:
/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/Uniforms.h:41:10: fatal error: 'osg/Uniform' file not found
#include <osg/Uniform>
         ^
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/EffectNode.cpp:36:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/EffectNode.h:40:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/Material.h:39:
/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/Uniforms.h:41:10: fatal error: 'osg/Uniform' file not found
#include <osg/Uniform>
         ^
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/src/CompositingLayer.cpp:34:
In file included from /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/CompositingLayer.h:37:
/Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/modules/cyclops/./cyclops/SceneLayer.h:43:10: fatal error: 'osg/Group' file not found
#include <osg/Group>
         ^
1 error generated.
1 error generated.
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/Entity.cpp.o] Error 1
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/AnimatedObject.cpp.o] Error 1
1 error generated.
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/EffectNode.cpp.o] Error 1
1 error generated.
1 error generated.
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/CompositingLayer.cpp.o] Error 1
make[2]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/LineSet.cpp.o] Error 1
make[1]: *** [modules/cyclops/src/CMakeFiles/cyclops.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 97%] Linking CXX executable ../../../../bin/osgviewer
clang: warning: libstdc++ is deprecated; move to libc++ [-Wdeprecated]
[ 97%] Built target osgviewer
make: *** [all] Error 2



Could anyone give some help? Thanks a lot!

regards,
Kai

Alessandro Febretti

unread,
Apr 26, 2017, 6:39:58 PM4/26/17
to omeg...@googlegroups.com
Don't use getomega, use the omega script

> mkdir omegalib
> cd omegalib
> (on LINUX) wget https://uic-evl.github.io/omegalib/omega
> (on OSX)   curl https://uic-evl.github.io/omegalib/omega -o omega
> chmod +x omega
> ./omega get master (or release)


l...@umbc.edu

unread,
Apr 26, 2017, 7:41:36 PM4/26/17
to omegalib
Hi Alessandro,

Thanks for your quick reply! It works!

Another question is about compiling the sample code provided in the link:

When I try to compile it with the following command:
> cmake ./ -DOmegalib_DIR="path-to-omegalib-build-directory"
> make
I modified the path to my 'omegalib' folder. But I got the following error:

CMake Warning at CMakeLists.txt:4 (find_package):
  By not providing "FindOmegalib.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Omegalib",
  but CMake did not find one.

  Could not find a package configuration file provided by "Omegalib" with any
  of the following names:

    OmegalibConfig.cmake
    omegalib-config.cmake

  Add the installation prefix of "Omegalib" to CMAKE_PREFIX_PATH or set
  "Omegalib_DIR" to a directory containing one of the above files.  If
  "Omegalib" provides a separate development package or SDK, be sure it has
  been installed.

Could you please give some guidance on how to compile the sample code? Thanks a lot!


regards,
Xiaokai

l...@umbc.edu

unread,
Apr 26, 2017, 8:33:53 PM4/26/17
to omegalib
Hi Alessandro,

I run into another problem on Ubuntu16. I tried to install the common modules using the following command:

./omega get master common-modules

And I got the following error:

[ 88%] Completed 'osg'
[ 88%] Built target osg
Makefile:149: recipe for target 'all' failed

Could you please give me some help on this? Thanks a lot!

regards,
Xiaokai

Alessandro Febretti

unread,
Apr 27, 2017, 4:16:30 PM4/27/17
to omegalib
Omegalib_Dir needs to be set to the path of your build directory (in your case probably something like /Users/kai/Desktop/omagelib_install/omegalib/omegalib/source/build?)

Alessandro Febretti

unread,
Apr 27, 2017, 4:17:36 PM4/27/17
to omegalib
Would need to see the full log to spot the error

l...@umbc.edu

unread,
Apr 27, 2017, 5:36:47 PM4/27/17
to omegalib
Hi Alessandro,

Thanks for your reply! On my local machine, I found this directory:

/Users/kai/Desktop/omegalib_install/omegalib/master/build

When I set it to this directory, it gives me the following error:

-- The C compiler identification is AppleClang 8.1.0.8020041
-- The CXX compiler identification is AppleClang 8.1.0.8020041
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/OpenGL.framework
-- Using an omegalib BUILD environment
CMake Error at /Users/kai/Desktop/omegalib_install/omegalib/master/CMakeModules/FindOmegalib.cmake:38 (include):
  include could not find load file:

    /Users/kai/Desktop/omegalib_install/omegalib/master/omicron/CMakeModules/FindOmicron.cmake
Call Stack (most recent call first):
  /Users/kai/Desktop/omegalib_install/omegalib/master/build/OmegalibConfig.cmake:14 (include)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/kai/Desktop/omegalib_install/osg/build/CMakeFiles/CMakeOutput.log".

It seems something wrong with the find_package. Could you please give some help? Thanks a lot!


regards,
Xiaokai

l...@umbc.edu

unread,
Apr 28, 2017, 12:00:07 AM4/28/17
to omegalib
Hi Alessandro,

Please see the .txt file in the attached which shows the error when I installed omegalib on ubuntu16. Thanks a lot for your help!



regards,
Xiaokai
log_omega_installation_ubuntu16.txt

Alessandro Febretti

unread,
Apr 28, 2017, 11:35:05 AM4/28/17
to omegalib
I'm seein the same error you got on OSX, solution should be the same (add -lcurses)

[ 19%] Building CXX object src/osgFX/CMakeFiles/osgFX.dir/Validator.o
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tgetstr'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tputs'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `BC'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tgetent'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tgetflag'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tgoto'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `UP'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `tgetnum'
/home/xiaokai/anaconda2/lib/libreadline.so: undefined reference to `PC'
collect2: error: ld returned 1 exit status
src/orun/CMakeFiles/orun.dir/build.make:105: recipe for target 'bin/orun' failed
make[2]: *** [bin/orun] Error 1
Reply all
Reply to author
Forward
0 new messages