Jul 26

Compiling Blender svn on OSX Lion (with SCONS and Xcode 4.1)

Tue, 07/26/2011 - 19:11 — peter

The Problem

I upgraded to OSX Lion with the now free again Xcode 4.1 and no longer can compile Blender from SVN... again!

The Solution

To get your SVN Blender-fu back you will need to do 2 somewhat simple things:

  1. Change your user-config.py file.
    • Add Lion to the MAC_CUR_VER list (last 2 lines below):
      ...
      if cmd_res[0]=='7':
              MAC_CUR_VER='10.3'
      elif cmd_res[0]=='8':
              MAC_CUR_VER='10.4'
      elif cmd_res[0]=='9':
              MAC_CUR_VER='10.5'
      elif cmd_res[0]=='10':
              MAC_CUR_VER='10.6'
      elif cmd_res[0]=='11':
              MAC_CUR_VER='10.7'
    • Keep the x86_64 architecture - hopefully you did this already, if not, change your MACOSX_ARCHITECTURE line to the following:
      if MACOSX_ARCHITECTURE == 'x86_64' or MACOSX_ARCHITECTURE == 'ppc64':
              USE_QTKIT=True # Carbon quicktime is not available for 64bit
    • Finally, change or comment out+add lines on the SDK location variable to the following.
      #else :
      #       MAC_MIN_VERS = '10.5'
      #       MACOSX_DEPLOYMENT_TARGET = '10.5'
      #       MACOSX_SDK='/Developer-old/SDKs/MacOSX10.5.sdk'
      #       LCGDIR = '#../lib/darwin-9.x.universal'
      #       CC = 'gcc-4.2'
      #       CXX = 'g++-4.2'
      else :
              MAC_MIN_VERS = '10.7'
              MACOSX_DEPLOYMENT_TARGET = '10.7'
              MACOSX_SDK='/Developer/SDKs/MacOSX10.7.sdk'
              LCGDIR = '#../lib/darwin-9.x.universal'
              CC = 'gcc-4.2'
              CXX = 'g++-4.2'
  2. Now, if you try to compile with python2.7 scons/scons.py -j8,you will get an error similar to the following:
    Compiling ==> 'buildinfo.c'
    Install file: "release/text/copyright.txt" as "/Users/peter/workspace/blender-build/install/darwin/copyright.txt"
    Install file: "release/text/GPL-license.txt" as "/Users/peter/workspace/blender-build/install/darwin/GPL-license.txt"
    Install file: "release/text/Python-license.txt" as "/Users/peter/workspace/blender-build/install/darwin/Python-license.txt"
    Install file: "release/text/readme.html" as "/Users/peter/workspace/blender-build/install/darwin/readme.html"
    Linking program ==> 'blender'
    ld: library not found for -lSystemStubs
    collect2: ld returned 1 exit status
    scons: *** [/Users/peter/workspace/blender-build/build/darwin/bin/blender] Error 1
    scons: building terminated because of errors.

    To fix that, run the following command (which assumes you have xcode installed on the usual place, /Developer
    for i in `find /Developer/SDKs/MacOSX10.6.sdk -iname libsystemstubs*`; do  sudo ln -s $i /Developer/SDKs/MacOSX10.7.sdk/usr/lib/; done

Voila! You can now continue to compile Blender under OSX Lion!

Easy Peasy!

-PCP

Comments

3zlif3 says:

Excellent blog post! thank you so much for sharing
this on us, I really enjoyed reading all your articles
here. I'm looking forward to see more articles.
Once again thank you and keep up the good work.
buy pinterest followers

forever21 says:

This is an excellent post, thanks for sharing it. It is really what I wanted to see. I hope in future you will continue for sharing such an excellent post. Looking forward for more post and updates in your site in the future. God bless and more power.

buy low cost twitter followers

arlyn says:

Thanks for sharing the information. Nice solution you have. I appreciate it. Looking forward for more interesting posts.
purchase soundcloud followers

gmk05 says:

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog rental mobil jakarta . I am sure my visitors will find that very useful

adminpool says:

Prior to make almost any decision pertaining to your career you should assess by yourself first. Considering that the inherent power, skills in addition to values usually are most helpful what you should make vocation choices. You work with self lab tests tools to put it differently we can certainly say a career test for just a self analysis test. A vocation test means that you can making decisions on your career. Furthermore, it creates the ideal list connected with occupation in addition to gathers suitable information on your career. www.constructioncareeraustin.net

adminpool says:

Vocation advice right now comes in all of the sizes and heights. It's simple get "lost from the lingo" although understanding many basic definitions can assist ensure you get the suitable support for you. To said simply, whether you would like career tips or vocation development will depend on in which you are on your career journey. www.technews404.net

adminpool says:

Doing the vital decision to search for a vocation change soon after 50 normally isn't going to come collected from one of event or maybe one happening. Rather is it doesn't slow trickle, drip connected with events of which trigger choosing one. www.inceptiontech.net

adminpool says:

Life-long employment opportunities and earning a living for one supervisor our overall working life is usually a thing connected with past. With the current fast-paced world wide economy, careers in addition to industries often change in addition to come in addition to go over night. www.lincolnwebhosting.net

angel123 says:

This is very interesting article. Great written and come with approximately all vital information. I gained so much information on this, I’ll definitely be back for updates. Be with us here purchase soundcloud followers

adminpool says:

Really it is sad because if a set off comes these include the same people that will find it difficult to launch the job seek quickly. It doesn't ought to be that technique! Here usually are three "must do" vocation success things to do. www.vetwebdesign.net

nielle23 says:

The data you presented here is interesting. The site is exceptionally intriguing and satisfying in the right way. Thank you for sharing. how to buy more soundcloud reposts

adminpool says:

Small business networking is additionally important intended for career achievements. Keeping ones network active is usually fun together with beneficial. Everyone has experienced colleagues in addition to managers that contain left this company to get over it to other companies. To be connected simply acquire the phone to mention hello. www.software-uptodate.net

lauradecosta90 says:

Actually attentive thought! I am more constantly learned from this platform and know about lots of stuff

sherlock holmes Coat

angeljulie3 says:

You targeted this topic in such a great way. You are raising the awareness by spreading knowledge.

Mass Effect Jacket

gmk05 says:

Your post was good and the information that you giving your post that was really cool. I like it very much. Thanks for posting this. Please share more information and I will bookmark to my blog sewa mobil jakarta

harsona says:

Your blog is very much innovative and much helpful for any industry as well as for person. I urge discovering this web page to take in the great resources available.Fifa 15 Coins Buy

jackjohn600 says:

Perhaps you and your partner are looking to ease into the sex toy world with a small vibrator, or maybe you’re a women looking for a large and in charge makeshift dick when you are home alone. sparxx rx

annajames414 says:

Now that you have created your video segment, you are ready to upload your video online and complete your video search engine optimization (video SEO) so as to have your video optimally placed online to be found by your prospective viewers. seo lexington ky

adminpool says:

Business communication has evolved greatly throughout centuries and continues to change at fast speeds. Relaying messages in a professional setting are vital to the production and life of an organization. Business communication plays a role in day-to-day activities at work, business trends may be observed, and message types may vary as a result from business communication trends. after business community

annajames414 says:

The pill works by increasing the flow of blood to your dick and thereby increases your penis size to an extent that you will be able to please your partner. blog sparxxrx

adminpool says:

If you are a business class executive who cannot do without business desk facilities in their hotel can also get convenient accommodation in this area. There are some hotels offering internet and communication facilities too beside television, air-conditions, and other basic amenities. hotels and resort

aadi says:

The idea is to focus on facts and try and define a baseline problem to share.
Apple product dealers in Mumbai
Apple authorised service center Kolkata
Soundcraft mixers dealers

Kimi says:

Ces attributs sont uniques pour chaque observer wirst. Don peur de courrier électronique, la ligne garder et s'assurer que leurs replique montres respectent ou excede ces très bons excellents exigences de qualité. Si un magasin en ligne ne répond pas à votre demande de renseignements que vous ne voulez pas seulement à l'achat de toute façon.

down8 says:

I've noticed just how correctly you plan in regards to the framework with the web site. Their ideal and great, gives me personally ample facts I must complete my own paramount undertaking. Appreciate the great deal of copy essay for students. Thanks

adminpool says:

When you choose car insurance, make sure you properly protect yourself in relation to liability for property damage and bodily injury. The correct quantity of coverage in this area can make a huge difference in case of a car accident. Not needing enough coverage can give you a lawsuit that could be tough to get over. insurance maneuvers

robin says:

I just love your weblog! Very nice post! Still you can do many things to improve it.
Roasted korma
animal feeds
Guar Meal churi

adminpool says:

In a large frying pan, saute the onion and green pepper in butter until fork tender. Stir in the chopped tomatoes, mushrooms, oregano and basil. Simmer for 2-3 minutes and then stir in the cooked ground beef. Continue to simmer over medium heat, uncovered for approximately 8-10 minutes. grown up baking