3D plugin library link file installed in wrong path

Bug #1680229 reported by Wayne Stambaugh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Unknown

Bug Description

On windows builds with mingw, the 3D plugin library link file libkicad_3dsg.dll.a gets installed in the ${CMAKE_INSTALL_PREFIX}/bin path instead of ${CMAKE_INSTALL_PREFIX}/lib. This is incorrect and will cause link errors if someone should attempt to link against it. The actual library file libkicad_3dsg.dll is installed in the correct path ${CMAKE_INSTALL_PREFIX}}/bin. This applies to both mingw32 and mingw64 builds. I have not checked the install path for other platforms.

Application: kicad
Version: (2017-04-04 revision 36606ceeb)-master, debug build
Libraries: wxWidgets 3.0.2
           libcurl/7.53.1 OpenSSL/1.0.2k zlib/1.2.11 libssh2/1.8.0 nghttp2/1.19.0 librtmp/2.3
Platform: Windows 8 (build 9200), 64-bit edition, 64 bit, Little endian, wxMSW
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,compatible with 2.8)
Boost: 1.60.0
Curl: 7.53.1
KiCad - Compiler: GCC 6.3.0 with C++ ABI 1010
        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

tags: added: windows
tags: added: cmake
Revision history for this message
Jeff Young (jeyjey) wrote :

Is this still an issue?

Revision history for this message
Nick Østergaard (nickoe) wrote :

Well, from the build log on windows the dll.a seems to be installed to bin together with the .dll, but so is the dll.a for libeeschema. I don't really think this is a error as such.

Maybe we should just not install the dll.a files at all, at least not by default. I don't think they are needed to run kicad.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

The dll.a files are used by the mingw linker when linking dynamic libraries. I don't think we need to package them since we are not installing the headers for users to compile and link against these libraries. If we did, the correct install path would be lib/ not bin/. Would our windows package developer please remove them from the installer?

Changed in kicad:
status: New → Triaged
importance: Undecided → Low
tags: added: packaging
Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

KiCad bug tracker has moved to Gitlab. This report is now available here: https://gitlab.com/kicad/code/kicad/-/issues/1842

Changed in kicad:
status: Triaged → Expired
Changed in kicad:
importance: Low → Unknown
status: Expired → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.