Announcement

Collapse
No announcement yet.

vb25-patch

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • vb25-patch

    V-Ray/Blender Patchset

    URL: http://github.com/bdancer/vb25-patch
    • "extern" directory for additional patches.
      Simply put your patches there and add "--extern" param to blender_update.py (Dynamic Paint already included).[/*:m:2bq4pilq]
    • Python 3.2 notes:[list:2bq4pilq]
    • Build script updated for Python 3.2[/*:m:2bq4pilq]
    • Build script expects Python 3.2 in /usr (/usr/include/python3.2m)[/*:m:2bq4pilq]
    [/*:m:2bq4pilq][/list:u:2bq4pilq]

    Python 3.2 notes:
    Blender 2.5 now uses Python 3.2 and this could cause some troubles with compiling.
    Make sure to upgrade your Python to 3.2.
    Also check this for troubleshooting.
    V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
    andrei.izrantcev@chaos.com
    Support Request

  • #2
    Re: vb25-patch

    ok so i instaled python 3.2
    its in application directory duplicated into 2 folders "Py32" and "Python 3.2",

    ------then:

    1. this is what happens if I use old user-config file ( http://dl.dropbox.com/u/19725436/vb_ins ... -config.py ) :

    Compiling ==> 'bpy.c'
    In file included from source/blender/python/intern/bpy.c:38:
    source/blender/python/intern/bpy_util.h:34:2: error: #error "Python 3.2 or greater is required, you'll need to update your python."
    scons: *** [/Users/pawel/SVN/blender-build/build/darwin/source/blender/python/intern/bpy.o] Error 1
    scons: building terminated because of errors.

    2. heres modified user-config like it is described in troubleshoting page: ( http://dl.dropbox.com/u/19725436/vb_ins ... ig-py32.py)
    When I added a Py 3.2 path to user-conf it aborts compliation because of error (this looks like he doesnt takes into account user-config setup, - this similar error appers when ffmpeg is trying to be compiled with blender):

    In file included from intern/audaspace/intern/AUD_C-API.cpp:38:
    intern/audaspace/intern/AUD_PyInit.h:36:20: error: Python.h: No such file or directory
    In file included from intern/audaspace/intern/AUD_C-API.cpp:39:
    intern/audaspace/Python/AUD_PyAPI.h:35:20: error: Python.h: No such file or directory
    In file included from intern/audaspace/intern/AUD_C-API.cpp:38:
    intern/audaspace/intern/AUD_PyInit.h:45: error: expected initializer before ‘*’ token
    In file included from intern/audaspace/intern/AUD_C-API.cpp:39:
    intern/audaspace/Python/AUD_PyAPI.h:47: error: ‘PyObject_HEAD’ does not name a type
    intern/audaspace/Python/AUD_PyAPI.h:53: error: ‘PyObject_HEAD’ does not name a type
    intern/audaspace/Python/AUD_PyAPI.h:55: error: ISO C++ forbids declaration of ‘PyObject’ with no type
    intern/audaspace/Python/AUD_PyAPI.h:55: error: expected ‘;’ before ‘*’ token
    intern/audaspace/Python/AUD_PyAPI.h:59: error: ‘PyObject_HEAD’ does not name a type
    intern/audaspace/Python/AUD_PyAPI.h:63: error: ‘PyMODINIT_FUNC’ does not name a type
    intern/audaspace/Python/AUD_PyAPI.h:66: error: expected initializer before ‘*’ token
    intern/audaspace/intern/AUD_C-API.cpp: In function ‘int AUD_init(AUD_DeviceType, AUD_DeviceSpecs, int)’:
    intern/audaspace/intern/AUD_C-API.cpp:153: error: ‘Device_empty’ was not declared in this scope
    intern/audaspace/intern/AUD_C-API.cpp:156: error: ‘struct Device’ has no member named ‘device’
    intern/audaspace/intern/AUD_C-API.cpp: In function ‘void AUD_exit()’:
    intern/audaspace/intern/AUD_C-API.cpp:174: error: ‘Py_XDECREF’ was not declared in this scope
    intern/audaspace/intern/AUD_C-API.cpp: At global scope:
    intern/audaspace/intern/AUD_C-API.cpp:186: error: expected initializer before ‘*’ token
    scons: *** [/Users/pawel/SVN/blender-build/build/darwin/intern/audaspace/intern/AUD_C-API.o] Error 1
    scons: building terminated because of errors.

    anyideas?
    mat tests>
    render tests>

    Comment


    • #3
      Re: vb25-patch

      You don't need to install/upgrade Python in Mac OS - its included in "lib/darwin-9.x.universal"

      I've added Mac OS support to my build script so try the following:
      Code:
      # Goto home dir
      cd ~
      
      # Make build dir
      mkdir vb25-build
      
      # Goto build dir
      cd vb25-build
      
      # Get vb25 patchset
      git clone git://github.com/bdancer/vb25-patch.git
      
      # Run build script
      # This will download / update:
      #  -- blender sources from SVN
      #  -- lib/darwin-9.x.universal sources from SVN with all needed dependencies
      #  -- update vb25-patch itself
      # You could simply run this command every time you want to update Blender
      python vb25-patch/build.py --update_blender --update_patch --datafiles
      
      # Check help if you need to override some params
      python vb25-patch/build.py -h
      V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
      andrei.izrantcev@chaos.com
      Support Request

      Comment


      • #4
        Re: vb25-patch

        Hi,

        I tried to compile your build on my system, but I got these errors:
        Code:
        [maces@macetop autobuild]$ LANG=C python3 build.py --update_blender --update_patch --datafiles
        Fetching external item into 'release/scripts/addons'
        External at revision 2254.
        
        At revision 39586.
        Export complete.
        Cloning into vb25-patch...
        patching file source/blender/SConscript
        patching file source/blender/editors/space_api/spacetypes.c
        patching file source/blender/editors/space_api/SConscript
        patching file source/blender/makesrna/intern/rna_texture.c
        patching file source/blender/editors/space_api/CMakeLists.txt
        patching file source/blender/CMakeLists.txt
        patching file source/creator/CMakeLists.txt
        patching file source/blender/makesdna/DNA_texture_types.h
        patching file source/blender/python/intern/bpy_rna.c
        Making C file </home/maces/apps/blender/vray_blender/autobuild/vb25-patch/datafiles/splash.png.c>
        176874
        OS: Linux
        Distribution:  
        Arch: x86_64
        Building: V-Ray/Blender 2.5
        
        Installation directory: /home/maces/apps/blender/vray_blender/autobuild/install/vb25
        Installation directory doesn't exist! Trying to create...
        Release directory: /home/maces/apps/blender/vray_blender/autobuild/release
        Updating Blender sources...
        Getting vb25 patches
        Applying vb25 patches...
        Replacing datafiles...
        Moving: splash.png.c => /home/maces/apps/blender/vray_blender/autobuild/blender/source/blender/editors/datafiles
        Generating user-config.py
        Building vb25 (39586)
        Adding vb25 exporter...
        remote: Counting objects: 48, done.
        remote: Compressing objects: 100% (40/40), done.
        remote: Total 48 (delta 9), reused 16 (delta 7)
        Receiving objects: 100% (48/48), 788.73 KiB | 696 KiB/s, done.
        Resolving deltas: 100% (9/9), done.
        Traceback (most recent call last):
          File "scons/scons.py", line 66, in <module>
            if os.environ.has_key("SCONS_LIB_DIR"):
        AttributeError: '_Environ' object has no attribute 'has_key'
        Traceback (most recent call last):
          File "build.py", line 897, in <module>
            os.chdir(io_scripts_path)
        OSError: [Errno 2] No such file or directory: '/home/maces/apps/blender/vray_blender/autobuild/install/vb25/2.59/scripts/startup'
        OS: Archlinux with Linux 3.0 on x86_64
        Python: 3.2.1 in "/usr/include/python3.2mu" (if the "u" makes a difference)
        Script: Friday, 12 August 2011 [04:21]


        I also made these changes to build.py, to to be able to run it:
        Code:
        30c30
        < #import commands
        ---
        > import commands
        764c764
        < 		print(cmd)
        ---
        > 		print cmd
        do you know what I'm doing wrong?

        maces

        Comment


        • #5
          Re: vb25-patch

          Use Python 2.x to run the script.
          V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
          andrei.izrantcev@chaos.com
          Support Request

          Comment


          • #6
            Re: vb25-patch

            Tried with Python2 and it results in the same error.

            Comment

            Working...
            X