error with conan packages for OS X

Bug #1887320 reported by Sean Ryan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ember
New
Undecided
Unassigned

Bug Description

There are the 2 problems described below during building/execution on Mac ( the second problem is first as it is a smaller description ).

Steps to Reproduce:
-------------------
conan remote add worldforge https://api.bintray.com/conan/worldforge/worldforge-conan
git clone <email address hidden>:worldforge/ember.git
cd ember
mkdir build && cd build
conan install .. --build missing
cmake -DCMAKE_INSTALL_PREFIX=/Users/sryan/code/wf ..
make -j all install media-download
cd ../..
bin/ember

OUTPUT:
-------
pandora:wf sryan$ bin/ember
Starting Ember version 0.7.2-1098-g78b631c10 with prefix '/Users/sryan/code/wf'.
Writing logs to /Users/sryan/Library/Application Support/Ember/ember.log
==== Error during startup ====
 RenderingAPIException: OpenGL 3.0 is not supported in initialiseContext at /Users/travis/.conan/data/ogre/1.12.4/worldforge/stable/build/6d2e8e0e48117264d635aa6ece988e1ee3745634/source_subfolder/RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp (line 1825)

Crashed with signal 11, will try to detach the input system gracefully. Please report bugs at https://bugs.launchpad.net/ember
Segmentation fault: 11

======================
Problem #2: OPENGL3 is not supported on mac.
======================
Description: As you can see from the conan package, only the OGRE GL3PlusStatic render system is included, and by default OSX does not support this. I don't know conan enough to investigate more, but I did not notice anything in the details I saw, but I would recommend that on OSX that either the OpenGL 2.x plugin and/or the Metal render plugin be build instead of the GL3 one.

pandora:OGRE sryan$ ls -al
total 3232
drwxr-xr-x 5 sryan staff 160 12 Jul 20:06 .
drwxr-xr-x 11 sryan staff 352 12 Jul 20:06 ..
-rw-r--r-- 1 sryan staff 71808 12 Jul 20:06 libCodec_FreeImageStatic.a
-rw-r--r-- 1 sryan staff 427248 12 Jul 20:06 libPlugin_ParticleFXStatic.a
-rw-r--r-- 1 sryan staff 1149544 12 Jul 20:06 libRenderSystem_GL3PlusStatic.a
pandora:OGRE sryan$ pwd
/Users/sryan/.conan/data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/OGRE

======================
Problem #1: There are references that appear to be hardcoded in the conan packages to '/Users/travis', which is not valid as having a Travis user installed/created is not an ember requirement.
======================
Description: Looks like this is the same in most if not all the comments, below is the error after this reporting "image not found". I was able to work-around this by doing a symlink of /Users/sryan -> /Users/travis After working around this, there was problem #2.

pandora:wf sryan$ pwd
/Users/sryan/code/wf
pandora:wf sryan$ bin/ember
dyld: Library not loaded: /Users/travis/.conan/data/libxdg-basedir/1.2.0/worldforge/stable/package/853c4b61e2571e98cd7b854c1cda6bc111b8b32c/lib/libxdg-basedir.1.dylib
  Referenced from: /Users/sryan/code/wf/bin/ember.bin
  Reason: image not found
Abort trap: 6

pandora:ember sryan$ grep -r '/Users/travis' *
Binary file build/bin/cegui-0.8/libCEGUIFreeImageImageCodec.dylib matches
Binary file build/bin/cegui-0.8/libCEGUICoreWindowRendererSet.dylib matches
Binary file build/bin/cegui-0.8/libCEGUITinyXMLParser.dylib matches
Binary file build/bin/libxdg-basedir.1.dylib matches
Binary file build/bin/libCEGUICommonDialogs-0.dylib matches
Binary file build/bin/libCEGUILuaScriptModule-0.dylib matches
Binary file build/bin/libCEGUIBase-0.dylib matches
Binary file build/bin/libxdg-basedir.dylib matches
Binary file build/bin/ember.bin matches

pandora:.conan sryan$ cat /Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE.pc
prefix=/Users/travis/.conan/data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634 ^------- THIS IS THE ISSUE
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
plugindir=${libdir}/OGRE

Name: OGRE (static lib)
Description: Object-Oriented Graphics Rendering Engine
Version: 1.12.4
URL: http://www.ogre3d.org
Requires: freetype2, zziplib, x11, xt, xaw7, gl
Libs: -L${libdir} -L${plugindir} -lOgreMainStatic -lpthread -lboost-thread-mt -lfreeimage
Cflags: -I${includedir} -I${includedir}/OGRE -pthread

pandora:.conan sryan$ grep -l -r '/Users/travis' $HOME/.conan/ | grep \.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE-RTShaderSystem.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE-Terrain.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE-Paging.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE-Overlay.pc
/Users/sryan/.conan//data/ogre/1.12.4/worldforge/stable/package/6d2e8e0e48117264d635aa6ece988e1ee3745634/lib/pkgconfig/OGRE-MeshLodGenerator.pc
/Users/sryan/.conan//data/sigc++/2.10.0/worldforge/stable/package/853c4b61e2571e98cd7b854c1cda6bc111b8b32c/lib/pkgconfig/sigc++-2.0.pc
/Users/sryan/.conan//data/alut/1.1.0/worldforge/stable/package/ffdda180751ca9f187c8889944427298379c6f89/lib/pkgconfig/freealut.pc
/Users/sryan/.conan//data/openal/1.19.1/worldforge/stable/package/534dcc368c999e07e81f146b3466b8f656ef1f55/lib/pkgconfig/openal.pc
/Users/sryan/.conan//data/libcurl/7.66.0/worldforge/stable/package/464a888583d7cc5ec12267912e9a8e3cdb9cf25e/lib/pkgconfig/libcurl.pc
/Users/sryan/.conan//data/bullet3/2.88/worldforge/stable/package/853c4b61e2571e98cd7b854c1cda6bc111b8b32c/lib/pkgconfig/bullet.pc
/Users/sryan/.conan//data/eris/1.4.0/worldforge/testing/package/07eeca049d4ff48f29142c1995905cc5d928dc2d/lib/pkgconfig/eris-1.4.pc
/Users/sryan/.conan//data/mercator/0.4.0/worldforge/testing/package/4abc86317532d506aef57b82f90d3e20e753cced/lib/pkgconfig/mercator-0.4.pc
/Users/sryan/.conan//data/atlas/0.7.0/worldforge/testing/package/a4c1f67f8cd94c3b335a0fffb896b3ba9820bc2b/lib/pkgconfig/atlascpp-0.7.pc
/Users/sryan/.conan//data/wfmath/1.0.3/worldforge/testing/package/853c4b61e2571e98cd7b854c1cda6bc111b8b32c/lib/pkgconfig/wfmath-1.0.pc
/Users/sryan/.conan//data/sdl2/2.0.10/worldforge/stable/package/534dcc368c999e07e81f146b3466b8f656ef1f55/lib/pkgconfig/sdl2.pc
/Users/sryan/.conan//data/varconf/1.0.3/worldforge/testing/package/9e30b37b64d1a728d34344357edc7785953feac2/lib/pkgconfig/varconf-1.0.pc
/Users/sryan/.conan//data/libwfut/0.2.4/worldforge/testing/package/2fd94786ba3a94540c7c06257ce49c6b70bd62bd/lib/pkgconfig/wfut-0.2.pc
/Users/sryan/.conan//data/libxdg-basedir/1.2.0/worldforge/stable/package/853c4b61e2571e98cd7b854c1cda6bc111b8b32c/lib/pkgconfig/libxdg-basedir.pc

Revision history for this message
Sean Ryan (sryan) wrote :
Revision history for this message
Sean Ryan (sryan) wrote :

In order to address problem #2, trying to rebuild the conan packages ... using:

conan install .. --build=*@worldforge/stable

Results in below. The cause of course, is that autoconf is not installed ( which it is not for OSX ... you need something like brew/macports ).

Per our glitter msg, seems like xdg should not be selected on that platform? This would indicate to me that either the pre-reqs are not valid ( i.e. you need to install brew/macports with [package list] ... which is fine, but definitely not a native mac option and needs to be stated up-front; or there is a recipe issue somehow ).

Thoughts?

libxdg-basedir/1.2.0@worldforge/stable: Configuring sources in /Users/sryan/.conan/data/libxdg-basedir/1.2.0/worldforge/stable/source
libxdg-basedir/1.2.0@worldforge/stable: Copying sources to build folder
libxdg-basedir/1.2.0@worldforge/stable: Building your package in /Users/sryan/.conan/data/libxdg-basedir/1.2.0/worldforge/stable/build/853c4b61e2571e98cd7b854c1cda6bc111b8b32c
libxdg-basedir/1.2.0@worldforge/stable: Generator txt created conanbuildinfo.txt
libxdg-basedir/1.2.0@worldforge/stable: Calling build()
./autogen.sh: line 3: autoreconf: command not found
libxdg-basedir/1.2.0@worldforge/stable:
libxdg-basedir/1.2.0@worldforge/stable: ERROR: Package '853c4b61e2571e98cd7b854c1cda6bc111b8b32c' build failed
libxdg-basedir/1.2.0@worldforge/stable: WARN: Build folder /Users/sryan/.conan/data/libxdg-basedir/1.2.0/worldforge/stable/build/853c4b61e2571e98cd7b854c1cda6bc111b8b32c
ERROR: libxdg-basedir/1.2.0@worldforge/stable: Error in build() method, line 27
 self.run("./autogen.sh")
 ConanException: Error 1 while executing ./autogen.sh
pandora:build sryan$ pwd
/Users/sryan/code/wf/ember/build
pandora:build sryan$ which autoreconf
pandora:build sryan$ which autoconf

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.