compilation error

33 views
Skip to first unread message

l...@umbc.edu

unread,
Apr 28, 2017, 11:03:03 PM4/28/17
to omegalib
Hi,

I tried to compile the example code in this link: https://github.com/uic-evl/omegalib-standalone-examples/tree/master/osg which this command

cmake ./ -DOmegalib_DIR="/home/xiaokai/Desktop/omegalib/release/build"

In MacOS 10.12.3, it gives this 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".

 in Ubuntu16, it gives this error:

-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /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: /usr/bin/c++
-- Check for working CXX compiler: /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: /usr/lib/x86_64-linux-gnu/libGL.so 
-- Using an omegalib BUILD environment
CMake Error at /home/xiaokai/Desktop/omegalib/release/CMakeModules/FindOmegalib.cmake:38 (include):
  include could not find load file:

    /home/xiaokai/Desktop/omegalib/release/omicron/CMakeModules/FindOmicron.cmake
Call Stack (most recent call first):
  /home/xiaokai/Desktop/omegalib/release/build/OmegalibConfig.cmake:14 (include)
  CMakeLists.txt:4 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/xiaokai/Desktop/omegalib-standalone-examples-master/osg/CMakeFiles/CMakeOutput.log".

Could you please give some instruction on how to compile the example? Thanks a lot!


regards,
Xiaokai

Alessandro Febretti

unread,
May 9, 2017, 10:53:42 PM5/9/17
to omegalib
Thanks for this report I actually found and fixed a bug related to this in both the master and release omegalib branches.

You can get the new version typing
> omega update master

no need to recompile

then in your standalone examples, delete and re-create the build directory (or just delete CMakeCache.txt and run the cmake command again).

NOTE: I tested this with the gl standalone example, not the osg one, but the fix should be good for both.

l...@umbc.edu

unread,
May 11, 2017, 3:31:48 PM5/11/17
to omegalib
Hi Alessandro,

Thanks for your reply! I followed your previous post and run cmake again. It still gives me an 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
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.


-- Configuring done
-- Generating done
-- Build files have been written to: /Users/kai/Desktop/omegalib_install/gl/build

It seems there is something wrong with the path. If I run the make file, it still reports the header files could not be found. Could you please give some instructions on that? Thanks!


regards,
Xiaokai

Alessandro Febretti

unread,
May 11, 2017, 5:18:34 PM5/11/17
to omegalib
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.

You need to set Omegalib_DIR to the directory where you build omegalib 

if you used this command to build the example standalone app:
cmake ./ -DOmegalib_DIR="/home/xiaokai/Desktop/omegalib/release/build"

make sure /home/xiaokai/Desktop/omegalib/release/build is the correct build dir (it should contain OmegalibConfig.cmake)

l...@umbc.edu

unread,
May 11, 2017, 9:01:21 PM5/11/17
to omegalib
Hi Alessandro,

Thanks a lot! I tested the gl example and the program compiles. It generates a file myohello. When I tried to run it, there is no window popping up and reports this error on my terminal:

Xiaokais-MBP:bin kai$ ./myohello
opening /Users/kai/Desktop/omegalib_install/omegalib/master/build/default.cfg
!!! Service not found: MouseService
!!! Service not found: KeyboardService
!!! Service not found: ViewRayService
Initializing mission control server on port 22500
libc++abi.dylib: terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<asio::system_error> >: bind: Address already in use

How should I fix this issue?
Thank again!


regards,
Xiaokai

Alessandro Febretti

unread,
May 14, 2017, 4:54:30 PM5/14/17
to omegalib
Disable the mission control server: https://github.com/uic-evl/omegalib/wiki/MissionControl https://github.com/uic-evl/omegalib/wiki/CommandLine#mission-control-mode

you can do it either through  the config file or passing --mc disable to your program command line(i.e. ./myohello --mc disable)

l...@umbc.edu

unread,
May 17, 2017, 9:31:19 AM5/17/17
to omegalib
Hi Alessandro,

When I run the following command, it popped up a window without showing anything. The terminal reports the following message:

Xiaokais-MacBook-Pro:bin kai$ ./myohello --mc disable
opening /Users/kai/Desktop/omegalib_install/omegalib/master/build/default.cfg
!!! Service not found: MouseService
!!! Service not found: KeyboardService
!!! Service not found: ViewRayService
!!! SoundEnvironment:loadSoundFromFile could not find sound file test
Attemped to loaded buffer ID 10, but not connected to a sound server!
===================== ReferenceType object leaks follow:
N5omega11LeakPrinterE: 1
N5omega13DrawInterfaceE: 1


regards,
Xiaokai

Alessandro Febretti

unread,
May 17, 2017, 2:34:20 PM5/17/17
to omegalib
There is no obvious error. Try two things
click on the graphical window that pops and press the tab key. Does an on-screen console open?

run the program with the -L d option. this will print out an extended log. Post it here.

l...@umbc.edu

unread,
May 17, 2017, 8:05:28 PM5/17/17
to omegalib
Xiaokais-MacBook-Pro:bin kai$ ./myohello --mc disable -L d
opening /Users/kai/Desktop/omegalib_install/omegalib/master/build/default.cfg
omegalib data search paths:
::: /Users/kai/Desktop/omegalib_install/omegalib/master/build/bin
::: /Users/kai/Desktop/omegalib_install/omegalib/master/build/
omegalib application config lookup:
::: trying ohello/ohello.cfg
::: not found, trying ohello.cfg
::: not found, trying default.cfg
::: found config: default.cfg
Opened config file: default.cfg
SystemManager::setup: systemConfig = ../system/desktop.cfg
Opened config file: ../system/desktop.cfg
PythonInterpreter::addPythonPath: ./
PythonInterpreter::addPythonPath: /Users/kai/Desktop/omegalib_install/omegalib/master/build//bin
PythonInterpreter::addPythonPath: /Users/kai/Desktop/omegalib_install/omegalib/master/build/bin/
PythonInterpreter::addPythonPath: /Users/kai/Desktop/omegalib_install/omegalib/master/build//modules
SystemManager::setupDisplaySystem: type = GLFW
[SystemManager::setupDisplaySystem] finding display system GLFW
[SystemManager::setupDisplaySystem] loading library /Users/kai/Desktop/omegalib_install/omegalib/master/build/bin/libdisplaySystem_GLFW.dylib
DisplayTileConfig: correctionMode passthru
PlanarDisplayConfig: numTiles 1 1
PlanarDisplayConfig: tile t0x0 offset 0 0
[DisplayConfig] setCanvasRect 0 0 854 480
[DisplayTileConfig] Tile t0x0 ON
[ModuleServices::addModule] HelloApplication
!!! Service not found: MouseService
!!! Service not found: KeyboardService
!!! Service not found: ViewRayService
ServiceManager::initialize
Event buffer allocated. Max events: 512
[ModuleServices::addModule] EventSharingModule
[ModuleServices::addModule] console
[ModuleServices::addModule] CameraController
Engine: Running with sound disabled.
Death switch timeout: 240 seconds
[GLFWDisplaySystem::run]: OpenGL 4.1 core initializing
[GpuContext::GpuContext] 0 Glew init
[Renderer::initialize] id=0
!!! SoundEnvironment:loadSoundFromFile could not find sound file test
Attemped to loaded buffer ID 10, but not connected to a sound server!
Engine::refreshPointer: creating pointer 0
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf
!!! DrawInterface::createFont: could not find font file system/fonts/arial.ttf

[ModuleServices::disposeNonCoreModules]
Engine::dispose
[ModuleServices::disposeAll]
[~EngineModule] HelloApplication
[~EngineModule] EventSharingModule
[~EngineModule] console
[~EngineModule] CameraController
Engine::dispose: cleaning up 0 cameras
~Engine

Alessandro Febretti

unread,
May 23, 2017, 6:25:34 PM5/23/17
to omegalib
That font error is a bit weird.. if you go in  /Users/kai/Desktop/omegalib_install/omegalib/master/system/fonts do you have arial.ttf?
Reply all
Reply to author
Forward
0 new messages