SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
yes boost is becoming a problem with 3rd party / after factory installed apps, my qbittorrent went to crap via libtorrent-rasterbar because boost changed its API. My fix was I just (just now as I am writing this , now finished re-installing) reinstalled slack current dvd from a alien bob iso I have saved. That means it is not as current as currect now is, and No more updates for me until libtorrent-rasterbar catches up with boost.
Because I do not know network programming, and don't really want to try and put myself through a crash corse to (try and) fix libtorrent-rasterbar source code.
Did you remove openimageio before installing opencolorio? Opencolorio picks openimageio up as a dependency. I use the Slackbuild for the Binary version of Blender and Blender 2.79b from blender.org. I got tired of dealing with the dependencies and the binary supplied by Blender has CUDA support so I don't have to deal with NVIDIA's CUDA shenanigans.
into the cmake configuration options of Blender.SlackBuild. I don't think the position in the list is important but I made it the line immediately before "-DCMAKE_INSTALL_PREFIX=/usr ".
I had no problem building opencolorio. The optional openimageio dependency is not specified as required in the default opencolorio.info file and I never build it with that dependency myself. If you're having openimageio related problems when building opencolorio, I suggest you remove the openimageio dependency - unless you know you have a specific use for it.
What I am concerned about, however, is that...
Is it really the best to add a cmake flag rather than patch blender's own build files themselves?
Sorry, I don't agree with that logic. A cmake flag is the least intrusive way to configure the build to suit your environment (in this case, -current with boost & gcc versions that were probably not available when the existing Blender version was released). The whole point of cmake flags is to use them (via default settings or builder interaction) to build the software (Blender here) the way you want it. They are just configuration options - like "./configure --prefix=/usr" (which becomes "cmake -DCMAKE_INSTALL_PREFIX=/usr").
In fact, the next update to the SlackBuild targets CUDA support and uses a cmake flag to enable it. Is that really the best way? An alternative is to patch the source code to enable it by default. I don't think it makes sense to do that when the software already provides the option (using cmake flags) to enable it if you want it.
Quote:
Originally Posted by Lockywolf
Although I guess this issue has been fixed in the blender upstream.
I'm sure it will be fixed for the next Blender version but highly unlikely they'll do anything for the existing version.
I am not trying to be critical, I genuinely asking .
I understand the difference between 'configuring for my system' and 'patching the base source'.
Therefore I don't see anything wrong with saying "--prefix=/usr". It's only that on the first glance it seemed to me that this is more of a build system bug than a configuration issue.
The only benefit of a patch over a cmake option is the ability to send this patch to the Blender developers.
Frankly, I just thought that they could introduce some sort of a build-time variable like Blender_BOOST_FLAGS, and infer it somehow automatically during the configuration process. But in terms of Slackware, obviously, a configure option is more manageable.
Anyway, I still don't manage to run blender (althought it compiles now):
Code:
lockywolf@delllaptop:~$ blender
found bundled python: /usr/share/blender/2.79/python
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fce2003cb40 (most recent call first):
Aborted
lockywolf@delllaptop:~$
I tried setting PYTHONHOME to bothe /usr/lib64/python3.7 and /usr/lib64/python2.7, but it seems that I have screwed my system more than I expected.
Anyway, I still don't manage to run blender (althought it compiles now):
Code:
lockywolf@delllaptop:~$ blender
found bundled python: /usr/share/blender/2.79/python
Fatal Python error: initfsencoding: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007fce2003cb40 (most recent call first):
Aborted
lockywolf@delllaptop:~$
I tried setting PYTHONHOME to bothe /usr/lib64/python3.7 and /usr/lib64/python2.7, but it seems that I have screwed my system more than I expected.
I think you're using an old version of the SlackBuild. When it was updated for python3.7, the bundled python option was turned off (via a cmake flag ) but your error points to the bundled version. Also, all the mentions of python3.6 (which is also well out of date) are concerning. It looks like you have a mixture of python3.6 & python3.7 apps on your system which you'll have to resolve somehow.
The files, however, are there. I suspect that there may be some issue with either the slackbuild or sbopkg, which makes them keep the old files in the '/usr/share/blender/2.79/python/'
Also, I think that checking whether to use built-in python by the presence of the '/usr/share/blender/2.79/python/' directory is not the best choice. I'd prefer a parameter in a config file, but this plea probably should be addressed to the blender developers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.