Please can somebody make an ebuild for mandelbulber-opencl-1.21-2.orig? I am using mandelbulber-1.21.1 from the tree. It works ok but slow. With opencl I can have more speed because it'll use the GPU and the CPU for rendering. Thanks a lot in advance. Gerard.
Where would we find the HOMEPAGE of that software?
It seems to have -DCLSUPPORT but the library linkage needs to be provided by other means.
LDFLAGS="-lOpenCL" CXXFLAGS="-DCLSUPPORT" ebuild mandelbulber-1.21.1.ebuild compile That seems to work so it shouldn't be hard to implement.
Created attachment 387212 [details, diff] mandelbulber-1.21.1-opencl.patch It bit of a hack, but then makefiles/objects.mk already is a hack that desperately needs pkg-config love.
(In reply to Jeroen Roovers from comment #4) > Created attachment 387212 [details, diff] [details, diff] > mandelbulber-1.21.1-opencl.patch It does complain at run-time that it wants /usr/share/mandelbulber/cl/cl_engine_*.cl, depending on what I select after [OpenCL Enable]. Apparently those files are not bundled?
Thanks for taking time to look into this Jeroen. I tried to compile it myself from sources from sourforce.net after applying the same patches (by hand) found in the 1.21.1 ebuild files but it failed with the message that "ld" exited with 1. I am no coder so am at a loss how to continue. Gerard.
(In reply to Jeroen Roovers from comment #5) > (In reply to Jeroen Roovers from comment #4) > > Created attachment 387212 [details, diff] [details, diff] [details, diff] > > mandelbulber-1.21.1-opencl.patch > > It does complain at run-time that it wants > /usr/share/mandelbulber/cl/cl_engine_*.cl, depending on what I select after > [OpenCL Enable]. Apparently those files are not bundled? Those files are in /usr/share which gets installed. Gerard.
(In reply to Gerard van Vuuren from comment #7) > > /usr/share/mandelbulber/cl/cl_engine_*.cl > Those files are in /usr/share which gets installed. No, they are not.
ikke@localhost /mnt/gentoo/usr/share/mandelbulber $ ls ./cl cl_DOF.cl cl_engine_noDE.cl cl_kaleidoscopic.cl cl_mandelbulb2.cl cl_quaternionInit.cl cl_SSAO.cl cl_formulaBegin.cl cl_kaleidoscopicInit.cl cl_mandelbulb2Init.cl cl_xenodreambuie.cl cl_distance.cl cl_formulaBeginJulia.cl cl_mandelbox.cl cl_mandelbulbInit.cl cl_xenodreambuieInit.cl cl_distance_deltaDE.cl cl_formulaEnd.cl cl_mandelboxInit.cl cl_mengersponge.cl mandelbulber_cl_data.h cl_engine.cl cl_formulaFor.cl cl_mandelbox_full.cl cl_mengerspongeInit.cl cl_engine_fast.cl cl_hypercomplex.cl cl_mandelbox_fullInit.cl cl_primitives.cl cl_engine_full.cl cl_hypercomplexInit.cl cl_mandelbulb.cl cl_quaternion.cl ikke@localhost /mnt/gentoo/usr/share/mandelbulber $ I have a separate instance of Gentoo Linux for experiments that's why the /mnt/gentoo folder. These files got there trying to use the "install" file that's in the the d/led files. But the main executable errors out with "ld" error 1. Thanks again for your efforts. Gerard.
So you're basically confusing your manual install with the ebuild I proposed. Your manual install has an unspecified linking problem and the ebuild I proposed doesn't know where to put the files in /usr/share/man. Since it's virtually impossible to determine what your manual install looks like, let's focus on the ebuild, and getting that right.
(In reply to Jeroen Roovers from comment #10) > ebuild I proposed doesn't know where to put the files in /usr/share/man /usr/share/man => /usr/share/mandelbulber Additionally, the cl_engine_* files (that src/cl_support.cpp requires) simply aren't distributed in the SRC_URI that we have.
I got the source from this URL: http://sourceforge.net/projects/mandelbulber/files/ Sorry for not having been more explicit. Gerard.
http://sourceforge.net/projects/mandelbulber/files/mandelbulber-opencl-1.21-2-orig.tar.gz is the complete SRC-URI. Gerard.
Fixed in 2.12-r1.