Age | Commit message (Collapse) | Author |
|
- also fix own bad assert from yesterday & remove testing cmake print.
|
|
This fixes linking errors occurred recently for me (kinda of SDL
and registry stuff)
Now it works perfectly, thanks to Campbell for tip :)
|
|
|
|
|
|
CMAKE_CXX_STANDARD_LIBRARIES.
if not defined (first run) these are now set blank but can be defined later.
the problem is that scons & cmake builds would link against different libraries since cmake added its own defaults.
now, by default, scons & cmake have the same libraries.
This fixes an obscure crash in MinGW where cmakes default linking with -ladvapi32 would crash on string formatting which used float precision as an argument, eg:
printf("%.*f", 3, value);
...without giving a useful backtrace or pointing to the line of code doing the string formatting.
|
|
also made WITH_PYTHON advanced.
|
|
own glew library.
|
|
gives warnings with variable length args.
|
|
-Wdouble-promotion -Wno-error=double-promotion
-Wno-error=unused-but-set-variable
|
|
this way portable builds wont find scripts in /usr/share.
|
|
|
|
|
|
WITH_MOD_FLUID until there supported.
possibly allows builing with Xcode4.
|
|
from cache.
|
|
|
|
external headers cause this.
|
|
|
|
|
|
Reported by Jan Hohoho
Running the unwrap causes stack to overflow. Double the size from default 1MB.
|
|
'== "win32"' & avoid importing platform.
also add some notes to CMake options.
|
|
cmake on *nix detects python ABI flags for debug and release mode.
searches /usr /usr/local /opt/py32
|
|
give a CMake error if Python.h isn't found.
|
|
- for new shadow only enum, use humanly readable RNA enum values.
- update cmake unix example for custom python.
|
|
x86_64 (also used to select the python dynlibs that'll be bundled with the application).
Set deployment target to be 10.5 by default.
Fix broken build introduced by recent source/creator/CMakeList.txt cleanup
|
|
for building py3.2 on *nix see:
http://wiki.blender.org/index.php?title=Dev:2.5/Doc/Building_Blender/Linux/Troubleshooting#Python
also fixed possible buffer overrun with getting the fake filepath for a blender textblock.
|
|
need to run 'make install', for MSVC the 'INSTALL' target needs to be enabled in the project file
|
|
use 'install' target rather then copying files with post-build commands.
Main change is that you need to run 'make install', which copies files to ./bin by default
unless WITH_INSTALL_PORTABLE is OFF, where CMAKE_INSTALL_PREFIX is used for a typical unix-system install.
|
|
|
|
compile time option which enables extra safety checks.
since this is noticeably slower I rather not enable by default yet.
|
|
a header every build with the time, date, svn revision.
|
|
|
|
causing dependency problems.
|
|
|
|
disallow 0% rendersize.
also mark new cmake vars as advanced: RPMBUILD, X11_XF86keysym_INCLUDE_PATH
|
|
embedding python.
CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so
This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg:
python -c "import bpy ; bpy.ops.render.render(write_still=True)"
This runs in background mode and has similar restrictions to running a script:
blender --background --python test.py
TODO:
- install to site-packages with blender scripts
- add support for imp.reload()
|
|
|
|
also set minimum cmake version to 2.8
|
|
|
|
bundle also defined.
|
|
- rename rna collection structs Main prefix to BlendData: eg, MainObjects --> BlendDataObjects
- printing python collection now prints its type (when available)
- renamed shadowed vars in bpy_rna.c.
- when making functions static I also made debugging/test functions static, reverse and add definitions to headers instead.
|
|
- python 3.2 does 'import site' on startup which now tries to parse pyconfig.h which isn't copied. so for now just run without importing 'site', alternative would be to copy the header file for posix systems.
- cache PYTHON_VERSION variable so it can be set to 3.2, needed for copying python installation's other then 3.1.
|
|
|
|
r827).
|
|
*nix with non-standard libjpeg/png/zlib locations was broken.
in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.
|
|
Will need to write full docs on this on the wiki.
basic info.
- 21 tests, OBJ/3DS/X3D/FBX, 3 tests per format import export. STL, PLY, BVH are TODO.
- uses files in ../lib/tests (checkout separate)
- run with CMake Makefiles "make test" or "ctest"
- currently checks against basic MD5 hash on scene import and file MD5 hash on export (realize this wont work predictably on binary formats *TODO*).
- currently uses a generic script for all tests with arguments to specify command to run, expected output, testing method, files to check against etc.
Has already proved useful, found a number of bugs in import export and some in blender too.
|
|
|
|
- game engine builds without python again.
|
|
|
|
blender_include_dirs(${OPENGL_INCLUDE_DIR})
Apparently this is needed for MSVC in some cases, reported by Tamito Kajiyama r33895.
|
|
|