建筑搅拌机用于断点/在Xcode中调试 [英] Building Blender for breakpoints/Debug in Xcode

查看:200
本文介绍了建筑搅拌机用于断点/在Xcode中调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

TL; RD 遵循 http:/ /wiki.blender.org/index.php/Dev:Doc/Building_Blender/Mac for Xcode可以让您在OS X上添加断点/监视和正确调试可执行文件的步骤是什么?



我的规格


Xcode版本6.4(6E35b)
OSX 10.10.4 (14E46)
CMake 3.3.0 GUI构建与QT 4.8.6



长描述



我按照说明操作,所以我按照Xcode 5的建议设置了方案(确实让默认调试),但是


  1. 第一次cmake失败,因为没有 numpy 没有 numpy (释放或debug)inside https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin-9.x.universal/python/lib/python3.4/ 也从控制台输出munpy搜索,像 / Users / tyoc213 / blender-build / blender /../ lib / darwin-9.x.universal / python / lib / python3.4 / python3 .4 / site-packages / numpy 也可以看到它在 python3.4 / python3.4 中搜索这很奇怪。 >
  2. 在第二次运行时,它表示将在安装(ation)上跳过 numpy 。您可以在这里查看cmake输出 https://gist.github.com/tyoc213/aea0fb541383dc06981a

  3. 所以我们现在可以生成Xcode项目,我们用Xcode打开生成的混合器项目,配置在dev-wiki上的方案,等待它在闪烁步骤失败。



调试方案唯一合理的修复方法是没有修复,使用发布方案



只有一个修复用于编译和运行,并且将更改为 $ c>和Xcode附加在开始的过程中,断点不起作用。



调试方案



所以调试方案中的问题是这样的:如何构建在Xcode 5中构建一个混合器?基本上有来自libbf_intern_cyc的引用没有找到的文件: _Controller_actuators_length _CurveMapping_curves_length _MeshColorLayer_data_length _MeshLoopColorLayer_data_length _MeshPaintMaskLayer_data_length _MeshPolygonFloatPropertyLayer_data_length _MeshPolygonIntPropertyLayer_data_length _MeshPolygonStringPropertyLayer_data_length _MeshSkinVertexLayer_data_length _MeshTextureFaceLayer_data_length _MeshTexturePolyLayer_data_length _MeshUVLoopLayer_data_length _MeshVertexFloatPropertyLayer_data_length _MeshVertexIntPropertyLayer_data_length _MeshVertexStringPropertyLayer_data_length _Sensor_controllers_length _Spline_points_length 这是 ld:找不到架构x86_64的符号



正确设置调试和放置断点,然后使用Xcode和观察变量执行步骤,线程等。

解决方案

我发现能够在Xcode中放置断点并逐步执行,查看本地人等等的唯一方法是禁用CMake中的周期



也许我应该在构建过程中发布一个错误,而不是在CMake中,我不知道我是否可以在Xcode中构建scons并在Xcode中进行调试。


TL;RD Following http://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Mac for Xcode what are the steps that let you add breakpoints/watches and correctly debug the executable on OS X?

My spec

Xcode Version 6.4 (6E35b) OSX 10.10.4 (14E46) CMake 3.3.0 GUI build with QT 4.8.6

The long description

I did follow the instructions so I set the scheme as suggested as for Xcode 5 (did let debug as default) but

  1. First time cmake fails because there is no numpy there is no numpy (release or debug) inside https://svn.blender.org/svnroot/bf-blender/trunk/lib/darwin-9.x.universal/python/lib/python3.4/ also from the console output munpy is searched on something like /Users/tyoc213/blender-build/blender/../lib/darwin-9.x.universal/python/lib/python3.4/python3.4/site-packages/numpy also you can see that it search on python3.4/python3.4 which is weird.
  2. On the second run it says that it will skip numpy on install(ation). you can see the cmake output here https://gist.github.com/tyoc213/aea0fb541383dc06981a
  3. So we now can generate Xcode project, we open the generated blender project with Xcode configure the scheme as on the dev-wiki and wait it fails at blinker step.

The only plausible fix for debug scheme is no fix at all, use release scheme

There is only one "fix" for compile&run for this and it is to change the scheme to Release, but even having checked Debug application and that Xcode attach on start to the process, breakpoints don't work.

The debug scheme

So the problem in Debug scheme is this: How to build a blender build in Xcode 5? basically there are references from libbf_intern_cycles.a that are not found: _Controller_actuators_length, _CurveMapping_curves_length, _MeshColorLayer_data_length, _MeshLoopColorLayer_data_length, _MeshPaintMaskLayer_data_length, _MeshPolygonFloatPropertyLayer_data_length, _MeshPolygonIntPropertyLayer_data_length, _MeshPolygonStringPropertyLayer_data_length, _MeshSkinVertexLayer_data_length, _MeshTextureFaceLayer_data_length, _MeshTexturePolyLayer_data_length, _MeshUVLoopLayer_data_length, _MeshVertexFloatPropertyLayer_data_length, _MeshVertexIntPropertyLayer_data_length, _MeshVertexStringPropertyLayer_data_length, _Sensor_controllers_length, _Spline_points_length this are ld: symbol(s) not found for architecture x86_64

Any suggestions in the correct setup for debug and put break points then do steps, threads with Xcode and watch variables and so on?.

解决方案

The only way for the moment that I have found to be able to put breakpoints in Xcode and do step by step, see locals and so on, is to disable cycles in CMake.

Maybe I should post this as an error in the build process at less for CMake, I don't know if I can build scons inside Xcode and debug it inside Xcode.

这篇关于建筑搅拌机用于断点/在Xcode中调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆