Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-13Revert "Cleanup/MSVC: Enable C++ conformance mode on compiler versions that ↵Ray Molenkamp
support it." It is breaking compilation on some configurations, revert for now while i see what is wrong. This reverts commit 9fe469c110940af5d2525158305d5d365bd15276.
2020-02-12Cleanup/MSVC: Enable C++ conformance mode on compiler versions that support it.Ray Molenkamp
MSVC has a conformance mode (/permissive-) where the C++ standard is more strictly enforced. This mode is available on MSVC 15.5+ [1] This patch enables this mode on compilers that support it and cleans up the few violations it threw up in the process. - Mantaflow was using M_PI without requesting them using the _USE_MATH_DEFINES define to opt in to non default behaviour. - Collada did not include the right header for std::cerr, this seemingly was fixed for other platforms already but put inside a platform guard. - Ghost had some scoping issues regarding uninitialized variables and goto behaviour [1] https://docs.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance Differential Revision: https://developer.blender.org/D6824 Reviewed By: brecht
2020-02-12Codesign: Attempt to make macOS codesign more reliableSergey Sharybin
Is still sometimes .ready file appears prior to an actual archive.
2020-02-11install_deps.sh: correct clang/llvm download URLsPhilipp Oeser
2020-02-11Fix: Build error on windowsRay Molenkamp
USD "library" directory was not set, leading to an error during the INSTALL phase.
2020-02-11Fix T68243: Python sqlite module not working on macOSBrecht Van Lommel
2020-02-10Updated install_deps to latest required OSL/LLVM.Bastien Montagne
2020-02-10USD: Install USD library via install_deps.shSybren A. Stüvel
This commit adds the download, extract, patch, build, and install of the Universal Scene Description (USD) library to the `install_deps.sh` script. Reviewed By: mont29, LazyDodo Differential Revision: https://developer.blender.org/D6478
2020-02-09Windows: Improve rebuild.cmdRay Molenkamp
Previously the MSVC environment was setup every time using vcvarsall.bat when you ran you ran rebuild.cmd, Generally not an issue but after many rebuilds on the same console, it grows the path environment variable beyond what is supported and building breaks. This patch adds a check to see if the environment is setup already and skips the call to vcvarsall.bat Also cleans up the double build in the msbuild's version of rebuild.cmd install.vcxproj will build all that is needed, so no need to do a regular build first.
2020-02-09Build_environment: Fix unwanted exports from oidn on windows.Ray Molenkamp
oidn puts dllexport on all its functions causing the blender binary to export these symbols. this patch fixes this unwanted behaviour. Differential Revision: https://developer.blender.org/D6647 Reviewers: brecht , sergey
2020-02-09Build_environment: Fix unwanted exports from libxml on windows.Ray Molenkamp
libxml puts dllexport on all its functions causing the blender binary to export these symbols. this patch fixes this unwanted behaviour. Differential Revision: https://developer.blender.org/D6646 Reviewers: brecht , sergey
2020-02-09Build_environment: Freetype 2.10.1Ray Molenkamp
Freeetype 2.9.1 tags dllexport on most of its functions so these are now exported from the blender binary. (Same issue as D6563 which fixed it for USD) Issue has already been fixed upstream so a simple version bump fixes it. This patch bumps freetype to 2.10.1 Differential Revision: https://developer.blender.org/D6645 Reviewers: brecht , sergey
2020-02-08Build_environment: OSL 1.10.9 / llvm 9.0.1Ray Molenkamp
OSL 1.10.9 fixes osl-bug 866 [1] which is long standing issue on windows where paths get un-escaped and osl breaks when you install it to for instance c:\blender-tests\new-boolean This patch bumps osl to 1.10.9, and since osl is llvm's only consumer, llvm/clang were bumped 9.0.1 Removed some of the patches that were no longer needed Builds and passes all tests on windows and linux [1] https://github.com/imageworks/OpenShadingLanguage/issues/866 Differential Revision: https://developer.blender.org/D6744 Reviewers: brecht
2020-02-07BuildSystem/Cleanup: Fix warning behaviour regarding library dependenciesRay Molenkamp
Adding USD to a lite build fails to build due to boost errors, when you turn boost on and rebuild still boost errors, boost was silently turned off since it was not deemed needed. Once boost was forced on, it still fails due to TBB being off. This patch fixes: - The Silent disabling of boost - Add a check that USD is is not on before doing that - move the TBB checks to a central location rather than the individual platform files - Add USD to the TBB checks. Differential Revision: https://developer.blender.org/D6479 Reviewers: brecht, sybren
2020-02-06Code_Cleanup_Day/Windows: Clean-up windows API Level.Ray Molenkamp
Not sure when this happened but apparently the lower bar is now windows 7 [1] This patch bumps to API version to 0x0601 (Win7) and cleans up any uses that worked around the globally set API version. [1] https://www.blender.org/download/requirements/ Reviewed By: brecht Differential Revision: https://developer.blender.org/D6758
2020-02-05Merge branch 'blender-v2.82-release'Campbell Barton
2020-02-05Fix finding freetype on Linux not using pre-compiled libsCampbell Barton
Finding X11 before platform libs caused freetype not to use pre-compiled libraries.
2020-02-05Merge branch 'blender-v2.82-release'Campbell Barton
2020-02-05CMake: remove non-standard package search pathsCampbell Barton
Reduce the number of possible locations used to find libraries, to simplify troubleshooting. Only keep '*_ROOT_DIR' and the path used by 'install_deps.sh'.
2020-02-04Merge branch 'blender-v2.82-release'Julian Eisel
2020-02-04Fix wrong glColor3usv array size check in clang array checkerSimon G
Differential Revision: https://developer.blender.org/D6716
2020-02-04Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-04CMake: Attempt to fix tests on buildbotSergey Sharybin
An educated guess to put ensure order of static libraries initialization. A bit weird, since OpenImageDenoise should be depending on TBB, but that is likely being ensured by bf_compositor. Linking succeeded on my Intel machine, and blenloader_test was passing when doing manual test on buildbot.
2020-02-04Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-04Codesign: Fix script for WindowsSergey Sharybin
Apparently, there is no os.sync() on Windows.
2020-02-04Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-04Codesign: Possible fix for stamp appearing prior to archiveSergey Sharybin
From looking into builder's logs it seems that stamp file is picked up prior to actual archive: sometimes worker reports missing archive file, from a code path which is only possible if there is a stamp file. Could be something with IO scheduling where bigger file is sent to Samba server after smaller file. Hopefully with this change this will not happen anymore.
2020-02-03Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-03Codesign: Fix wrong logging messageSergey Sharybin
2020-02-03Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-03Codesign: Add codesign for macOS workerSergey Sharybin
Works similarly to Windows configuration where buildbot worker and codesign machines are communicating with each other using network drive.
2020-02-03Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-02-03Buildbot: Specify path to macOS codesignSergey Sharybin
2020-01-31Merge branch 'blender-v2.82-release'Brecht Van Lommel
2020-01-31Fix tests failing on AMD Ryzen, due TBB initialization order issueBrecht Van Lommel
Similar fix as the one we did for the blender executable, see T72015.
2020-01-30Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-30Buildbot: Make archive naming shorter and cleanerSergey Sharybin
It changes name to be blender-<version>-linux64. Since CentOS is used as a base host for builds there is no real need in specifying libc version. Is unlikely anything older could be used anyway. Also make bitness to be the same as windows. It is something what users will read easier.
2020-01-30Buildbot: Allow building on systems without sclSergey Sharybin
Makes it easier to verify changes on local machine without scl before committing changes to repo.
2020-01-30Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-30Buildbot: Enable 16 threads for macOS worker as wellSergey Sharybin
2020-01-29Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-29Buildbot: Increase number of compile thread for Linux BuildbotSergey Sharybin
2020-01-27Fix T63805: remove outdated and unused Linux package spec filesBrecht Van Lommel
These are maintained by the various Linux distributions themselves instead.
2020-01-26CMake: Fix precompiled Boost libraries on LinuxNathan Craddock
When building with precompiled libraries on Linux, CMake used boost libs from the system outside the lib dir. This restricts CMake to use only the libraries from the precompiled libraries. Reviewed By: sergey Differential Revision: https://developer.blender.org/D6659
2020-01-24Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-24Make deps: Force some boost dependenciesSergey Sharybin
Boost could have picked up system-wide libbz2-dev installed and enable this compression in iostreams. Nothing really wrong with this, but it makes it so final Blender binary depends on bz2, which breaks default linker flags. This commit makes it so Boost is not using libraries which we don't need, simplifying linking setup. Differential Revision: https://developer.blender.org/D6668
2020-01-23Merge branch 'blender-v2.82-release'Sergey Sharybin
2020-01-23CMake: Refactor external dependencies handlingSergey Sharybin
This is a more correct fix to the issue Brecht was fixing in D6600. While the fix in that patch worked fine for linking it broke ASAN runtime under some circumstances. For example, `make full debug developer` would compile, but trying to start blender will cause assert failure in ASAN (related on check that ASAN is not running already). Top-level idea: leave it to CMake to keep track of dependency graph. The root of the issue comes to the fact that target like "blender" is configured to use a lot of static libraries coming from Blender sources and to use external static libraries. There is nothing which ensures order between blender's and external libraries. Only order of blender libraries is guaranteed. It was possible that due to a cycle or other circumstances some of blender libraries would have been passed to linker after libraries it uses, causing linker errors. For example, this order will likely fail: libbf_blenfont.a libfreetype6.a libbf_blenfont.a This change makes it so blender libraries are explicitly provided their dependencies to an external libraries, which allows CMake to ensure they are always linked against them. General rule here: if bf_foo depends on an external library it is to be provided to LIBS for bf_foo. For example, if bf_blenkernel depends on opensubdiv then LIBS in blenkernel's CMakeLists.txt is to include OPENSUBDIB_LIBRARIES. The change is made based on searching for used include folders such as OPENSUBDIV_INCLUDE_DIRS and adding corresponding libraries to LIBS ion that CMakeLists.txt. Transitive dependencies are not simplified by this approach, but I am not aware of any downside of this: CMake should be smart enough to simplify them on its side. And even if not, this shouldn't affect linking time. Benefit of not relying on transitive dependencies is that build system is more robust towards future changes. For example, if bf_intern_opensubiv is no longer depends on OPENSUBDIV_LIBRARIES and all such code is moved to bf_blenkernel this will not break linking. The not-so-trivial part is change to blender_add_lib (and its version in Cycles). The complexity is caused by libraries being provided as a single list argument which doesn't allow to use different release and debug libraries on Windows. The idea is: - Have every library prefixed as "optimized" or "debug" if separation is needed (non-prefixed libraries will be considered "generic"). - Loop through libraries passed to function and do simple parsing which will look for "optimized" and "debug" words and specify following library to corresponding category. This isn't something particularly great. Alternative would be to use target_link_libraries() directly, which sounds like more code but which is more explicit and allows to have more flexibility and control comparing to wrapper approach. Tested the following configurations on Linux, macOS and Windows: - make full debug developer - make full release developer - make lite debug developer - make lite release developer NOTE: Linux libraries needs to be compiled with D6641 applied, otherwise, depending on configuration, it's possible to run into duplicated zlib symbols error. Differential Revision: https://developer.blender.org/D6642
2020-01-23Make deps: Fix zlib symbols defined twiceBrecht Van Lommel
We compile zlib as own dependency, but are not informing BLOSC to use it. This leads to zlib symbols defined twice when linking Blender: one set comes from libz.a and another one from libblosc.a. Tested on Linux Debian testing and CentOS 7.5. It is possible that this change on its own will lead to linking errors after libraries are re-compiled, This will be fixed as a dedicated fix to Blender's build system. Reviewed By: brecht, mont29, LazyDodo Differential Revision: https://developer.blender.org/D6641
2020-01-22install_deps.sh: strip trailing punctuation from version numbersCampbell Barton
Encountered this issue when enabling more libraries.