Menu

Compiling Liquid for Maya 5 and Pixie - HELP!

kennez
2005-07-14
2013-04-25
  • kennez

    kennez - 2005-07-14

    I am trying to compile the latest version of Liquid by following the instructions on the LiquidWiki. I have installed all of the required software (VCToolkit, etc), and have followed all of the instructions TO THE LETTER, but when I type 
    make release, I get the following error message:

    test was unexpected at this time. 
    make: *** [release] Error 255

    Any ideas on the problem here? Is it an issue with the makefile?

    I really want to build Liquid against Pixie, and my other Renderman renderers, in order to test them all against the same scene, but currently I only have Liquid working with Aqsis, and I didn't compile that myself.

    I am using Maya 5 on Windows XP. All of the latest compiled vesions of Liquid I have seen only work with Maya 6 or higher. Please help me.

     
    • George Harker

      George Harker - 2005-07-14

      Looking at the makefiles which are current in CVS, the environment variable MAYA_LOCATION may need to be defined to point at the Maya install location (surprise surprise).

      If that doesn't work, make sure you're running gnu make (type 'which make' - it should report something under cygwin, 'make --version' may also give useful info).  Also make sure you're doing this from inside the cygwin shell - I think that's how it's supposed to work.  I'm not on Windows here, but folks who are I seem to remember build under cygwin.

      Failing all the above, run make as

      make -d release

      may give useful debug info about which rules are being considered, and may help track down the problem.

      Cheers

      George

       
    • kennez

      kennez - 2005-07-18

      Right, I've managed to get past that error message, but now I am having a problem with setting MAYA_LOCATION in the makefile. I have set the path to the exact location of Maya on my system, but I am getting the following messages:

      sh: line 0: test: c:/program: binary operator expected
      sh: line 0: test: c:/Program\: binary operator expected
      c:/Program \Files/AliasWavefront/Maya5.0 does not seem to exists. Please set MAYA_LOCATION to a correct value.
      make:*** [release] Error 1

      Please note that I have tried the slashes in all sorts of combinations of both / and \, I have enclosed the location of the Maya folder in "", and I have checked the location of the Maya folder. I have also used a \ to designate the space in the path, as the CYGWin shell does when changing directories.

      The location of Maya on my system is C:\Program Files\AliasWavefront\Maya5.0
      3Delight is located at C:\Program Files\3Delight
      Aqsis is located at C:\Program Files\Aqsis
      Pixie is located at C:\Program Files\Pixie

      Please let me know what I am doing wrong.

      I have also verified that I am using the current version of make.exe

      Cheers,
      Malcolm

       
      • George Harker

        George Harker - 2005-07-19

        Hi Malcolm,

        Cygwin, being a linux-on-windows environment needs unix-style paths.  For some reason that escapes me, it doesn't have a mapping for c:\blah, but rather uses /cygdrive/c/blah.  I think things should work if you set

        MAYA_LOCATION=/cygdrive/c/Program \Files/AliasWavefront/Maya5.0

        but sometimes spaces in the paths can screw things up - so you may still need to quote the string in various ways as well. 

        The same goes for LIQRMAN. 

        Hope that helps

        George

         
    • kennez

      kennez - 2005-07-20

      Thanks George,

      I managed to get the makefile working, but I am now getting compiler errors and warnings.

      From the semester that I did in C++, I know that warnings can be ignored (in general). The warning I get is:

      maya/MTypes.h (85): warning C4005: 'MAYA_API_VERSION' : macro redefinition

      I also get a similar warning for liqIOStream.h(9). I am assuming that this is because I am compiling against Maya 5. Can I just ignore this warning?
      Another warning I get is from the file liqRenderScript.h(371). The message is;

      warning c4002: too many actual parameters for macro 'LIQDEBUGPRINTF'

      Can I ignore this one?

      I am also getting 4 errors. These are all identical descriptions, and are from two Liquid files: liqRibNode.h(185), and liqRibTranslator.h(270)m (272) and (274). The error message for all of these errors is:

      error c2639: compiler generated default constructor required by unnamed class.

      Sorry to keep bothering you with this. I am really not much of a programmer. The only programs I have written are simple command line apps that take a number and convert it (and similar things), and these were written in C. I have not done much C++ at all.

      Cheers,
      Malcolm

       
      • George Harker

        George Harker - 2005-07-20

        It looks like the MString class is undefined.  I don't have 5.0 or 5.0.1 here to test with, but I'd try adding include lines like

        #include <maya/MString.h>

        to the to top of files you have problems with - though that should be pulled in from liquid.h.  I think the warnings can be ignored - but that may come back to bite me.

        This may be a compiler version issue.  Any guys out there who've compiled recently under Windows ?

        Sorry I can't be more use

        George

         

Log in to post a comment.

MongoDB Logo MongoDB