← Back to team overview

kicad-developers team mailing list archive

Re: Can't show 3D models (was: build failure)

 

Yes. This seems to be the case. I've commented on the issue.

I've also commented on
https://gitlab.com/kicad/code/kicad/-/issues/3718 regarding "make
install" failing with OCC from homebrew.

Cheers

On Sat, Mar 6, 2021 at 11:47 PM Ian McInerney <Ian.S.McInerney@xxxxxxxx> wrote:
>
> Hmm, I wonder if this is another instance of a pathing issue. We had a similar bug on Linux that was caused by the 3d viewer looking for the plugin to load OCE files in the wrong location, so it just wouldn't load any files. That was https://gitlab.com/kicad/code/kicad/-/issues/7750, which I have reopened so we can take a look at it again on macOS.
>
> -Ian
>
> On Sat, Mar 6, 2021 at 10:31 PM Jonatan Liljedahl <lijon@xxxxxxxxxxxx> wrote:
>>
>> Hi,
>>
>> I tried the nightly 20210306, and actually no, it shows no models
>> either! See attached screenshots.
>> As you see, I have KICAD6_3DMODEL_DIR =
>> /Users/lijon/Coding/kicad-packages3D, which is where I've cloned the
>> kicad-packages3D gitlab repo. The model is there:
>>
>> % ls -l /Users/lijon/Coding/kicad-packages3D/LED_THT.3dshapes/LED_D3.0mm.wrl
>> -rw-r--r--  1 lijon  staff  36129 Aug 16  2020
>> /Users/lijon/Coding/kicad-packages3D/LED_THT.3dshapes/LED_D3.0mm.wrl
>>
>> On Sat, Mar 6, 2021 at 6:56 PM Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx> wrote:
>> >
>> > Do the release versions work for you?
>> >
>> > Assuming it does, this is almost certainly an issue with dyld and fixup_bundle.
>> >
>> > Let me know if the release/nighties work on your system, and I can walk folks through how to solve it.
>> >
>> >
>> > Adam
>> >
>> > On Sat, Mar 6, 2021, 11:09 AM Jonatan Liljedahl <lijon@xxxxxxxxxxxx> wrote:
>> >>
>> >> If I manually copy libTKVCAF.7.dylib into
>> >> <BUILD_DIR>/kicad/KiCad.app/Contents/PlugIns/3d/ then "make install"
>> >> succeeds.
>> >>
>> >> Also, libTKVCAF and all its friends was copied into
>> >> $(CMAKE_INSTALL_PREFIX)/KiCad.app/Contents/Frameworks/
>> >> so they all exist there.
>> >>
>> >> But still, no 3D models at all are shown.
>> >>
>> >> I tried moving them to KiCad.app/Contents/PlugIns/3d/ but that didn't
>> >> help either.
>> >>
>> >> Ideas?
>> >>
>> >> On Sat, Mar 6, 2021 at 9:47 AM Jonatan Liljedahl <lijon@xxxxxxxxxxxx> wrote:
>> >> >
>> >> > On Fri, Mar 5, 2021 at 8:45 PM Adam Wolf <adamwolf@xxxxxxxxxxxxxxxxxxxx> wrote:
>> >> > >
>> >> > > It is certainly possible that Homebrew is distributing bottles that
>> >> > > are linked a little weird, and you'd be getting the MacOS 10.14
>> >> > > reference from that.  We've had this happen before.
>> >> >
>> >> > Yes, I think this was the case with my OCE install, OCEConfig.cmake
>> >> > referenced 10.14. After unbrewing OCE, I tried to brew install it
>> >> > again but only got a 404. However, after that I reinstalled OCC and it
>> >> > built fine so maybe OCE and OCC was in conflict or something.
>> >> >
>> >> > > Regarding the libTKVCAF error, it looks like something's not quite
>> >> > > right between the library and the fixup_bundle call.
>> >> > >
>> >> > > Does libTKVCAF.7.dylib exist on your system?
>> >> >
>> >> > Yes, that and all other OCC libs exist in
>> >> > /usr/local/Cellar/opencascade/7.5.0_1/lib as well as symlinked into
>> >> > /usr/local/lib (by homebrew).
>> >> >
>> >> > So I assume the problem here is that it's not finding all these libs
>> >> > at runtime? How can I check if this is actually the issue here?
>> >> >
>> >> > During "make install" I get all these warnings:
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKCAF.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKCAF.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKV3d.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKV3d.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKLCAF.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKLCAF.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKCDF.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKCDF.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKBO.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKBO.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKPrim.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKPrim.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKService.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKService.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKMesh.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKMesh.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKShHealing.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKShHealing.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKHLR.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKHLR.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKTopAlgo.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKTopAlgo.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKGeomAlgo.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKGeomAlgo.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKBRep.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKBRep.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKGeomBase.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKGeomBase.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKG3d.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKG3d.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKG2d.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKG2d.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKMath.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKMath.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > -- warning: embedded item does not exist
>> >> > '/Users/lijon/Coding/kicad/build/install/KiCad.app/Contents/PlugIns/3d/libTKernel.7.dylib'
>> >> > --
>> >> > warning: cannot resolve item '@loader_path/libTKernel.7.dylib'
>> >> >
>> >> >   possible problems:
>> >> >     need more directories?
>> >> >     need to use InstallRequiredSystemLibraries?
>> >> >     run in install tree instead of build tree?
>> >> >
>> >> > --
>> >> > /Jonatan
>> >> > http://kymatica.com
>> >>
>> >>
>> >>
>> >> --
>> >> /Jonatan
>> >> http://kymatica.com
>>
>>
>>
>> --
>> /Jonatan
>> http://kymatica.com
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp



-- 
/Jonatan
http://kymatica.com


References