Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime errors for testDomain, testDigitalSet on macos 10.7 #449

Closed
JacquesOlivierLachaud opened this issue Aug 24, 2012 · 9 comments
Closed

Comments

@JacquesOlivierLachaud
Copy link
Member

With boost 1.48, macos 10.7.4, gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00), there are runtime errors when running OGRE examples :

./tests/io/viewers/OGRE/testDomain
dyld: Library not loaded: @executable_path/../Frameworks/Ogre.framework/Versions/1.8.0/Ogre
Referenced from: /Users/lachaud/GITHUB/DGtal/build-OGRE/./tests/io/viewers/OGRE/testDomain
Reason: image not found
Trace/BPT trap: 5

./tests/io/viewers/OGRE/testDomain.app/Contents/MacOS/testDomain
New Block [Testing adding DGtalSet for ViewerOgre3D]
2012-08-24 18:26:13.889 testDomain[13254:407] invalid drawable
Assertion failed: (!pthread_cond_wait(&cond,&m)), function lock, file /opt/local/include/boost/thread/pthread/recursive_mutex.hpp, line 133.
Abort trap: 6

Here is what I got when I configure with cmake (I add to do it as root):

$ sudo OGRE_HOME=/Applications/OgreSDK/ cmake ..


-- DGtal Version 0.6.devel


-- Source DIR is /Users/lachaud/GITHUB/DGtal
-- Binary/Build DIR is /Users/lachaud/GITHUB/DGtal/build-OGRE
-- Build type is
-- Installation prefix directory is /usr/local
-- Host system is Darwin-11.4.0 with processor i386
-- Target system is Darwin-11.4.0 with processor i386
-- dot found: /opt/local/bin/dot. Installing doc in /usr/local/doc/DGtal
-- configured /Users/lachaud/GITHUB/DGtal/doc/doxy.config.in --> /Users/lachaud/GITHUB/DGtal/build-OGRE/doxy.config
-- configured /Users/lachaud/GITHUB/DGtal/doc/doxy.config.Board.in --> /Users/lachaud/GITHUB/DGtal/build-OGRE/doxy.config.Board
-- Boost and boost_program_options found.


-- DGtal Library optional configuration:
-- (to change these values, use ccmake, a graphical
-- cmake frontend, or define cmake commandline variables

-- -e.g. '-DWITH_GMP:string=true'-, cf documentation)

-- WITH_C11 false
-- WITH_OGRE true
-- WITH_GMP false
-- WITH_ITK false
-- WITH_CAIRO false
-- WITH_COIN3D-SOQT false
-- WITH_QGLVIEWER false

-- WITH_MAGICK false

-- Checking the dependencies:
-- [objc] is supported
-- Looking for OGRE...
-- checking for module 'OGRE'
-- package 'OGRE' not found
-- Found Ogre Byatis (1.8.0)
-- Found OGRE: -framework OGRE
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: /Applications/OgreSDK/lib/libOgrePaging.dylib
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: /Applications/OgreSDK/lib/libOgreTerrain.dylib
-- Looking for OGRE_Property...
-- Found OGRE_Property: /Applications/OgreSDK/lib/libOgreProperty.dylib
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: /Applications/OgreSDK/lib/libOgreRTShaderSystem.dylib
-- Looking for OIS...
-- checking for module 'OIS'
-- package 'OIS' not found
-- Found OIS: /Applications/OgreSDK/lib/release/libOIS.a
-- libOgre found.


-- Build test files enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/lachaud/GITHUB/DGtal/build-OGRE

Here is what I get when I configure with cmake without being root:
...


-- Build test files enabled
CMake Error: Could not open file for write in copy operation /usr/local/include/DGtal/io/viewers/OGRE/Ressources/plugins.cfg.tmp
CMake Error: : System Error: Permission denied
CMake Error at cmake/Install.cmake:27 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:61 (INCLUDE)

-- Configuring incomplete, errors occurred!

@AnisB
Copy link

AnisB commented Aug 24, 2012

Hi,
The binaries (not .app) that are directly in the build folder are not supposed to be there (i've corrected it).
The root need when you cmake it's corrected too.
Concerning you execution error it may be caused by a problem with 1,48 version of boost, i'll try with it and tell you back .

Could you check that it's ok for you? (except for the execution)

@AnisB
Copy link

AnisB commented Aug 24, 2012

Could you please try with changing the boost version given in the Ogre SDK ? (it's 1.49) It may help finding the problem

@JacquesOlivierLachaud
Copy link
Member Author

I have updated boost. I confirm that boost 1.48 make these runtime error, 1.49 works (strangely not always, but I need to test more), 1.50 induces a dyld error.

@AnisB
Copy link

AnisB commented Aug 30, 2012

The 1.50 error is supposed to be fixed now !

@AnisB
Copy link

AnisB commented Sep 12, 2012

Is is alright for you?

@dcoeurjo
Copy link
Member

dcoeurjo commented Oct 5, 2012

Cleaning up... @JacquesOlivierLachaud is this bug still open ?

@JacquesOlivierLachaud
Copy link
Member Author

1.50 now works on my MACOS. I close the issue.

@AnisB
Copy link

AnisB commented Oct 8, 2012

I think i've fixed it by adding liboost-thread while linking(not sure) !
But okay, great !

Le 8 oct. 2012 à 10:35, Jacques-Olivier Lachaud a écrit :

1.50 now works on my MACOS. I close the issue.


Reply to this email directly or view it on GitHub.

@JacquesOlivierLachaud
Copy link
Member Author

No. It works now.

On 05/10/2012 08:46, David Coeurjolly wrote:

Cleaning up... @JacquesOlivierLachaud
https://github.com/JacquesOlivierLachaud is this bug still open ?


Reply to this email directly or view it on GitHub
#449 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants