Documentation for building Blender with Xcode doesn't work #61902

Closed
opened 2019-02-24 07:05:01 +01:00 by Chris Evans · 9 comments

Downloaded the latest code from master, and followed the tutorial here https://wiki.blender.org/wiki/Building_Blender/Mac.

Got it working by modifying CMake to include "WITH_BOOST". I would like to update the tutorial but I cannot find any place to edit it, and the IRC seem to be abandon.

Downloaded the latest code from master, and followed the tutorial here https://wiki.blender.org/wiki/Building_Blender/Mac. Got it working by modifying CMake to include "WITH_BOOST". I would like to update the tutorial but I cannot find any place to edit it, and the IRC seem to be abandon.
Author

Added subscriber: @mgchris

Added subscriber: @mgchris
Arto Kitula was assigned by Sebastian Parborg 2019-02-25 17:30:17 +01:00

What exactly you'd like to edit? Did you first run make update under source tree before cmake/cmake gui?

What exactly you'd like to edit? Did you first run make update under source tree before cmake/cmake gui?

Added subscriber: @brecht

Added subscriber: @brecht

It should not be necessary to manually set WITH_BOOST in any case, that would indicate a bug in the build system that needs to be fixed.

It should not be necessary to manually set `WITH_BOOST` in any case, that would indicate a bug in the build system that needs to be fixed.

In #61902#628317, @brecht wrote:
It should not be necessary to manually set WITH_BOOST in any case, that would indicate a bug in the build system that needs to be fixed.

I wasn't able to repro this. Building with XCode worked for me.

@mgchris what steps did you do?

> In #61902#628317, @brecht wrote: > It should not be necessary to manually set `WITH_BOOST` in any case, that would indicate a bug in the build system that needs to be fixed. I wasn't able to repro this. Building with XCode worked for me. @mgchris what steps did you do?
Author

@ArtoKitula I used CMake GUI (3.14.0-rc2).
Steps:

  1. Get latest code from master (From commit b9a37dd97acf6c4254e8246add7af05d68c8bf64).
  2. Deleted my output folder (Where to build the binaries)
  3. In CMake GUI clicked Configure and waited for it to finish
  4. In CMake GUI clicked Generate and waited for it to finish
  5. Open Xcode selected the install Scheme (Note it might be better to say Press Command+shift+, instead of Command-<)
  6. Have Xcode Automatically Create Schemes. (Maybe update the docs saying to select that option?)
  7. Changed Executable to blender.app
  8. Build and get 30 build errors relating to Undefined symbols for architecture x86_64: for a bunch of boost methods.

Screen Shot 2019-02-27 at 1.11.00 PM.png

If I repeat the process except I select WITH_BOOST before step 3, everything builds and runs correctly.

Screen Shot 2019-02-27 at 1.17.27 PM.png

@ArtoKitula I used CMake GUI (3.14.0-rc2). Steps: 1. Get latest code from master (From commit b9a37dd97acf6c4254e8246add7af05d68c8bf64). 2. Deleted my output folder (Where to build the binaries) 3. In CMake GUI clicked `Configure` and waited for it to finish 4. In CMake GUI clicked `Generate` and waited for it to finish 5. Open Xcode selected the `install` Scheme (Note it might be better to say `Press Command+shift+,` instead of `Command-<`) 6. Have Xcode `Automatically Create Schemes`. (Maybe update the docs saying to select that option?) 7. Changed `Executable` to `blender.app` 8. Build and get 30 build errors relating to `Undefined symbols for architecture x86_64:` for a bunch of boost methods. ![Screen Shot 2019-02-27 at 1.11.00 PM.png](https://archive.blender.org/developer/F6725675/Screen_Shot_2019-02-27_at_1.11.00_PM.png) If I repeat the process except I select `WITH_BOOST` before step 3, everything builds and runs correctly. ![Screen Shot 2019-02-27 at 1.17.27 PM.png](https://archive.blender.org/developer/F6725742/Screen_Shot_2019-02-27_at_1.17.27_PM.png)
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member
This discussion belongs on https://devtalk.blender.org/c/blender/building-blender
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#61902
No description provided.