Commit Graph

31 Commits

Author SHA1 Message Date
Campbell Barton 39851db1fa Linux: remove historic bourne shell argument expansion workaround
This is a history workaround not needed for modern shells
(fixed with bourne shell SRV3, 1986).

This isn't used in other wrappers (snap package) for e.g.
2023-06-22 13:17:28 +10:00
Brecht Van Lommel 17fa168a3d Linux: add launcher script to fix issue launching on Steam
The steam environment sets LD_LIBRARY_PATH with a libtbb.so.2 that is
incompatible with our own. This wrapper scripts gives our own library
priority.

There is a more modern "Steam Linux Runtime" that can be used instead of
the "LD_LIBRARY_PATH Steam Runtime" and which launches Blender, but it
fails to detect GPU compute libraries. So that was not an option.

Ref #107385

Pull Request: https://projects.blender.org/blender/blender/pulls/109169
2023-06-21 14:49:27 +02:00
Sergey Sharybin f391e8f316 Linux: Move Mesa software OpenGL libraries to sub-directory
Allows to put libraries which are always needed by Blender into the
lib/ folder and not worry about OpenGL libraries picked up from there.

Currently no functional changes as we do not yet have dynamic libraries
which we load at startup. It allows to use direct linking of oneAPI
Cycles device (see D15397), also it is something which would need to
happen to support USD/Hydra/TBB compiler as dynamic libraries in the
future.

Differential Revision: https://developer.blender.org/D15403
2022-07-08 15:44:06 +02:00
Campbell Barton ef9269bd62 Thumbnails: refactor extraction to use one code-path for all platforms
Thumbnail extraction now shares code between Linux/Windows,
allowing thumbnails from Zstd compressed blend files to be extracted.

The main logic is placed in blendthumb_extract.cc and is built as static
library. For windows there is DLL which is registered during blender
install and which then reads and generates thumbnails.

For other platforms there is blender-thumbnailer executable file which
takes blend file as an input and generates PNG file. As a result
Python script blender-thumbnailer.py is no longer needed.

The thumbnail extractor shares the same code-path as Blenders file
reading, so there is no need to duplicate any file reading logic.
This means reading compressed blend files is supported (broken since
the recent move Zstd compression - D5799).

This resolves T63736.

Contributors:

- @alausic original patch.
- @LazyDodo windows fixes/support.
- @campbellbarton general fixes/update.
- @lukasstockner97 Zstd support.

Reviewed By: sybren, mont29, LazyDodo, campbellbarton

Ref D6408
2021-10-20 10:31:30 +11:00
Campbell Barton bdf8ad6c4e Cleanup: spelling 2017-04-27 21:41:03 +10:00
Campbell Barton 6e131ce075 Call to python3 for stand-alone scripts
Needed since Debian & FreeBSD both move away from keeping a synlink to `python`.
2016-07-26 05:18:00 +10:00
Campbell Barton 709a31da93 Simplify thumbnail blend parser
No need to convert the BHead code to an int, just compare the bytes.
2015-08-17 12:37:38 +10:00
Campbell Barton bf010c4a15 Cleanup: pep8 2015-06-07 17:28:02 +10:00
Campbell Barton d3b9457991 Code cleanup: style/warnings 2014-02-28 11:04:15 +11:00
IRIE Shinsuke bf2f6d6161 blender-thumbnailer.py: Fix GVFS support not working with Python 3
also update doc string.
2014-02-19 15:32:54 +11:00
Campbell Barton 995d4d803a Maintenance: Shebang lines fix for some python scripts 2013-11-18 20:41:22 +11:00
Campbell Barton 0177d555c7 patch [#37229] Save process slot in blender-softwaregl script
from Lawrence D'Oliveiro (ldo)
2013-10-28 23:48:53 +00:00
Sergey Sharybin a3bbae9892 Workaround for half-transparent windows when running blender-softwaregl
and compiz effects are enabled.

Thanks to Nicholas Bishop for pointing in possible solution of this issue.
2011-11-15 07:28:18 +00:00
Guillermo S. Romero 12f876dcd1 SVN maintenance. 2011-10-25 13:44:35 +00:00
Campbell Barton f149e49dff - fix numpad comma replacement which was broken since unicode input was added.
- add blender-softwaregl wrapper script for unix
- quiet compiler warning.
2011-10-25 13:13:02 +00:00
Campbell Barton 4a04f72069 remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n 2011-10-23 17:52:20 +00:00
Campbell Barton 78a8f8a4b1 - remove release/bin/.blender/.bfont.ttf, we have ./release/datafiles/bfont.ttf already, and its not used anymore.
- removed scons WITH_BF_FREETYPE
2011-10-21 03:16:01 +00:00
Campbell Barton d132b08f33 move fonts/ and locale/ dirs into release/datafiles, since blender wasn't finding them in their current location and so to test international characters you had to 'make install'.
updated scons/cmake/translation-scripts.
2011-10-21 03:00:28 +00:00
Campbell Barton e42146c1ec remove .Blanguages, its not used anymore 2011-10-02 22:28:49 +00:00
Sergey Sharybin 3f5b15c512 i18n: update font to solve squares in arabic glyphs recently reported in ML 2011-09-29 10:08:45 +00:00
Sergey Sharybin b3c6a2383a Tweak for unifont: use droid with glyphs from default bfont.
Would make interface look like it used to be before garlic merge until
we're working on making font configurable.
2011-09-21 13:04:58 +00:00
Sergey Sharybin cd131098ab i18n: update droid font 2011-09-18 08:40:37 +00:00
Sergey Sharybin 66a679d71f i18n: replace gnu unifont with droid sans font
- Static variables can be initialized with constants only.
- Removed bunifont.ttf.c from datafiles -- it's not actually a
  data file. Unicode font loading stuff is not in blenkernel/font.c
- Allocate as much memory for unzipped data as it's needed.
  Default read chunk is 512Kb.
- Fixed regression (or just a typo) in setting utf locale.
- Default locale set to en_US:en works fine now.
- Commented put Nepali language in user preferences -- it's
  not supported by current droid font and imo it's better to
  have nice font for languages we actually have translation for
  rather than allowing to choose more languages in user preferences.
2011-09-17 20:50:22 +00:00
Xiao Xiangquan 8454f2b8b3 complete the language-select feature 2011-07-25 17:05:43 +00:00
Xiao Xiangquan 40981d872f merge from trunk r37405 2011-06-15 08:28:56 +00:00
Campbell Barton 30552f9f46 patch [#25972] blender-thumbnailer.py: GVFS support
from Shinsuke Irie (irie) with some minor edits.

Shinsuke's description from the tracker:
---
I have implemented GVFS framework support of blender-thumbnailer.py which allows some file managers like Nautilus and Thunar to show thumbnails in trash or network directories. If Python's gio module is available, the thumbnailer uses it to access to filesystems mounted via GVFS. This change shouldn't affect desktop environments other than GNOME and XFCE.

A function gvfs_open() in this patch is defined to solve a stupid incompatibility between Python file object and GIO Seekable object.

On Ubuntu 10.10, I confirmed thumbnails can be generated for file://, trash://, sftp://, and smb://.
2011-02-09 02:09:30 +00:00
Campbell Barton 48a8cba7a9 fix [#25948] blender-thumbnailer.py does incorrect checking for the number of arguments
noticed by Shinsuke Irie (irie)
2011-02-06 06:54:19 +00:00
Campbell Barton 736a7b7a22 pep8 cleanup 2011-02-04 09:27:25 +00:00
Campbell Barton 039bb7812f bugfix [#25742] blender-thumbnailer.py doesn't work with python 3.1 2011-01-20 21:02:42 +00:00
Campbell Barton aaf328dc78 remove redundant []'s for list comprehension's, py2.4+ supports this. 2010-09-19 07:07:14 +00:00
Campbell Barton bed40ed8e3 move directories:
dlltool --> build_files/make/dlltool
 bin --> release/bin
 
Since dlltool is only used make + mingw and ./bin is misleading because it would seem the blender binary would be copied there, but its just used for home directory files.

updated scons/cmake/make
2010-07-26 11:47:33 +00:00