--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2
---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<Screen Shot 2016-12-15 at 6.10.23 PM.png>
cd /Library/Python/2.7/site-packages/PyQt4/
for i in *.so; do sudo install_name_tool $i -change QtGui.framework/Versions/4/QtGui /Library/Frameworks/QtGui.framework/Versions/4/QtGui; done
for i in *.so; do sudo install_name_tool $i -change QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/QtCore; done
for i in *.so; do sudo install_name_tool $i -change QtOpenGL.framework/Versions/4/QtOpenGL /Library/Frameworks/QtOpenGL.framework/Versions/4/QtOpenGL; done
cd /Library/Frameworks/QtOpenGL.framework/Versions/4/
sudo install_name_tool QtOpenGL -change QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/QtCore
sudo install_name_tool QtOpenGL -change QtGui.framework/Versions/4/QtGui /Library/Frameworks/QtGui.framework/Versions/4/QtGui
cd /Library/Frameworks/QtGui.framework/Versions/4/
sudo install_name_tool QtGui -change QtCore.framework/Versions/4/QtCore /Library/Frameworks/QtCore.framework/Versions/4/QtCore
HiI never managed the graphics. What I posted earlier fixes basic operations. I tried this and that with graphics, I believe I also recompiled the relevant libraries but no luck.So I was waiting for you guys to figure it out😜
Regards,Pawel
Hi Pawel,I'm getting the same errors compiling on Sierra.
For the first error, related to libboost, the fix is to change "libboost_python.dylib" to "/usr/local/lib/libboost_ python.dylib" in all *.so files inside of "/Users/pawel/EMAN2/lib/".
I did this with a similar command as yours and it worked:
cd $EMAN2DIR/lib
for i in *.so
do
install_name_tool $i -change libboost_python.dylib /usr/local/lib/libboost_python .dylib
done
However, for the second error, "QtGui.framework/Versions/4/ QtGui" seems to be problematic in all *.so files inside "/Library/Python/2.7/site- packages/PyQt4/" (correct?).
What do I need to change it to? What should the value be of the red question marks below?
Thanks for your help!
cd
/Library/Python/2.7/site- packages/PyQt4/
for i in *.so
do
install_name_tool $i -change QtGui.framework/ Versions/4/QtGui <???>
done
I'm assuming /Library/Frameworks/ QtGui.framework/Versions/4/ QtGui might be the correct answer, but I cannot seem to run the command unless I use sudo, so I'm a bit wary of running the wrong command.
Thanks!
cd /Library/Python/2.7/site- packages/PyQt4/
for i in *.so
do
sudo install_name_tool $i -change QtGui.framework/ Versions/4/QtGui
/Library/ Frameworks/QtGui.framework/ Versions/4/QtGui
done
On Tuesday, December 20, 2016 at 9:00:20 AM UTC-6, pawe...@att.net wrote:
I also did this:pawel-Air:/Users/pawel 256> otool -L /Library/Python/2.7/site- packages/PyQt4/QtGui.so/Library/Python/2.7/site- packages/PyQt4/QtGui.so:
QtGui.framework/Versions/4/ QtGui (compatibility version 4.8.0, current version 4.8.2)QtCore.framework/Versions/4/ QtCore (compatibility version 4.8.0, current version 4.8.2)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
From: Paul Penczek <pawe...@att.net>
To: "em...@googlegroups.com" <em...@googlegroups.com>
Sent: Tuesday, December 20, 2016 8:45 AM
Subject: Re: [EMAN2] OSX 10.12
Hi,driiving safely?The page helped somewhat. Now at least the system starts. However:1. it turns out each time I recompile eman2 I have to repeat the fix.2. display did not work and I could not figure how to fix it.Pawel.
/Users/pawel/EMAN2/lib/EMAN2_ cppwrap.py in <module>()
31 #32---> 33 from libpyAligner2 import *34 from libpyAverager2 import *35 from libpyBoxingTools2 import *
ImportError: dlopen(/Users/pawel/EMAN2/lib/ libpyAligner2.so, 2): Library not loaded: libboost_python.dylibReferenced from: /Users/pawel/EMAN2/lib/ libpyAligner2.soReason: unsafe use of relative rpath libboost_python.dylib in /Users/pawel/EMAN2/lib/ libpyAligner2.so with restricted binary
In [1]: quitpawel-Air:/Users/pawel 250> !for
foreach n ( /Users/pawel/EMAN2/lib/libpy* so )foreach? install_name_tool -change libboost_python.dylib /usr/local/lib/libboost_ python.dylib $n
foreach? endpawel-Air:/Users/pawel 253> sx.pyPython 2.7.10 (default, Jul 30 2016, 19:40:32)Type "copyright", "credits" or "license" for more information.IPython 1.2.1 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.%quickref -> Quick reference.help -> Python's own help system.object? -> Details about 'object', use 'object??' for extra details.
/Library/Python/2.7/site- packages/bsddb3-5.3.0-py2.7- macosx-10.9-intel.egg/bsddb3/_ pybsddb.py:3: UserWarning: Module readline was already imported from /Library/Python/2.7/site- packages/IPython/utils/ rlineimpl.pyc, but /Library/Python/2.7/site- packages/readline-6.2.4.1-py2. 7-macosx-10.7-intel.egg is being added to sys.path
Welcome to the interactive SPARX-NoGUI Python interface, provided by ipythonSPARX v4.0 (GITHUB: Tue Dec 20 08:42:41 2016)In [1]: display(test_image())Traceback (most recent call last):
File "/Users/pawel/EMAN2/bin/ e2display.py", line 36, in <module>from emapplication import EMAppFile "/Users/pawel/EMAN2/lib/ emapplication.py", line 34, in <module>
from PyQt4 import QtGui, QtCore, QtOpenGLImportError: dlopen(/Library/Python/2.7/ site-packages/PyQt4/QtGui.so, 2): Library not loaded: QtGui.framework/Versions/4/ QtGuiReferenced from: /Library/Python/2.7/site- packages/PyQt4/QtGui.so
Reason: unsafe use of relative rpath QtGui.framework/Versions/4/ QtGui in /Library/Python/2.7/site- packages/PyQt4/QtGui.so with restricted binary
if (verbose>0) printf("%d orientations to test (%d)\n",(int)(transforms.size()*(360.0/astep)),transforms.size());
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:3368:29: warning: format specifies type 'int' but the argument has type 'size_type'
(aka 'unsigned long') [-Wformat]
printf(" %d/%d \r",it,transforms.size());
~~ ^~~~~~~~~~~~~~~~~
%lu
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:3477:44: warning: expression result unused [-Wunused-value]
for (int j=0; j<3; j++) s_step[i*3+j]*-0.75;
~~~~~~~~~~~~~^~~~~~
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:4026:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean
'delete[]'? [-Wmismatched-new-delete]
delete cr;
^
[]
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:3891:12: note: allocated with 'new[]' here
float* cr=new float[size*(bw+1)];
^
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:4028:2: warning: 'delete' applied to a pointer that was allocated with 'new[]'; did you mean
'delete[]'? [-Wmismatched-new-delete]
delete ci;
^
[]
/Users/jgalaz/srcgit/eman2/libEM/aligner.cpp:3892:12: note: allocated with 'new[]' here
float* ci=new float[size*(bw+1)];
^
15 warnings and 15 errors generated.
make[2]: *** [libEM/CMakeFiles/EM2.dir/aligner.o] Error 1
make[1]: *** [libEM/CMakeFiles/EM2.dir/all] Error 2
make: *** [all] Error 2PYTHON_INCLUDE_PATH=$HOME/anaconda2/include/python2.7 PYTHON_LIBRARY=$HOME/anaconda2/lib/libpython2.7.dylib ZLIB_LIBRARY=$HOME/anaconda2/lib/libz.dylib
--
--
----------------------------------------------------------------------------------------------
You received this message because you are subscribed to the Google
Groups "EMAN2" group.
To post to this group, send email to em...@googlegroups.com
To unsubscribe from this group, send email to eman2+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2
---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<ccmakeproblems.tiff>
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NUMPY_INCLUDE_PATH
used as include directory in directory /Users/jgalaz/srcgit/eman2
used as include directory in directory /Users/jgalaz/srcgit/eman2/rt
used as include directory in directory /Users/jgalaz/srcgit/eman2/rt/pyem
[ 94%] Built target pyTransform2
1 warning generated.
[ 95%] Linking CXX shared library ../lib/libpyEMData2.dylib
cd /Users/jgalaz/srcgit/eman2/libpyEM && /Users/jgalaz/anaconda2/bin/cmake -E cmake_link_script CMakeFiles/pyEMData2.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -dynamiclib -Wl,-headerpad_max_install_names -o ../lib/libpyEMData2.dylib -install_name @rpath/libpyEMData2.dylib CMakeFiles/pyEMData2.dir/libpyEMData2.o CMakeFiles/pyEMData2.dir/emdata_wrapitems.o ../lib/libEM2.dylib /Users/jgalaz/anaconda2/lib/libboost_python.dylib /Users/jgalaz/anaconda2/lib/libpython2.7.dylib /Users/jgalaz/anaconda2/lib/libfftw3f.dylib /Users/jgalaz/anaconda2/lib/libfftw3.dylib /Users/jgalaz/anaconda2/lib/libgsl.dylib /Users/jgalaz/anaconda2/lib/libgslcblas.dylib -lm /Users/jgalaz/anaconda2/lib/libtiff.dylib /Users/jgalaz/anaconda2/lib/libjpeg.dylib /Users/jgalaz/anaconda2/lib/libhdf5.dylib /Users/jgalaz/anaconda2/lib/libz.dylib /Users/jgalaz/anaconda2/lib/libpng.dylib /Users/jgalaz/anaconda2/lib/libz.dylib /Users/jgalaz/anaconda2/lib/libpng.dylib -Wl,-rpath,/Users/jgalaz/srcgit/eman2/lib -Wl,-rpath,/Users/jgalaz/anaconda2/lib
[ 95%] Built target pyEMData2
1 warning generated.
[ 96%] Linking CXX shared library ../lib/libpyUtils2.dylib
cd /Users/jgalaz/srcgit/eman2/libpyEM && /Users/jgalaz/anaconda2/bin/cmake -E cmake_link_script CMakeFiles/pyUtils2.dir/link.txt --verbose=1
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O3 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -dynamiclib -Wl,-headerpad_max_install_names -o ../lib/libpyUtils2.dylib -install_name @rpath/libpyUtils2.dylib CMakeFiles/pyUtils2.dir/libpyUtils2.o ../lib/libEM2.dylib /Users/jgalaz/anaconda2/lib/libboost_python.dylib /Users/jgalaz/anaconda2/lib/libpython2.7.dylib /Users/jgalaz/anaconda2/lib/libfftw3f.dylib /Users/jgalaz/anaconda2/lib/libfftw3.dylib /Users/jgalaz/anaconda2/lib/libgsl.dylib /Users/jgalaz/anaconda2/lib/libgslcblas.dylib -lm /Users/jgalaz/anaconda2/lib/libtiff.dylib /Users/jgalaz/anaconda2/lib/libjpeg.dylib /Users/jgalaz/anaconda2/lib/libhdf5.dylib /Users/jgalaz/anaconda2/lib/libz.dylib /Users/jgalaz/anaconda2/lib/libpng.dylib /Users/jgalaz/anaconda2/lib/libz.dylib /Users/jgalaz/anaconda2/lib/libpng.dylib -Wl,-rpath,/Users/jgalaz/srcgit/eman2/lib -Wl,-rpath,/Users/jgalaz/anaconda2/lib
[ 96%] Built target pyUtils2
make: *** [all] Error 2
jesuss-imac:build jgalaz$ g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
CMake Error at CMakeLists.txt:206 (if):
if given arguments:
"STREQUAL" "BUILD"
Unknown arguments specified
I wonder whether the culprit might be my environment; do any variables other than PATH and PYTHONPATH need to be reset or defined? (LD_LIBRARY_PATH, LIBRARY_PATH, etc.)? (I'm tempted to just copy the ~/.profile file from my laptop, where things are working).
conda install -c conda-forge boost boost-cpp fftw
boost 1.63.0 py27_4 conda-forge (my third column says np111py27_6)
boost-cpp 1.63.0 1 conda-forge (my third column says 2)jesuss-imac:~ jgalaz$ useconda2
jesuss-imac:~ jgalaz$ e2spt_boxer.py icon_gpu_prefilt_full_th700_ZSHORT_rotzM33p3yM3x2p4_rotz180_bin4.rec --inmemory
Traceback (most recent call last):
File "/Users/jgalaz/EMAN2/bin/e2spt_boxer.py", line 41, in <module>
from EMAN2 import *
File "/Users/jgalaz/EMAN2/lib/EMAN2.py", line 44, in <module>
from EMAN2_cppwrap import *
File "/Users/jgalaz/EMAN2/lib/EMAN2_cppwrap.py", line 33, in <module>
from libpyAligner2 import *
ImportError: dlopen(/Users/jgalaz/EMAN2/lib/libpyAligner2.so, 2): Library not loaded: @rpath/libboost_python.dylib
Referenced from: /Users/jgalaz/EMAN2/lib/libpyAligner2.so
Reason: image not found
To unsubscribe from this group, send email to eman2+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/eman2
---
You received this message because you are subscribed to the Google Groups "EMAN2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eman2+unsubscribe@googlegroups.com.