Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maya7 / mental ray [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
anacleto44
n00b
n00b


Joined: 24 Aug 2005
Posts: 18

PostPosted: Wed Aug 24, 2005 5:10 pm    Post subject: Maya7 / mental ray [SOLVED] Reply with quote

Hi, i've problem with render mental ray. When i try to render with metal ray in maya7 i read in console this errors:

Code:

mental ray for Maya 7.0
mental ray: version 3.4.5.2, 06 July 2005
mental ray: got 8 satellite CPUs.
LINK 0.0  error  191006: failed to load library /usr/aw/maya7.0/mentalray/lib/mayabase.so (original name {MAYABASE}/lib/mayabase.{DSO}): /usr/
aw/maya7.0/mentalray/lib/mayabase.so: undefined symbol: mi_shaderstate_get
LINK 0.0  error  191006: failed to load library /usr/aw/maya7.0/mentalray/lib/subsurface.so (original name {MAYABASE}/lib/subsurface.{DSO}): /
usr/aw/maya7.0/mentalray/lib/subsurface.so: undefined symbol: mi_img_get_depth
LINK 0.0  error  191006: failed to load library /usr/aw/maya7.0/mentalray/lib/mayahair.so (original name {MAYABASE}/lib/mayahair.{DSO}): /usr/
aw/maya7.0/mentalray/lib/mayahair.so: undefined symbol: mi_db_access
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 26: while defining declaration "mayabase_version": declaring none
xisting function mayabase_version
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 41: while defining declaration "maya_state": declaring nonexistin
g function maya_state
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 56: while defining declaration "maya_shadingengine": declaring no
nexisting function maya_shadingengine
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 122: while defining declaration "maya_anisotropic": declaring non
existing function maya_anisotropic
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 183: while defining declaration "maya_blinn": declaring nonexisti
ng function maya_blinn
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 233: while defining declaration "maya_fur": declaring nonexisting
 function maya_fur
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 304: while defining declaration "maya_hairtubeshader": declaring
nonexisting function maya_hairtubeshader
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 333: while defining declaration "maya_hairshader": declaring none
xisting function maya_hairshader
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 382: while defining declaration "maya_lambert": declaring nonexis
ting function maya_lambert
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 404: while defining declaration "maya_layeredshader": declaring n
onexisting function maya_layeredshader
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 496: while defining declaration "maya_oceanshader": declaring non
existing function maya_oceanshader
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 555: while defining declaration "maya_phong": declaring nonexisti
ng function maya_phong
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 616: while defining declaration "maya_phongE": declaring nonexist
ing function maya_phongE
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 711: while defining declaration "maya_rampshader": declaring none
xisting function maya_rampshader
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 733: while defining declaration "maya_shadingmap": declaring none
xisting function maya_shadingmap
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 749: while defining declaration "maya_shadow": declaring nonexist
ing function maya_shadow
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 767: while defining declaration "maya_surfaceshader": declaring n
onexisting function maya_surfaceshader
....
API  0.0  warn   302004: /usr/aw/maya7.0/mentalray/include/mayabase.mi, line 3884: while defining declaration "maya_material_displace": declar
ing nonexisting function maya_material_displace
MI   0.0  error  121001: /usr/aw/maya7.0/mentalray/include/base.mi, line 1: syntax error


And when i open in maya7 Script Editor Error i read:

Code:

file -f -new;
// Result: ./untitled //
docServer -start;
// mental ray for Maya 7.0
// mental ray for Maya: using startup file /usr/aw/maya7.0/mentalray/maya.rayrc
// mental ray for Maya: setup
// mental ray for Maya: initialize
// mental ray for Maya: using 1 license
// mental ray for Maya: register extensions
// mental ray Node Factory: loaded
// parsing /usr/aw/maya7.0/mentalray/include/base.mi
// error (line    1): parse error
// parsing /usr/aw/maya7.0/mentalray/include/contour.mi
// error (line    1): parse error
// parsing /usr/aw/maya7.0/mentalray/include/paint.mi
// error (line    1): parse error
// parsing /usr/aw/maya7.0/mentalray/include/physics.mi
// error (line    1): parse error
// parsing /usr/aw/maya7.0/mentalray/include/subsurface.mi
// error (line    1): parse error
// mental ray for Maya: successfully registered
// MayaLive version 7.0updateRendererUI;
// Saving runtime commands to : /root/maya/7.0/prefs/userRunTimeCommands.mel
// Saving hotkeys to : /root/maya/7.0/prefs/userHotkeys.mel
// Saving named commands to : /root/maya/7.0/prefs/userNamedCommands.mel
// Preferences saved. See Script Editor for details.
// Error: Unknown object type: mib_bump_map //


Please help me, i need to use mental ray for my work.

Bye


Last edited by anacleto44 on Thu Aug 25, 2005 10:03 am; edited 1 time in total
Back to top
View user's profile Send private message
kanis
n00b
n00b


Joined: 04 Oct 2004
Posts: 24
Location: Spokane, Washington, USA

PostPosted: Wed Aug 24, 2005 9:39 pm    Post subject: Reply with quote

Judging by the problems everyone else has had with MR in Linux, it looks like your symbolic link to Maya isn't working. Check to make sure that /usr/aw/maya points to /usr/aw/maya7.0. I dunno /why/ it's the symbolic link, but that's what most people who've had the problem told me.

Another thing you can try to do, since you probably installed this via RPM is to instead install it by using rpm2targz to convert the packages to tarballs. If you already did that, then good. But either way, don't forget to run ldconfg to make sure that the new libs can be found.
_________________
Siggy siggy
Back to top
View user's profile Send private message
anacleto44
n00b
n00b


Joined: 24 Aug 2005
Posts: 18

PostPosted: Thu Aug 25, 2005 8:57 am    Post subject: Reply with quote

I've linked /usr/aw/maya7.0 to /usr/aw/maya without result. I've installed maya with rpm2targz, i've created file 99maya and 99mentalray in env.d with ld path. But i receive same errors with mental ray.

I try to use ebuild.
Back to top
View user's profile Send private message
anacleto44
n00b
n00b


Joined: 24 Aug 2005
Posts: 18

PostPosted: Thu Aug 25, 2005 10:02 am    Post subject: Reply with quote

With ebuild maya-7.0.ebuild works really perfect. No problems with mental ray.

/usr/portage/media-gfx/maya/maya-7.0.ebuild
Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/maya/maya-7.0.ebuild,v 1.13 2005/07/30 21:34:14 eradicator Exp $

# Note that this ebuild requires you to set the MAYA_INSTALL_LOC environment
# variable to the location of your maya RPMS and documentation:
# MAYA_INSTALL_LOC=/mnt/cdrom/ is default. Where relevant maya RPMS exists.
# This ebuild is built from Maya-5.0-r1.ebuild
inherit rpm eutils

IUSE="bundled-libs"
S="${WORKDIR}"

DESCRIPTION="Alias Wavefront's Maya.  Commercial modeling and animation package."
HOMEPAGE="http://www.alias.com/eng/products-services/maya/index.shtml"

# No source online fetching.
SRC_URI=""
RESTRICT="fetch nousepriv"

# RPM versions within the tarballs which will get installed
AWCOMMON="9.5-1.i686"
AWCOMMON_SERVER="9.5-1.i686"
MAYA7_0="7.0-374.i686"
MAYA_DOCSERVER="7.0-380.i686"

SLOT="7.0"

LICENSE="maya-7.0 mayadoc-7.0"
KEYWORDS="~x86 ~amd64"

DEPEND="app-arch/unzip"

RDEPEND="|| ( app-shells/tcsh app-shells/csh )
    x86? ( >=sys-libs/lib-compat-1.3
           !bundled-libs? ( =x11-libs/qt-3*
                            >=sys-devel/gcc-3
                            >=x11-libs/openmotif-2.1.30 ) )
    amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.1.4
             app-emulation/emul-linux-x86-xlibs
             app-emulation/emul-linux-x86-qtlibs )
    virtual/opengl"

pkg_nofetch() {
   einfo "Please place the required files and place them in ${DISTDIR}:"
   einfo
   einfo "Downloads from Alias's support server:"
   einfo "http://aliaswavefront.topdownloads.com/pub/"
   einfo "http://aliaswavefront.topdownloads.com/pub/bws/"
   einfo
   einfo "Additionally, you need to place the Maya 7 CD in the CD drive (we expect /mnt/cdrom)."
   einfo "If you don't use /mnt/cdrom or you have network installation files, then you need to set"
   einfo "the environment variable 'MAYA_INSTALL_LOC' to the directory containing AWCommon-9.5-1.i686.rpm"
   einfo "AWCommon-server-9.5-1.i686.rpm, Maya7_0-7.0-347.i686.rpm, and documentation."
   einfo
}

src_unpack() {
   if [ -z "${MAYA_INSTALL_LOC}" ]; then
      cdrom_get_cds AWCommon-${AWCOMMON}.rpm
      MAYA_INSTALL_LOC=${CDROM_ROOT}
   fi

   if [ ! -d "${MAYA_INSTALL_LOC}" ]; then
      eerror "MAYA_INSTALL_LOC is not set to a valid location.  ${MAYA_INSTALL_LOC} is not a directory."
      die "Failure finding maya install files."
   fi

   cd ${MAYA_INSTALL_LOC}
   ebegin "Checking md5sum of files in ${MAYA_INSTALL_LOC}"
#   md5sum -c ${FILESDIR}/${P}.md5sum
   if [ $? -ne 0 ]; then
      eend 1
      die "Failure checking md5sum of files in ${MAYA_INSTALL_LOC}.  If you are certain your CD is not corrupt, file a bug at http://bugs.gentoo.org, comment out the md5sum checking in the ebuild, and proceed at your own risk."
   fi
   eend 0

   mkdir ${S}/RPMS
   cd ${S}/RPMS
#   unpack myr_maya501_gold_linux_update.tgz

   # rpm_unpack unpacks in ${WORKDIR} no matter what we try... so get it out of the way...
   cd ${S}
   rpm_unpack ${MAYA_INSTALL_LOC}/AWCommon-${AWCOMMON}.rpm
   rpm_unpack ${MAYA_INSTALL_LOC}/AWCommon-server-${AWCOMMON_SERVER}.rpm
   rpm_unpack ${MAYA_INSTALL_LOC}/Maya7_0-${MAYA7_0}.rpm
   rpm_unpack ${MAYA_INSTALL_LOC}/Maya7_0-docs_en_US-7.0-380.i686.rpm
   rpm_unpack ${MAYA_INSTALL_LOC}/Maya7_0-docserver-7.0-380.i686.rpm
   
   mkdir ${S}/insroot
   mv ${S}/usr ${S}/insroot

   # Don't need their init script
   rm -rf etc

   # Remove unneeded libs (provided by DEPEND).
#   if ! use bundled-libs; then
#      rm -f ${S}/insroot/usr/aw/COM/lib/libXm.so.2.1
#      rm -f ${S}/insroot/usr/aw/maya7.0/lib/libgcc_s.so.1
#      rm -f ${S}/insroot/usr/aw/maya7.0/lib/libstdc++.so.5.0.2
#      rm -f ${S}/insroot/usr/aw/maya7.0/lib/libqt.so.3
#      rm -f ${S}/insroot/usr/aw/maya7.0/lib/libXm.so.2
#   fi

   # Maya 7.0 Docs comes in RPM format
#   cp -a ${MAYA_INSTALL_LOC}/documentation ${MAYA_INSTALL_LOC}/README.html ${S}
#   mkdir ${S}/docs.upgrade
#   cd ${S}/docs.upgrade
#   unpack myr_TechDocs.zip

}


src_install() {
   dohtml README.html

   cd ${S}/insroot
   cp -a . ${D}


   for lmexec in lmcksum lmdiag lmdown lmhostid lmremove lmreread lmstat lmver; do
      dosym lmutil /usr/aw/COM/bin/${lmexec}
   done

   # We use our own Motif runtime unless USE=bundled-libs
   if use bundled-libs; then
      dosym libXm.so.2.1 libXm.so
      dosym libXm.so.2.1 libXm.so.2
   fi

   dosym COM /usr/aw/COM2
   
   keepdir /var/flexlm
   fperms ugo+w /var/flexlm

   dosym maya7.0 /usr/aw/maya

   # The RPM puts these in /usr/local/bin
   keepdir /usr/bin
   dosym /usr/aw/maya7.0/bin/Maya7.0 /usr/aw/maya7.0/bin/maya
   for mayaexec in Render fcheck imgcvt maya; do
      dosym /usr/aw/maya7.0/bin/${mayaexec} /usr/bin/${mayaexec}
   done

   dosym Mayatomr.so /usr/aw/maya7.0/bin/plug-ins/Mayatomr.sog

   # We use our own gcc3 runtime unless USE=bundled-libs
   if use bundled-libs; then
      dosym libgcc_s.so.1 /usr/aw/maya7.0/lib/libgcc_s.so
      dosym libstdc++.so.5.0.2 /usr/aw/maya7.0/lib/libstdc++.so.5
      dosym libstdc++.so.5.0.2 /usr/aw/maya7.0/lib/libstdc++.so
   fi

   # update the mental ray configuration files in place
   dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya7.0/mentalray/maya.rayrc
   dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya7.0/bin/mayarender_with_mr
   dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya7.0/bin/mentalrayrender
   dosed "/\[PREFIX\]/s//\/usr/" /usr/aw/maya7.0/bin/mayaexport_with_mr
   fperms 755 /usr/aw/maya7.0/bin/mayarender_with_mr /usr/aw/maya7.0/bin/mentalrayrender

   # End rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm

#   exeinto /etc/init.d
#   doexe ${FILESDIR}/maya-docs ${FILESDIR}/aw_flexlm

#   insinto /etc/conf.d
#   newins ${FILESDIR}/aw_flexlm.conf.d aw_flexlm

   # Documents Installation
#   cd ${S}/documentation
#   addpredict /var/.com.zerog.registry.lock
#   addwrite /var/.com.zerog.registry.xml
#   einfo "Starting Maya 7.0 DocServer installation..."
#   ./Linux_Maya50Docs_Installer/installMayaDocServer.bin -DUSER_INSTALL_DIR="${D}/usr/aw/maya7.0/docs" -i silent
#   einfo "Starting Maya 7.0 English Documentation installation..."
#   ./Linux_M5en_US_Installer/install_en_US_docs.bin -DUSER_INSTALL_DIR="${D}/usr/aw/maya7.0/docs/Documents" -i silent

   # And now the doc update
   cd ${S}/docs.upgrade
   insinto /usr/aw/maya7.0/docs/Documents/Maya7.0/en_US
   doins *.zip

   cd ${S}/docs.upgrade/style
   insinto /usr/aw/maya7.0/docs/Documents/Maya7.0/en_US/style
   doins *

   # Fix permissions
   find ${D}/usr/aw -type d -exec chmod 755 {} \;

   # Actually place everything in /opt since this is a binary package
   dodir /opt
   mv ${D}/usr/aw ${D}/opt
   dosym ../opt/aw /usr/aw
}

pkg_postinst() {
   # What follows is modified from rpm -qp --scripts RPMS/Maya5_0-5.0.1-135.i686.rpm
   cp /etc/services /tmp/services.maya_save
   awk '/mi-ray3_2maya7_0/ { found++; print ; next } {print} END {if (0==found)
   print "mi-ray3_2maya7_0 7054/tcp" }' /tmp/services.maya_save > /etc/service

   # update the magic file
   if [ -e /usr/share/magic ]; then
      mv /usr/share/magic /tmp/magic.rpmsave
      awk '/Alias.Wavefront Maya files. begin/ {p=1} /Alias.Wavefront Maya files. end/ {p=2} {if (p==2) { p=0} else if (p==0) print }' /tmp/magic.rpmsave > /usr/share/magic
      cat /usr/aw/maya7.0/.tmpdata/awmagic >> /usr/share/magic;
      # get file to rebuild the cache
      file -C > /dev/null 2>&1
      rm -Rf /usr/aw/maya7.0/.tmpdata/awmagic 2>&1 > /dev/null
   fi

   einfo "There may be a more recent license for this workstation available on the Alias|Wavefront"
   einfo "web site. Please visit the following URL to check for updated licenses:"
   einfo "http://www.aliaswavefront.com/en/Community/Special/keys/maya/"
   einfo
   einfo "To install your key, either place aw.dat in /var/flexlm or run the following command from an X session:"
   einfo "/usr/aw/COM/bin/installKey -input /usr/aw/maya7.0/license_data/maya_prekey_data"
   einfo
   einfo "Two init scripts have been installed:"
   einfo "maya-docs is for the document server (help system)."
   einfo "aw_flexlm is for the license server"
   einfo

   einfo "Maya 7.0 was compiled with gcc 3.0 and origionally linked against glibc 2.1.3.  If you intend to compile"
   einfo "plugins for Maya, you will need to 'emerge \=sys-devel/gcc-3.0*' and use gcc-config to switch compilers."
   einfo "The Maya SDK headers are located in /usr/aw/maya/include, and libs are in /usr/aw/maya/lib."
   einfo

#   http://www.highend2d.com/boards/showthreaded.php?Cat=&Board=linuxforum&Number=174726&page=&view=&sb=&o="

   ewarn "You should disable klipper, xfce4-clipman, and any other clipboard"
   ewarn "utilities as they have been shown to cause maya to crash."

   ewarn "You need to have a linuxthreads (without tls) glibc installed to"
   ewarn "use this package.  In otherwords, you need to NOT have linuxthreads-tls"
   ewarn "or nptlonly in your USE flags when you emerge glibc.  If you use nptl,"
   ewarn "you'll need to start maya with 'LD_ASSUME_KERNEL=2.4.1 maya'"

}
Back to top
View user's profile Send private message
codester
n00b
n00b


Joined: 06 Aug 2005
Posts: 18

PostPosted: Fri Aug 26, 2005 12:50 pm    Post subject: Reply with quote

Anyone know a work around for maya 7 with this error
Code:

 maya
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
Segmentation fault


since my system is built with the nptl use flag
Code:

LD_ASSUME_KERNEL=2.4.1 maya
tail: `-1' option is obsolete; use `-n 1' since this will be removed in the future
Segmentation fault
Back to top
View user's profile Send private message
codester
n00b
n00b


Joined: 06 Aug 2005
Posts: 18

PostPosted: Tue Aug 30, 2005 2:05 pm    Post subject: Reply with quote

Oops

Last edited by codester on Wed Aug 31, 2005 3:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mongrol
Guru
Guru


Joined: 14 Sep 2002
Posts: 376

PostPosted: Tue Aug 30, 2005 11:27 pm    Post subject: Reply with quote

I'm sure Alias support would be happy to help. Why not give them a call
Back to top
View user's profile Send private message
loemmel
Apprentice
Apprentice


Joined: 19 Aug 2003
Posts: 227
Location: switzerland

PostPosted: Thu Oct 19, 2006 6:48 pm    Post subject: Reply with quote

had a simmilar problem to the first one here found following fix:

Code:
cd /usr/aw/maya7.0/bin/plug-ins/
ln -s Mayatomr.so Mayatomr.sog


this worked for me, after restarting maya.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum