Page 2 of 7

Re: Compile on MacOS

Posted: Tue Dec 03, 2019 11:09 pm
by Dade
u3dreal wrote: Tue Dec 03, 2019 10:51 pm I'll compile it manually to see whats is missing ... freetype is installed via brew
But is it in the list of linked libraries (if it is not directly included in OpenImageIO) ?

Re: Compile on MacOS

Posted: Tue Dec 03, 2019 11:28 pm
by u3dreal
freetype is set to find silently .. :) well see i just compile oiio

Re: Compile on MacOS

Posted: Tue Dec 03, 2019 11:37 pm
by u3dreal
oiio compiled fine with all the flags from the "build_deps" script ... finding freetype of course during configure ... now let's seee :shock:

Re: Compile on MacOS

Posted: Tue Dec 03, 2019 11:42 pm
by u3dreal
This drives me crazy ... another thing missing from oiio looks like dlib ... installed it let's see ..

edit it's libgif :(

why is it disabled in the build_deps script ? :shock:

Code: Select all

Undefined symbols for architecture x86_64:
  "_DGifCloseFile", referenced from:
      OpenImageIO_v1_8::GIFInput::seek

Re: Compile on MacOS

Posted: Wed Dec 04, 2019 1:03 pm
by u3dreal
OK problem was that osx does not permit static linking of external sources mainly into oiio.

Building dynamicaly works. :D
Running 2.3git ;)

I guess for the release we'll have to copy some more .dylibs

Re: Compile on MacOS

Posted: Wed Dec 04, 2019 11:52 pm
by u3dreal
OK i got something running here . Could someone plz point me to the buildphase where the binaries get patch with @rpath ?

I want to add OpenImageIO and OpenImageDenoiser too. fixing them afterwards with install_name_tool is horrible ... or i don't know what i'm doing.
At least not very perdictable :) thanks is advance.

In fact pyluxcore.so and BlendLuxCore seems to work on my other mac where no homebrew is installed. denoise is a bit of a problem. Can't get it to work sp far.

Re: Compile on MacOS

Posted: Thu Dec 05, 2019 12:50 am
by Dade
Do you need to set the rpath of pyluxcore.so (https://github.com/LuxCoreRender/LuxCor ... eLists.txt) ? Or luxcoreui executable (https://github.com/LuxCoreRender/LuxCor ... eLists.txt) ? Or ?

Re: Compile on MacOS

Posted: Thu Dec 05, 2019 12:51 am
by Dade
u3dreal wrote: Wed Dec 04, 2019 11:52 pm denoise is a bit of a problem. Can't get it to work sp far.
The binaries are directly from Intel (https://github.com/OpenImageDenoise/oidn/releases), it is strange, does the denoise command work ?

Re: Compile on MacOS

Posted: Thu Dec 05, 2019 1:03 am
by u3dreal
It works on the build machine but not the the other mac. But when i manually do

Code: Select all

install_name_tool -change bal/bla/bla/libOpenImageDenoiser.0.dylib @rpath/libOpenImageDenoiser.0.dylib denoise
denoise does not find the lib not even on the build mac.

I found the if Apple section ... how might the iodn lib be namend ?? ahh OIDN_LIBRARY ... and ?? libOpenImageIO ? OIIO_LIBRARY ?

Sorry this is all the so new but i thing i got the symbols thing.

Re: Compile on MacOS

Posted: Thu Dec 05, 2019 1:58 am
by u3dreal
OK now i'm confused ... does pyluxcore need to be linked against OpenImageDenoise ??? I guess not since it works without :?