phr34k / coral-repo

Automatically exported from code.google.com/p/coral-repo
0 stars 2 forks source link

coralMaya linux cant find libs #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I build coralMaya ok. Bu I dont understand how to export right libs pathes 
(_coral.so, _coralUi.so ).

For example:

After build folders structure:

1. _coral.so = /coralBuildPath/coral/_coral.so
2. _coralUi.so = /coralBuildPath/coral/coralUi/_coralUi.so
3. Imath.so = /coralBuildPath/coral/Imath.so
4. coralMaya folder = /coralBuildPath/coral/coralMaya
------------------------------

I run maya with command like:

LD_LIBRARY_PATH = /coralBuildPath/coral:/coralBuildPath/coral/coralUi

but after:

from coralMaya import coralMayaApp

it cant find _coral.so

What right pathes I need to set

Also afterBuil maya plugin name is libcoralMaya.so, but in your python scripts 
name is coralMaya.so. I renamed it and it works. Plese check this

Original issue reported on code.google.com by vuxs...@gmail.com on 25 Nov 2011 at 11:05

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, 

you'll need to add the coralMayaBuild path to your python paths.

This is my maya startup env on Os X:
export 
PYTHONPATH=$PYTHONPATH:"/Users/andrea/dev/coral-repo/coral/build/coralMayaBuild"

export DYLD_LIBRARY_PATH="/Users/andrea/dev/external/boost_1_46/stage/lib"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/andrea/dev/external/tbb40_20110809o
ss/lib"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/andrea/dev/external/ilmbase-1.0.1/l
ibs"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/andrea/dev/coral-repo/coral/build/c
oralMayaBuild/coralMaya"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/andrea/dev/coral-repo/coral/build/c
oralMayaBuild/coral"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Users/andrea/dev/coral-repo/coral/build/c
oralMayaBuild/coral/coralUi"
export 
DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:"/Applications/Autodesk/maya2012/Maya.app/C
ontents/Frameworks/Python.framework/Versions/2.6"

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 12:51

GoogleCodeExporter commented 8 years ago
This my maya startup script:

export BRAHMAN_PATH=/opt/brahman
export 
PYTHONPATH=$BRAHMAN_PATH/python:$BRAHMAN_PATH/coral/BUILD/coral-repo/coral/build
/coralMayaBuild
export LD_LIBRARY_PATH=$BRAHMAN_PATH/coral/lib/OpenCL/lib64
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BRAHMAN_PATH/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coral
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BRAHMAN_PATH/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coral/coralUi
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BRAHMAN_PATH/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coralMaya
#export MAYA_SCRIPT_PATH=$BRAHMAN_PATH\mel
export MAYA_PLUG_IN_PATH=$BRAHMAN_PATH\python\plugins
/usr/autodesk/maya2012-x64/bin/maya2012

When I run in script editor:

from coralMaya import coralMayaApp
# Error: ImportError: coral/_coral.so: cannot open shared object file: No such 
file or directory #

But import coral._coral work

I dont understand

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 5:09

GoogleCodeExporter commented 8 years ago
Sory upper text is difficult for reading. So this is my simle maya startup 
script, that dont work:

export 
PYTHONPATH=$PYTHONPATH:"/opt/brahman/coral/BUILD/coral-repo/coral/build/coralMay
aBuild"

export LD_LIBRARY_PATH="/opt/brahman/coral/lib/OpenCL/lib64"
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/brahman/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coralMaya"
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/brahman/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coral"
export 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/opt/brahman/coral/BUILD/coral-repo/coral/buil
d/coralMayaBuild/coral/coralUi"

/usr/autodesk/maya2012-x64/bin/maya2012

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 6:11

GoogleCodeExporter commented 8 years ago
Is your boost.python compiled against the same python version as the one used 
in maya?

If that's not the case then you'll need two different boost.python libraries, 
one compiled against your system python and another one compiled against maya's 
python.

You'll also need to be careful as to wich boost.python coral will linking 
against.

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 6:20

GoogleCodeExporter commented 8 years ago
I dont know what python.boost in maya
in my Ubuntu 11.10 it is python.boost 1.46

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 6:28

GoogleCodeExporter commented 8 years ago
sory - 1.46.1

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 6:32

GoogleCodeExporter commented 8 years ago
as i see in maya help window (help menu/About) the version of boost is 1.37.
Is it right ? And need I compile python.boost 1.37 ?

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 6:38

GoogleCodeExporter commented 8 years ago
I was talking about the python version.

just to recap:

You have to make sure boost.python and coral are linked against the same python 
version.
If you are on linux you can use the ldd command to check what library versions 
coral and boost.python are compiled against.

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 7:06

GoogleCodeExporter commented 8 years ago
ldd _coral.so 
    linux-vdso.so.1 =>  (0x00007fff12e54000)
    libImath.so.6 => /usr/local/lib/libImath.so.6 (0x00007f4e12488000)
    libIex.so.6 => /usr/local/lib/libIex.so.6 (0x00007f4e1226a000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f4e11db1000)
    libboost_python-py27.so.1.46.1 => /usr/lib/libboost_python-py27.so.1.46.1 (0x00007f4e11b65000)
    libtbb.so.2 => /usr/lib/libtbb.so.2 (0x00007f4e1193a000)
    libOpenCL.so => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f4e11632000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f4e113ae000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f4e11197000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f4e10df8000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f4e10ba7000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f4e107f7000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f4e105df000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f4e103c2000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f4e101bd000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f4e0ffba000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f4e131e4000)

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 7:39

GoogleCodeExporter commented 8 years ago
ldd _coral.so 
    linux-vdso.so.1 =>  (0x00007fff5cfff000)
    libImath.so.6 => /usr/local/lib/libImath.so.6 (0x00007fc98a913000)
    libIex.so.6 => /usr/local/lib/libIex.so.6 (0x00007fc98a6f5000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007fc98a23c000)
    libboost_python-py26.so.1.46.1 => /usr/lib/libboost_python-py26.so.1.46.1 (0x00007fc989ff0000)
    libtbb.so.2 => /usr/lib/libtbb.so.2 (0x00007fc989dc5000)
    libOpenCL.so => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc989abd000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc989839000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc989622000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc989283000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007fc989032000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007fc988c82000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc988a6a000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc98884d000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc988648000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fc988445000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fc98b66f000)

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 8:08

GoogleCodeExporter commented 8 years ago
looks like you are linking against your system python, that's fine when you run 
coral standalone, but for coralMaya you need to link against maya's python.
Same for libboost_python.

Here you can find how to configure your buildEnv to do so:
http://code.google.com/p/coral-repo/wiki/build_coralMaya

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 8:35

GoogleCodeExporter commented 8 years ago
I understand. I readed this howto 1000times :)

My Last buildEnv:

# buildEnv.py
import os

os.environ["CORAL_PYTHON_INCLUDES_PATH"] = "/usr/include/python2.6"
os.environ["CORAL_PYTHON_LIBS_PATH"] = "/usr/lib/python2.6"
os.environ["CORAL_PYTHON_LIB"] = "python2.6"

os.environ["CORAL_BOOST_INCLUDES_PATH"] = "/usr/include/boost"
os.environ["CORAL_BOOST_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_BOOST_PYTHON_LIB"] = "boost_python"

os.environ["CORAL_IMATH_INCLUDES_PATH"] = "/usr/local/include/OpenEXR"
os.environ["CORAL_IMATH_LIBS_PATH"] = "/usr/local/lib"
os.environ["CORAL_IMATH_LIB"] = "Imath"
os.environ["CORAL_IMATH_IEX_LIB"] = "Iex"

os.environ["CORAL_TBB_INCLUDES_PATH"] = "/usr/include/tbb"
os.environ["CORAL_TBB_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_TBB_LIB"] = "tbb"

os.environ["CORAL_CL_INCLUDES_PATH"] = "/opt/brahman/coral/lib/OpenCL/include"
os.environ["CORAL_CL_LIBS_PATH"] = "/opt/brahman/coral/lib/OpenCL/lib64"
os.environ["CORAL_CL_LIB"] = "OpenCL"

os.environ["CORAL_OPENGL_INCLUDES_PATH"] = "/usr/include"
os.environ["CORAL_OPENGL_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_OPENGL_LIB"] = "GL" 

os.environ["CORAL_PARALLEL"] = "CORAL_PARALLEL_TBB"

# sdk setup
#os.environ["CORAL_INCLUDES_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coral/includes"
#os.environ["CORALUI_INCLUDES_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coralUi/includes"
#os.environ["CORAL_LIBS_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coral/libs"
#os.environ["CORALUI_LIBS_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coralUi/libs"

if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
    os.environ["CORAL_MAYA_INCLUDES_PATH"] = "/usr/autodesk/maya2012-x64/include"
    os.environ["CORAL_MAYA_LIBS_PATH"] = "/usr/autodesk/maya2012-x64/lib"

    os.environ["CORAL_PYTHON_LIB"] = "python2.6"

    os.environ["CORAL_PYTHON_INCLUDES_PATH"] = "/usr/autodesk/maya2012-x64/include/python2.6"
    os.environ["CORAL_PYTHON_LIBS_PATH"] = "/usr/autodesk/maya2012-x64/lib"

    os.environ["CORAL_PARALLEL"] = ""

But -> ldd _coral.so 
    linux-vdso.so.1 =>  (0x00007ffffd572000)
    libImath.so.6 => /usr/local/lib/libImath.so.6 (0x00007f2d33544000)
    libIex.so.6 => /usr/local/lib/libIex.so.6 (0x00007f2d33326000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f2d32e6d000)
    libboost_python-py26.so.1.46.1 => /usr/lib/libboost_python-py26.so.1.46.1 (0x00007f2d32c21000)
    libtbb.so.2 => /usr/lib/libtbb.so.2 (0x00007f2d329f6000)
    libOpenCL.so => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2d326ee000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2d3246a000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2d32253000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2d31eb4000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f2d31c63000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f2d318b3000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2d3169b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2d3147e000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2d31279000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f2d31076000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f2d342a0000)

Why libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0

and not /usr/autodesk/maya2012-x64/lib/libpython2.6.so.1.0

I dot understand (((

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 8:45

GoogleCodeExporter commented 8 years ago
standalone build well...

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 8:46

GoogleCodeExporter commented 8 years ago
i think there's an error in the python lib specified for the maya build:

if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
     os.environ["CORAL_PYTHON_LIB"] = "python2.6"

You should have a look at your maya-python folder and spot the right library 
name, on Os X is pretty weird, as it's not a .so, it's simply called Python.

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 8:51

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
/usr/autodesk/maya2012-x64/lib/python2.6

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 8:56

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
there are people who compiled coralMaya under linux?

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 9:03

GoogleCodeExporter commented 8 years ago
Your ldd shows that gcc is picking up the wrong python lib:
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f2d32e6d000)

Sometimes this happens because gcc picks up the first lib it finds.
You can try making an alias of maya-python's lib and call it with a unique name.

I don't know if other people have compiled it, but you shouldn't be that far...

Original comment by aintergu...@gmail.com on 25 Nov 2011 at 9:31

GoogleCodeExporter commented 8 years ago
as i understand you:

I linked /usr/autodesk/maya2012-x64/lib(maya python libs folder) --> 
/usr/lib/python2.6_maya

and set: os.environ["CORAL_PYTHON_LIB"] = "python2.6_maya"

But error:

g++ -o coral/_coral.so -shared 
coral/builtinNodes/debugcoralMayaDEBUG/GeoNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/ObjImporter.os 
coral/builtinNodes/debugcoralMayaDEBUG/CoralIOImporter.os 
coral/builtinNodes/debugcoralMayaDEBUG/GeoGrid.os 
coral/builtinNodes/debugcoralMayaDEBUG/MathNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/NumericOperation.os 
coral/builtinNodes/debugcoralMayaDEBUG/LoopNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/GeoSphere.os 
coral/builtinNodes/debugcoralMayaDEBUG/ArithmeticNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/GeoCube.os 
coral/builtinNodes/debugcoralMayaDEBUG/ProcessSimulationNode.os 
coral/builtinNodes/debugcoralMayaDEBUG/SplineNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/NumericNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/DagNodes.os 
coral/builtinNodes/debugcoralMayaDEBUG/KernelNode.os 
coral/builtinNodes/debugcoralMayaDEBUG/ConditionalNodes.os 
coral/pythonWrappers/debugcoralMayaDEBUG/pythonWrapper.os 
coral/src/debugcoralMayaDEBUG/ErrorObject.os 
coral/src/debugcoralMayaDEBUG/Value.os 
coral/src/debugcoralMayaDEBUG/GeoAttribute.os 
coral/src/debugcoralMayaDEBUG/Command.os 
coral/src/debugcoralMayaDEBUG/BoolAttribute.os 
coral/src/debugcoralMayaDEBUG/Object.os 
coral/src/debugcoralMayaDEBUG/Numeric.os 
coral/src/debugcoralMayaDEBUG/NetworkManager.os 
coral/src/debugcoralMayaDEBUG/NestedObject.os 
coral/src/debugcoralMayaDEBUG/mathUtils.os 
coral/src/debugcoralMayaDEBUG/PassThroughAttribute.os 
coral/src/debugcoralMayaDEBUG/containerUtils.os 
coral/src/debugcoralMayaDEBUG/stringUtils.os 
coral/src/debugcoralMayaDEBUG/EnumAttribute.os 
coral/src/debugcoralMayaDEBUG/Node.os coral/src/debugcoralMayaDEBUG/Geo.os 
coral/src/debugcoralMayaDEBUG/Attribute.os 
coral/src/debugcoralMayaDEBUG/NumericAttribute.os 
coral/src/debugcoralMayaDEBUG/PythonDataCollector.os -L/usr/local/lib 
-L/usr/autodesk/maya2012-x64/lib -L/usr/lib -L/usr/lib 
-L/opt/brahman/coral/lib/OpenCL/lib64 -lImath -lIex -lpython2.6_maya 
-lboost_python -ltbb -lOpenCL
/usr/bin/ld: cannot find -lpython2.6_maya
collect2: ld returned 1 exit status
scons: *** [coral/_coral.so] Error 1
scons: building terminated because of errors.

What I'm doing wrong?

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 9:42

GoogleCodeExporter commented 8 years ago
CORAL_PYTHON_LIBS_PATH refer to maya python libs path. Its right.
But, what CORAL_PYTHON_LIB should refer to ? Idnot understand (
sory for bad english )

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 10:18

GoogleCodeExporter commented 8 years ago
You shouldn't have "python2.6_maya", just "python2.6"

CORAL_PYTHON_LIB is acutally the parameter that will be send to gcc to ask him 
to link libs to .so :)

In you case it does this:

-lpython2.6_maya

But python2.6_maya is not a .so

os.environ["CORAL_PYTHON_INCLUDES_PATH"] = 
"/usr/autodesk/maya2012-x64/include/python2.6"
os.environ["CORAL_PYTHON_LIBS_PATH"] = 
"/usr/autodesk/maya2012-x64/lib/python2.6" << seems that you didn't add the 
last part "/python2.6"
os.environ["CORAL_PYTHON_LIB"] = "python2.6"

I cross my fingers it will work!

Good luck!

Original comment by dorian.f...@gmail.com on 25 Nov 2011 at 11:13

GoogleCodeExporter commented 8 years ago
ldd _coral.so 
    linux-vdso.so.1 =>  (0x00007fff6bdff000)
    libImath.so.6 => /usr/local/lib/libImath.so.6 (0x00007f2a54f21000)
    libIex.so.6 => /usr/local/lib/libIex.so.6 (0x00007f2a54d03000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f2a5484a000)
    libboost_python-py26.so.1.46.1 => /usr/lib/libboost_python-py26.so.1.46.1 (0x00007f2a545fe000)
    libtbb.so.2 => /usr/lib/libtbb.so.2 (0x00007f2a543d3000)
    libOpenCL.so => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f2a540cb000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2a53e47000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f2a53c30000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2a53891000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f2a53640000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f2a53290000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2a53078000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2a52e5b000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2a52c56000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f2a52a53000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f2a55c7d000)

No Man, its not work ) (

In /usr/autodesk/maya2012-x64/lib/python2.6 there are python modules 
(maya,pymel,etc...)

but in /usr/autodesk/maya2012-x64/lib there is libpython2.6.so.1.0 (((

Original comment by vuxs...@gmail.com on 25 Nov 2011 at 11:23

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This is what I was suggesting to do:
create an alias of /usr/autodesk/maya2012-x64/lib/libpython2.6.so
so that you have:
/usr/autodesk/maya2012-x64/lib/libpython_maya2.6.so

Then update your even so that you have:
if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
     os.environ["CORAL_PYTHON_LIB"] = "python_maya2.6"

Compile and check again with ldd if you have linked the right lib this time.

I'll give you Dorian's fingers if it doesn't work.

Original comment by aintergu...@gmail.com on 26 Nov 2011 at 8:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I was linked(ln -s) /usr/autodesk/maya2012-x64/lib/libpython2.6.so --> 
usr/autodesk/maya2012-x64/lib/libpython_maya2.6.so

My buildEnv.py is:

# buildEnv.py
import os

os.environ["CORAL_PYTHON_INCLUDES_PATH"] = "/usr/include/python2.6"
os.environ["CORAL_PYTHON_LIBS_PATH"] = "/usr/lib/python2.6"
os.environ["CORAL_PYTHON_LIB"] = "python2.6"

os.environ["CORAL_BOOST_INCLUDES_PATH"] = "/usr/include/boost"
os.environ["CORAL_BOOST_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_BOOST_PYTHON_LIB"] = "boost_python"

os.environ["CORAL_IMATH_INCLUDES_PATH"] = "/usr/local/include/OpenEXR"
os.environ["CORAL_IMATH_LIBS_PATH"] = "/usr/local/lib"
os.environ["CORAL_IMATH_LIB"] = "Imath"
os.environ["CORAL_IMATH_IEX_LIB"] = "Iex"

os.environ["CORAL_TBB_INCLUDES_PATH"] = "/usr/include/tbb"
os.environ["CORAL_TBB_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_TBB_LIB"] = "tbb"

os.environ["CORAL_CL_INCLUDES_PATH"] = "/opt/brahman/coral/lib/OpenCL/include"
os.environ["CORAL_CL_LIBS_PATH"] = "/opt/brahman/coral/lib/OpenCL/lib64"
os.environ["CORAL_CL_LIB"] = "OpenCL"

os.environ["CORAL_OPENGL_INCLUDES_PATH"] = "/usr/include"
os.environ["CORAL_OPENGL_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_OPENGL_LIB"] = "GL" 

os.environ["CORAL_GLEW_INCLUDES_PATH"] = "/usr/include"
os.environ["CORAL_GLEW_LIBS_PATH"] = "/usr/lib"
os.environ["CORAL_GLEW_LIB"] = "GLEW"

os.environ["CORAL_PARALLEL"] = "CORAL_PARALLEL_TBB"

# sdk setup
#os.environ["CORAL_INCLUDES_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coral/includes"
#os.environ["CORALUI_INCLUDES_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coralUi/includes"
#os.environ["CORAL_LIBS_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coral/libs"
#os.environ["CORALUI_LIBS_PATH"] = 
"/coral-repo-read-only/build/coralStandaloneBuild/sdk/coralUi/libs"

if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
    os.environ["CORAL_MAYA_INCLUDES_PATH"] = "/usr/autodesk/maya2012-x64/include"
    os.environ["CORAL_MAYA_LIBS_PATH"] = "/usr/autodesk/maya2012-x64/lib"

    os.environ["CORAL_PYTHON_LIB"] = "python_maya2.6"

    os.environ["CORAL_PYTHON_INCLUDES_PATH"] = "/usr/autodesk/maya2012-x64/include/python2.6"
    os.environ["CORAL_PYTHON_LIBS_PATH"] = "/usr/autodesk/maya2012-x64/lib"

    os.environ["CORAL_PARALLEL"] = ""

and I have:

 ldd _coral.so 
    linux-vdso.so.1 =>  (0x00007fffb07ff000)
    libImath.so.6 => /usr/local/lib/libImath.so.6 (0x00007f568c2d6000)
    libIex.so.6 => /usr/local/lib/libIex.so.6 (0x00007f568c0b8000)
    libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007f568bbff000)
    libboost_python-py26.so.1.46.1 => /usr/lib/libboost_python-py26.so.1.46.1 (0x00007f568b9b3000)
    libtbb.so.2 => /usr/lib/libtbb.so.2 (0x00007f568b788000)
    libOpenCL.so => not found
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f568b480000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f568b1fc000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f568afe5000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f568ac46000)
    libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f568a9f5000)
    libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f568a645000)
    libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f568a42d000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f568a210000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f568a00b000)
    libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f5689e08000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f568d05d000)

Original comment by vuxs...@gmail.com on 26 Nov 2011 at 4:39

GoogleCodeExporter commented 8 years ago
At this point I even doubt the maya flavour is being considere, you could try 
putting a print statement:
if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
    print "COMPILING MAYA!!!!"

Sorry but there's not much I can do from here, you just need to understand why 
is picking your system python and not your maya-python.

Original comment by aintergu...@gmail.com on 26 Nov 2011 at 4:56

GoogleCodeExporter commented 8 years ago
Hm, I also entered:

if os.environ["CORAL_BUILD_FLAVOUR"] == "coralMaya":
    print "maya"

it is:
maya

I'm realy confused :(

Original comment by vuxs...@gmail.com on 26 Nov 2011 at 5:11

GoogleCodeExporter commented 8 years ago

Original comment by aintergu...@gmail.com on 3 Jan 2012 at 11:07