Announcement

Collapse
No announcement yet.

osx 10.6.6 building vb

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

  • osx 10.6.6 building vb

    11-03-31 update!
    VB build (compiled from revision 35920): http://dl.dropbox.com/u/19725436/vb_ins ... 035920.zip
    update the script if U download after 2011-03-31!

    - susbsurf now works!
    - many new things!
    - thanks again 4 amazing work Andrey!

    ----------------------------
    HOW TO for B 2.57RC (for revision 35920)
    A. You don't need to install/upgrade Python to 3.2 version in Mac OS - its included in "lib/darwin-9.x.universal"

    B. Do the same steps 1-4 as it is described in old how-to (below)
    - * U can use/copy my user-config.py file (compilation without ffmpeg, for 10.6 64bit )

    C. Then run build compilation by:
    python vb25-patch/build.py --update_blender --update_patch --datafiles
    - this will download and/or update blender sources, "lib/darwin-9.x.universal" sources with all needed dependencies and update patch.
    * You could simply run this command every time you want to update Blender
    ** Check help if you need to override some params:
    python vb25-patch/build.py -h

    D. after vb is compiled - go to:
    cd <blender-install-dir>/<blender-version>MacOS/2.56/scripts/startup/vb25
    git clone --depth=1 git://github.com/bdancer/vb25.git

    ----------------------------
    compiled 2011-03-02,
    from blender svn 35311 revision

    10.6.6, osx 64bit,
    build download: http://dl.dropbox.com/u/19725436/vb_instalki/35311.zip

    build details:

    - VFB doesnt stops when hitting ESC, cant move VFB window (v-ray bug)
    - no FFMPEG
    - subsurf crushes mesh export
    - UV maping works but can be sometimes broken (blender bug) http://projects.blender.org/tracker/?fu ... group_id=9
    - compiled with custom user-config.py file http://dl.dropbox.com/u/19725436/vb_ins ... -config.py
    --------------------------
    OLD (before svn 35311) HOW TO" on osx (if U need to compile from older revision):

    1. Make directory and download fe. blender svn 34764 by:
    on mac:
    svn co https://svn.blender.org/svnroot/bf-blen ... nk/blender --revision 34764
    IMPORTANT: do everything in fe. user folder - where U own rights to write files without "sudo" command! otherwise terminal will ask U about server username and password for checkout

    2. create lib folder and download libraries for my osx version by:
    (fe. I choose: PowerPC, Intel 32bit & 64bit 10.5 and later libs path from here: http://wiki.blender.org/index.php/Dev:2 ... lender/Mac)
    mkdir lib
    cd lib
    svn checkout https://svn.blender.org/svnroot/bf-blen ... .universal

    3. I have this folders structure:
    blender-build
    * blender
    * lib (containing the correct version of darwin-X.X.XXXX)

    4. then in blender-build copy vb-patch:
    git clone git://github.com/bdancer/vb25-patch.git

    5.then:
    cd blender
    Apply patchset:
    patch -Np0 -i ../vb25-patch/vb25.patch

    6. if U get this error:
    Hunk #1 FAILED at 4.
    1 out of 1 hunk FAILED -- saving rejects to source/blender/editors/space_api/SConscript.rej
    go to: source/blender/editors/space_api/SConscript
    and paste:
    incs += ' ../../exporter'

    so file "SConscript" will look like this:

    #!/usr/bin/python
    Import ('env')

    sources = env.Glob('*.c')

    incs = '../include ../../blenlib ../../blenkernel ../../makesdna'
    incs += ' ../../windowmanager ../../python ../../makesrna'
    incs += ' #/intern/guardedalloc #/extern/glew/include'
    incs += ' ../../exporter'
    defs = ''

    env.BlenderLib ( 'bf_editors_space_api', sources, Split(incs), Split(defs), libtype=['core'], priority=[30] )


    7. Copy exporter to source/blender/
    cp -Rf ../vb25-patch/exporter source/blender/
    If you want project’s great splash image do this:
    cp -f ../vb25-patch/splash.png.c source/blender/editors/datafiles

    8. Copy to blender folder my own user-config.py (my config is for osx 10.6 64bit without FFMPEG etc)
    http://dl.dropbox.com/u/19725436/vb_ins ... -config.py

    9. sudo python scons/scons.py

    10. after vb is builded:
    cd <blender-install-dir>/<blender-version>/scripts/io/
    git clone --depth=1 git://github.com/bdancer/vb25.git

    -----------------------------------------------
    thanks to Cory & bdancer help
    mat tests>
    render tests>

  • #2
    Re: osx 10.6.6 building vb

    What blender revision are you building?

    Did you update to the latest vb25-patch?

    Was the patching successful? Probably not.
    (Bdancer, I just downloaded SVN 35116 and vb25-patch does not patch successfully -- see below)

    Did you do the equivalent of this step?
    cp -a ../vb25-patch/exporter source/blender/exporter

    -----
    Bdancer,
    Code:
    C:\BlenderSVN\blender>patch -Np0 -i ../patches/vb25-patch/vb25.patch
    ...
    patching file `source/blender/editors/space_api/SConscript'
    Hunk #1 FAILED at 4.
    1 out of 1 hunk FAILED -- saving rejects to source/blender/editors/space_api/SConscript.rej
    ...
    Cory Petkovsek
    Corporate Video

    Comment


    • #3
      Re: osx 10.6.6 building vb

      While Andrey updates vb25-patch, you can manually put in the rejected changes. Assuming yours fails the same way mine did, I just added this line to the file source/blender/editors/space_api/SConscript in the appropriate place designated by the patch file.
      Code:
      incs += ' ../../exporter'
      Look in the rej file, then look in the file it was supposed to be editing and it should be pretty easy to find what patch couldn't find.

      Cory
      Cory Petkovsek
      Corporate Video

      Comment


      • #4
        Re: osx 10.6.6 building vb

        This allowed me to build just fine. However, the current script doesn't work with the current blender trunk r35116. My last successful build was r34764.

        No vray renderer is available; This is on the console:
        Code:
        found bundled python: C:\BLENDE~1\_install\BLENDE~4\2.56\python
        Traceback (most recent call last):
          File "C:\BLENDE~1\_install\BLENDE~4\2.56\scripts\modules\bpy\utils.py", line 5
        0, in _test_import
            mod = __import__(module_name)
          File "C:\BLENDE~1\_install\BLENDE~4\2.56\scripts\io\vb25\__init__.py", line 29
        , in <module>
            from vb25 import properties_camera
          File "C:\BLENDE~1\_install\BLENDE~4\2.56\scripts\io\vb25\properties_camera.py"
        , line 38, in <module>
            class VRayCamera(bpy.types.IDPropertyGroup):
        AttributeError: 'RNA_Types' object has no attribute 'IDPropertyGroup'
        Cory
        Cory Petkovsek
        Corporate Video

        Comment


        • #5
          Re: osx 10.6.6 building vb

          Thank Cory 4 help, so

          blender revision is 35115.
          I get the same error when trying to patch:

          pawel:blender pawel$ sudo patch -Np0 -i ../vb25-patch/vb25.patch
          patching file source/blender/SConscript
          patching file source/blender/editors/space_api/spacetypes.c
          patching file source/blender/editors/space_api/SConscript
          Hunk #1 FAILED at 4.
          1 out of 1 hunk FAILED -- saving rejects to file source/blender/editors/space_api/SConscript.rej
          patching file source/blender/editors/render/render_internal.c
          Hunk #1 succeeded at 713 with fuzz 2 (offset 14 lines).
          patching file source/blender/makesrna/intern/rna_texture.c
          patching file source/blender/editors/space_api/CMakeLists.txt
          Hunk #1 succeeded at 24 with fuzz 2 (offset 1 line).
          patching file source/blender/CMakeLists.txt
          Hunk #1 succeeded at 101 (offset 60 lines).
          patching file source/creator/CMakeLists.txt
          Hunk #1 succeeded at 510 (offset 19 lines).
          patching file source/blender/editors/render/render_shading.c
          Hunk #1 succeeded at 581 (offset 2 lines).
          patching file source/blender/makesdna/DNA_texture_types.h
          Hunk #1 succeeded at 302 (offset 4 lines).
          patching file source/blender/python/intern/bpy_rna.c
          Hunk #1 succeeded at 58 with fuzz 1 (offset 4 lines).
          pawel:blender pawel$ sudo cp -Rf ../vb25-patch/exporter source/blender/
          pawel:blender pawel$ sudo cp -f ../vb25-patch/splash.png.c source/blender/editors/datafiles
          pawel:blender pawel$ ls

          ---------
          Added that path to SConscript like that: http://dl.dropbox.com/u/19725436/vb_instalki/SConscript
          Then VB has compiled but like in your case - there's no vray render option
          mat tests>
          render tests>

          Comment


          • #6
            Re: osx 10.6.6 building vb

            Patch updated.
            V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
            andrei.izrantcev@chaos.com
            Support Request

            Comment


            • #7
              Re: osx 10.6.6 building vb

              Thanks Bdancer, i updated all but still there is a problem:

              source/blender/editors/space_api/spacetypes.c:62:26: error: exporter_ops.h: No such file or directory
              source/blender/editors/space_api/spacetypes.c: In function ‘ED_spacetypes_init’:
              source/blender/editors/space_api/spacetypes.c:111: warning: implicit declaration of function ‘ED_operatortypes_exporter’
              scons: *** [/Applications/Blender/sources/blender-build/build/darwin/source/blender/editors/space_api/spacetypes.o] Error 1
              scons: building terminated because of errors.
              pawel:blender pawel$

              i dont know maybe im making somethin wrong, will delete all and try again.
              mat tests>
              render tests>

              Comment


              • #8
                Re: osx 10.6.6 building vb

                No vray renderer is available; This is on the console:
                Yep, I know this - it will take long time to fix this (its about rna props registration changes); so I plan to fix this in devel branch in few weeks. Sorry it will take so much time.
                V-Ray For Houdini | V-Ray Hydra Delegate | VRayScene
                andrei.izrantcev@chaos.com
                Support Request

                Comment


                • #9
                  Re: osx 10.6.6 building vb

                  ok i done this way:
                  - downloaded the svn
                  - renamed it to " blender-svn ",
                  - then export blender-svn blender( that created folder blender)
                  - aplied patches to that created "blender" folder
                  - compiled from that

                  patching went like that:

                  pawel:blender pawel$ sudo patch -Np0 -i ../vb25-patch/vb25.patch
                  patching file source/blender/SConscript
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/SConscript.rej
                  patching file source/blender/editors/space_api/spacetypes.c
                  Reversed (or previously applied) patch detected! Skipping patch.
                  2 out of 2 hunks ignored -- saving rejects to file source/blender/editors/space_api/spacetypes.c.rej
                  patching file source/blender/editors/space_api/SConscript
                  Hunk #1 succeeded at 4 with fuzz 1.
                  patching file source/blender/editors/render/render_internal.c
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/editors/render/render_internal.c.rej
                  patching file source/blender/makesrna/intern/rna_texture.c
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/makesrna/intern/rna_texture.c.rej
                  patching file source/blender/editors/space_api/CMakeLists.txt
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/editors/space_api/CMakeLists.txt.rej
                  patching file source/blender/CMakeLists.txt
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/CMakeLists.txt.rej
                  patching file source/creator/CMakeLists.txt
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/creator/CMakeLists.txt.rej
                  patching file source/blender/editors/render/render_shading.c
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/editors/render/render_shading.c.rej
                  patching file source/blender/makesdna/DNA_texture_types.h
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/makesdna/DNA_texture_types.h.rej
                  patching file source/blender/python/intern/bpy_rna.c
                  Reversed (or previously applied) patch detected! Skipping patch.
                  1 out of 1 hunk ignored -- saving rejects to file source/blender/python/intern/bpy_rna.c.rej
                  pawel:blender pawel$ sudo cp -Rf ../vb25-patch/exporter source/blender/
                  pawel:blender pawel$ sudo cp -f ../vb25-patch/splash.png.c source/blender/editors/datafiles
                  pawel:blender pawel$ sudo sudo python scons/scons.py

                  ---

                  after that i managed to compile blender with my user-config file but still there is no vray available
                  mat tests>
                  render tests>

                  Comment


                  • #10
                    Re: osx 10.6.6 building vb

                    Originally posted by bdancer
                    I know this - it will take long time to fix this (its about rna props registration changes); so I plan to fix this in devel branch in few weeks. Sorry it will take so much time.
                    Ok no problem andrey. You're doing amazing! You're so dedicated to this project, it's great!

                    Fb3000, go back to a previous blender revision before the rna changes. I'm using r34764.
                    Cory
                    Cory Petkovsek
                    Corporate Video

                    Comment


                    • #11
                      Re: osx 10.6.6 building vb

                      Im posting Cory's info how to go back to previous svn version:

                      it may be useful for others reading the forums. SVN has the capability, just look in the help. Let's see...

                      From your root, you can run these. Use --dry-run to see what would happen, take it out to actually do it.

                      svn merge --dry-run -r35115:34764 blender
                      svn merge --dry-run -r35115:34764 lib\win64

                      You'll see stuff like this:
                      --- Reverse-merging r35115 through r34765 into '.':
                      U intern\bsp\SConscript
                      D intern\mikktspace
                      U intern\ghost\intern\GHOST_EventPrinter.cpp
                      U intern\ghost\intern\GHOST_SystemWin32.cpp
                      U intern\ghost\intern\GHOST_C-api.cpp
                      U intern\ghost\intern\GHOST_SystemX11.cpp
                      U intern\ghost\GHOST_IEventConsumer.h

                      When done you can run 'svn info' to tell you which revision you're on. If it says 34764, you can run 'svn status' on both blender and your library tree to make sure there aren't any extra files and that it has only 34764.

                      You can unpatch your tree and go back to whatever is in the svn sources for the current revision.
                      svn revert -R <tree path>

                      You can also check out a revision from scratch
                      svn co -r 34764 <source>

                      Or compare the current copy to a revision
                      svn diff -r 34764

                      ------
                      You probably use windows so i only tried (without that command to libs):
                      sudo svn merge --dry-run -r35131:34764 blender
                      and get this:
                      svn: '.' is not a working copy

                      bdancer said I shoul try compile for myself because its not so hard - yeah right
                      mat tests>
                      render tests>

                      Comment


                      • #12
                        Re: osx 10.6.6 building vb

                        Sorry, my commands were wrong. Instead change into the blender directory, then later into the library directory and specify '.' for the current directory.

                        To test:
                        svn merge --dry-run -r35115:34764 .

                        To actually revert from r35115 to r34764:
                        svn merge -r35115:34764 .

                        Cory
                        Cory Petkovsek
                        Corporate Video

                        Comment


                        • #13
                          Re: osx 10.6.6 building vb

                          really thanks Cory for Your help,
                          I just managed to go back svn with this command (btw. thank's bdancer for patience):
                          svn checkout https://svn.blender.org/svnroot/bf-blen ... nk/blender --revision 34764

                          then patched all like it was written here: https://github.com/bdancer/vb25-patch/wiki/Compilation

                          compiled blender but still it has no vray render option.
                          mat tests>
                          render tests>

                          Comment


                          • #14
                            Re: osx 10.6.6 building vb

                            After patching the source, then building, did you copy the export script into blender/2.56/scripts/io/vb25, or do the git clone? If so then you should have either vray renderer or error messages on your console. If errors, what are they?

                            Cory
                            Cory Petkovsek
                            Corporate Video

                            Comment


                            • #15
                              Re: osx 10.6.6 building vb

                              Thats what i get from console:

                              found bundled python: /Applications/Blender/sources/darwin/blender.app/Contents/MacOS/2.56/python
                              Traceback (most recent call last):
                              File "/Applications/Blender/sources/darwin/blender.app/Contents/MacOS/2.56/scripts/modules/bpy/utils.py", line 50, in _test_import
                              mod = __import__(module_name)
                              File "/Applications/Blender/sources/darwin/blender.app/Contents/MacOS/2.56/scripts/io/vb25/__init__.py", line 29, in <module>
                              from vb25 import properties_camera
                              File "/Applications/Blender/sources/darwin/blender.app/Contents/MacOS/2.56/scripts/io/vb25/properties_camera.py", line 38, in <module>
                              class VRayCamera(bpy.types.IDPropertyGroup):
                              AttributeError: 'RNA_Types' object has no attribute 'IDPropertyGroup'
                              mat tests>
                              render tests>

                              Comment

                              Working...
                              X