[Bf-committers] Issues Parsing CMake with Qt Creator

Campbell Barton ideasman42 at gmail.com
Thu Dec 19 13:32:05 CET 2013

Can you see if this error happens if you run CMake outside QtCreator?
(There should be no difference other then QtCreator uses code::blocks
project file generator).

Making a directory shouldnt fail, maybe ${CMAKE_COMMAND} needs to be
quoted or ${TEST_OUT_DIR} somehow gets set incorrectly.

On Thu, Dec 19, 2013 at 10:15 PM, Lukas Tönne <lukas.toenne at gmail.com> wrote:
> I haven't tried using the cmake project import in qtcreator recently, but
> recall it worked reasonably well some time ago. You can also use the
> build_files/cmake/cmake_qtcreator_project.py script to setup a full
> qtcreator project for blender sources. This works a lot better in my
> experience and has a number of advantages.
> E.g. you can use a blender_custom.config file in the build folder that
> overrides some C preprocessor defines. These defines don't influence the
> compiler, but they let qtcreator run the code model analyzer over parts
> that it would otherwise consider disabled. I'm usually setting #define
> RNA_RUNTIME there so i can work more easily in static RNA functions.
> On Thu, Dec 19, 2013 at 4:34 AM, Mitchell Stokes <mogurijin at gmail.com>wrote:
>> I'm not sure if these are Qt Creator bugs or not, but Qt Creator seems to
>> have trouble with our CMake. When I click on Run CMake in the CMake Wizard,
>> things stall in a couple of places.
>> The first in source/tests/CMakeLists.txt around line 30:
>> execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TEST_OUT_DIR})
>> Commenting out the add_subdirectory(tests) in source/CMakeLists.txt allows
>> me to get past this.
>> Next up, in the root CMakeLists.txt around line 2223:
>> include(build_files/cmake/packaging.cmake)
>> I don't know what in packaging.cmake is causing the stall, but commenting
>> out the include allows me to get the CMake Wizard to finish.
>> Anyone else running into these kinds of issues?
>> System:
>>   Arch Linux 64bit
>>   Qt Creator 3.0.0
>>   CMake
>> --Mitchell Stokes
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers

- Campbell

More information about the Bf-committers mailing list