← Back to team overview

kicad-developers team mailing list archive

Re: 3dmodel display doesn't work

 

2017-04-16 2:16 GMT+02:00 Cirilo Bernardo <cirilo.bernardo@xxxxxxxxx>:
> On Sat, Apr 15, 2017 at 9:52 AM, Nick Østergaard <oe.nick@xxxxxxxxx> wrote:
>> I had a look at this today, it seems to be related to the LIBDIR
>> patch. I don't understand the ldconfig mechanism on ubuntu. To me this
>> simply loooks like a packaging issue.
>>
>> By sporadically googleing it seems that /usr/lib/x86_64-linux-gnu is
>> indeed the correct path for ubuntu. Maybe something has to be done in
>> the debian package to actually run ldconfig when installing. I don't
>> really know.
>>
>
> ldconfig is not really involved here since the plugins are not automatically
> loaded by the linker loader.  The problem is in
> 3d-viewer/3d_cache/3d_plugin_manager.cpp in loadPlugins(). See
> line 136 (wxStandardPaths::Get().GetPluginsDir()) and then lines
> 147..149.  The challenge is to ensure that we search the correct path
> on a multiarch system like Ubuntu. Perhaps we should rely on cmake
> rather than wxWidgets to determine the default root path of these
> plugins and cmake can pass this information via a header file.
>
> - Cirilo

Hmm, ok, that makes sense then. Actually I had in my mind that it was
looking relative from libkicad_3dsg.so for
kicad/plugins/3d/libs3d_plugin_*.so.

Is this a solution that could work? I think it may be more portable,
but I don't know if that is something that can be done in an elegant
and portable way. It might indeed be easier to just use a define or
header file provided by cmake.

>
>> 2017-04-15 2:37 GMT+02:00 Cirilo Bernardo <cirilo.bernardo@xxxxxxxxx>:
>>> The list looks OK but the plugins are not being found.  I will check the
>>> default search paths.
>>>
>>> - Cirilo
>>>
>>> On Sat, Apr 15, 2017 at 12:07 AM, Botond Kiss <bkb@xxxxxx> wrote:
>>>> Hi Cirilio,
>>>> I have the default daily installation from ppa:js-reynaud/ppa-kicad ubuntu
>>>> 16.04
>>>> These are the installed files:
>>>>
>>>> /.
>>>> /etc
>>>> /etc/profile.d
>>>> /etc/profile.d/kicad-env.sh
>>>> /usr
>>>> /usr/bin
>>>> /usr/bin/_cvpcb.kiface
>>>> /usr/bin/_eeschema.kiface
>>>> /usr/bin/_gerbview.kiface
>>>> /usr/bin/_pcb_calculator.kiface
>>>> /usr/bin/_pcbnew.kiface
>>>> /usr/bin/_pl_editor.kiface
>>>> /usr/bin/bitmap2component
>>>> /usr/bin/dxf2idf
>>>> /usr/bin/eeschema
>>>> /usr/bin/gerbview
>>>> /usr/bin/idf2vrml
>>>> /usr/bin/idfcyl
>>>> /usr/bin/idfrect
>>>> /usr/bin/kicad
>>>> /usr/bin/kicad-ogltest
>>>> /usr/bin/kicad2step
>>>> /usr/bin/pcb_calculator
>>>> /usr/bin/pcbnew
>>>> /usr/bin/pl_editor
>>>> /usr/lib
>>>> /usr/lib/python2.7
>>>> /usr/lib/python2.7/dist-packages
>>>> /usr/lib/python2.7/dist-packages/_pcbnew.so
>>>> /usr/lib/python2.7/dist-packages/pcbnew.py
>>>> /usr/lib/x86_64-linux-gnu
>>>> /usr/lib/x86_64-linux-gnu/kicad
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/3d
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/3d/libs3d_plugin_idf.so
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/3d/libs3d_plugin_oce.so
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/3d/libs3d_plugin_vrml.so
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/bom2csv.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/bom2grouped_csv.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/bom_with_title_block_2_csv.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/netlist_form_OrcadPcb2.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/netlist_form_cadstar-RINF.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/netlist_form_cadstar.xsl
>>>> /usr/lib/x86_64-linux-gnu/kicad/plugins/netlist_form_pads-pcb.xsl
>>>> /usr/lib/x86_64-linux-gnu/libkicad_3dsg.so
>>>> /usr/lib/x86_64-linux-gnu/libkicad_3dsg.so.2.0.0
>>>> /usr/share
>>>> /usr/share/applications
>>>> /usr/share/applications/bitmap2component.desktop
>>>> /usr/share/applications/eeschema.desktop
>>>> /usr/share/applications/gerbview.desktop
>>>> /usr/share/applications/kicad.desktop
>>>> /usr/share/applications/pcbcalculator.desktop
>>>> /usr/share/applications/pcbnew.desktop
>>>> /usr/share/doc
>>>> /usr/share/doc/kicad
>>>> /usr/share/doc/kicad/INSTALL.txt.gz
>>>> /usr/share/doc/kicad/changelog.gz
>>>> /usr/share/doc/kicad/copyright
>>>> /usr/share/doc/kicad/scripts
>>>> /usr/share/doc/kicad/scripts/bom-in-python
>>>> /usr/share/doc/kicad/scripts/bom-in-python/README-bom.txt
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_grouped_by_value_with_fp.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_csv_sorted_by_ref.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_by_value.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_grouped_by_value.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_html_with_advanced_grouping.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/bom_sorted_by_ref.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/kicad_netlist_reader.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/round_robin.py
>>>> /usr/share/doc/kicad/scripts/bom-in-python/round_value_robin.py
>>>> /usr/share/doc/kicad/scripts/ddr3_length_match.py
>>>> /usr/share/doc/kicad/scripts/lib_convert.py
>>>> /usr/share/doc/kicad/scripts/library-repos-install.bat.gz
>>>> /usr/share/doc/kicad/scripts/library-repos-install.sh.gz
>>>> /usr/share/doc/kicad/scripts/mk_mime_icons.py
>>>> /usr/share/doc/kicad/scripts/test_kicad_plugin.py
>>>> /usr/share/doc/kicad/scripts/test_plugin.py
>>>> /usr/share/icons
>>>> /usr/share/icons/hicolor
>>>> /usr/share/icons/hicolor/128x128
>>>> /usr/share/icons/hicolor/128x128/apps
>>>> /usr/share/icons/hicolor/128x128/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/128x128/apps/eeschema.png
>>>> /usr/share/icons/hicolor/128x128/apps/gerbview.png
>>>> /usr/share/icons/hicolor/128x128/apps/kicad.png
>>>> /usr/share/icons/hicolor/128x128/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/128x128/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/128x128/mimetypes
>>>> /usr/share/icons/hicolor/128x128/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/128x128/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/128x128/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/16x16
>>>> /usr/share/icons/hicolor/16x16/apps
>>>> /usr/share/icons/hicolor/16x16/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/16x16/apps/eeschema.png
>>>> /usr/share/icons/hicolor/16x16/apps/gerbview.png
>>>> /usr/share/icons/hicolor/16x16/apps/kicad.png
>>>> /usr/share/icons/hicolor/16x16/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/16x16/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/16x16/mimetypes
>>>> /usr/share/icons/hicolor/16x16/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/16x16/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/16x16/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/22x22
>>>> /usr/share/icons/hicolor/22x22/apps
>>>> /usr/share/icons/hicolor/22x22/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/22x22/apps/eeschema.png
>>>> /usr/share/icons/hicolor/22x22/apps/gerbview.png
>>>> /usr/share/icons/hicolor/22x22/apps/kicad.png
>>>> /usr/share/icons/hicolor/22x22/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/22x22/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/22x22/mimetypes
>>>> /usr/share/icons/hicolor/22x22/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/22x22/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/22x22/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/24x24
>>>> /usr/share/icons/hicolor/24x24/apps
>>>> /usr/share/icons/hicolor/24x24/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/24x24/apps/eeschema.png
>>>> /usr/share/icons/hicolor/24x24/apps/gerbview.png
>>>> /usr/share/icons/hicolor/24x24/apps/kicad.png
>>>> /usr/share/icons/hicolor/24x24/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/24x24/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/24x24/mimetypes
>>>> /usr/share/icons/hicolor/24x24/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/24x24/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/24x24/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/32x32
>>>> /usr/share/icons/hicolor/32x32/apps
>>>> /usr/share/icons/hicolor/32x32/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/32x32/apps/eeschema.png
>>>> /usr/share/icons/hicolor/32x32/apps/gerbview.png
>>>> /usr/share/icons/hicolor/32x32/apps/kicad.png
>>>> /usr/share/icons/hicolor/32x32/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/32x32/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/32x32/mimetypes
>>>> /usr/share/icons/hicolor/32x32/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/32x32/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/32x32/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/48x48
>>>> /usr/share/icons/hicolor/48x48/apps
>>>> /usr/share/icons/hicolor/48x48/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/48x48/apps/eeschema.png
>>>> /usr/share/icons/hicolor/48x48/apps/gerbview.png
>>>> /usr/share/icons/hicolor/48x48/apps/kicad.png
>>>> /usr/share/icons/hicolor/48x48/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/48x48/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/48x48/mimetypes
>>>> /usr/share/icons/hicolor/48x48/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/48x48/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/48x48/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/64x64
>>>> /usr/share/icons/hicolor/64x64/apps
>>>> /usr/share/icons/hicolor/64x64/apps/bitmap2component.png
>>>> /usr/share/icons/hicolor/64x64/apps/eeschema.png
>>>> /usr/share/icons/hicolor/64x64/apps/gerbview.png
>>>> /usr/share/icons/hicolor/64x64/apps/kicad.png
>>>> /usr/share/icons/hicolor/64x64/apps/pcbcalculator.png
>>>> /usr/share/icons/hicolor/64x64/apps/pcbnew.png
>>>> /usr/share/icons/hicolor/64x64/mimetypes
>>>> /usr/share/icons/hicolor/64x64/mimetypes/application-x-kicad-pcb.png
>>>> /usr/share/icons/hicolor/64x64/mimetypes/application-x-kicad-project.png
>>>> /usr/share/icons/hicolor/64x64/mimetypes/application-x-kicad-schematic.png
>>>> /usr/share/icons/hicolor/scalable
>>>> /usr/share/icons/hicolor/scalable/apps
>>>> /usr/share/icons/hicolor/scalable/apps/bitmap2component.svg
>>>> /usr/share/icons/hicolor/scalable/apps/eeschema.svg
>>>> /usr/share/icons/hicolor/scalable/apps/gerbview.svg
>>>> /usr/share/icons/hicolor/scalable/apps/kicad.svg
>>>> /usr/share/icons/hicolor/scalable/apps/pcbcalculator.svg
>>>> /usr/share/icons/hicolor/scalable/apps/pcbnew.svg
>>>> /usr/share/icons/hicolor/scalable/mimetypes
>>>> /usr/share/icons/hicolor/scalable/mimetypes/application-x-kicad-pcb.svg
>>>> /usr/share/icons/hicolor/scalable/mimetypes/application-x-kicad-project.svg
>>>> /usr/share/icons/hicolor/scalable/mimetypes/application-x-kicad-schematic.svg
>>>> /usr/share/kicad
>>>> /usr/share/kicad/scripting
>>>> /usr/share/kicad/scripting/kicad_pyshell
>>>> /usr/share/kicad/scripting/kicad_pyshell/__init__.py
>>>> /usr/share/kicad/scripting/plugins
>>>> /usr/share/kicad/scripting/plugins/FPC_wizard.py
>>>> /usr/share/kicad/scripting/plugins/FootprintWizardBase.py
>>>> /usr/share/kicad/scripting/plugins/PadArray.py
>>>> /usr/share/kicad/scripting/plugins/__init__.py
>>>> /usr/share/kicad/scripting/plugins/bga_wizard.py
>>>> /usr/share/kicad/scripting/plugins/circular_pad_array_wizard.py
>>>> /usr/share/kicad/scripting/plugins/microMatch_connectors.py
>>>> /usr/share/kicad/scripting/plugins/qfn_wizard.py
>>>> /usr/share/kicad/scripting/plugins/qfp_wizard.py
>>>> /usr/share/kicad/scripting/plugins/qrcode.py
>>>> /usr/share/kicad/scripting/plugins/qrcode_footprint_wizard.py
>>>> /usr/share/kicad/scripting/plugins/sdip_wizard.py
>>>> /usr/share/kicad/scripting/plugins/touch_slider_wizard.py
>>>> /usr/share/kicad/scripting/plugins/uss39_barcode.py
>>>> /usr/share/kicad/scripting/plugins/zip_wizard.py
>>>> /usr/share/kicad/template
>>>> /usr/share/kicad/template/gost_landscape.kicad_wks
>>>> /usr/share/kicad/template/gost_portrait.kicad_wks
>>>> /usr/share/kicad/template/kicad.pro
>>>> /usr/share/kicad/template/pagelayout_default.kicad_wks
>>>> /usr/share/kicad/template/pagelayout_logo.kicad_wks
>>>> /usr/share/menu
>>>> /usr/share/menu/kicad
>>>> /usr/share/mime
>>>> /usr/share/mime/packages
>>>> /usr/share/mime/packages/kicad-gerbers.xml
>>>> /usr/share/mime/packages/kicad-kicad.xml
>>>>
>>>>
>>>>
>>>>
>>>> On 2017-04-15 01:29, Cirilo Bernardo wrote:
>>>>>
>>>>> It looks to me like no plugins have been found. Did you click on the
>>>>> file extension filter to see what extensions are recognized by the
>>>>> current set of plugins? If the plugins are installed but not found,
>>>>> let us know where they are installed and where the kicad executable
>>>>> is installed.
>>>>>
>>>>> - Cirilo
>>>>>
>>>>> On Fri, Apr 14, 2017 at 12:55 PM, Botond Kiss <bkb@xxxxxx> wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I don't see anything (stl os wrl files) in the Select 3d Model window.
>>>>>> The Footprint Properties -> 3D Settings window shows only the footprint
>>>>>> but
>>>>>> not the model
>>>>>> pcbnew-> 3D viewer shows only the board without any model.
>>>>>> 3D search path configuration window got an error message even if the path
>>>>>> is
>>>>>> set and it is correct:
>>>>>> 3D search path list is empty; continue to write empty file?
>>>>>> This is what happens:
>>>>>> https://www.youtube.com/watch?v=cAGMkKCXlVg
>>>>>>
>>>>>> Best wishes:
>>>>>> Dan
>>>>>>
>>>>>> I've reported at https://bugs.launchpad.net/kicad/+bug/1682812
>>>>>>
>>>>>> ----------------------------VERSION INFO -------------------
>>>>>> Application: kicad
>>>>>> Version: no-vcs-found-c4ea542~58~ubuntu16.04.1, release build
>>>>>> Libraries: wxWidgets 3.0.2
>>>>>>             libcurl/7.47.0 OpenSSL/1.0.2g zlib/1.2.8 libidn/1.32
>>>>>> librtmp/2.3
>>>>>> Platform: Linux 4.8.0-46-generic x86_64, 64 bit, Little endian, wxGTK
>>>>>> - Build Info -
>>>>>> wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
>>>>>> Boost: 1.58.0
>>>>>> Curl: 7.47.0
>>>>>> KiCad - Compiler: GCC 5.4.0 with C++ ABI 1009
>>>>>>          Settings: USE_WX_GRAPHICS_CONTEXT=OFF
>>>>>>                    USE_WX_OVERLAY=OFF
>>>>>>                    KICAD_SCRIPTING=ON
>>>>>>                    KICAD_SCRIPTING_MODULES=ON
>>>>>>                    KICAD_SCRIPTING_WXPYTHON=ON
>>>>>>                    KICAD_SCRIPTING_ACTION_MENU=ON
>>>>>>                    BUILD_GITHUB_PLUGIN=ON
>>>>>>                    KICAD_USE_OCE=ON
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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


References