compuphase / kicad-librarian Goto Github PK
View Code? Open in Web Editor NEWA library manager for KiCad, with a template-driven generation of symbols, footprints and 3D models.
License: Apache License 2.0
A library manager for KiCad, with a template-driven generation of symbols, footprints and 3D models.
License: Apache License 2.0
khazakar@dellprecision5510:~/KiCad-Librarian$ LANG=C make -j8 [ 11%] Building CXX object CMakeFiles/kicadlibrarian.dir/pdfreport.cpp.o [ 11%] Building CXX object CMakeFiles/kicadlibrarian.dir/libmngr_frame.cpp.o /home/khazakar/KiCad-Librarian/src/pdfreport.cpp: In member function 'bool PdfReport::FootprintReport(wxWindow*, const wxString&, const wxArrayString&, const wxString&)': /home/khazakar/KiCad-Librarian/src/pdfreport.cpp:807:55: error: no matching function for call to 'wxSortedArrayString::wxSortedArrayString(int (&)(const wxString&, const wxString&))' wxSortedArrayString SortedIndex(CompareFootprint); ^ In file included from /usr/include/wx-3.0/wx/filefn.h:15, from /usr/include/wx-3.0/wx/utils.h:20, from /usr/include/wx-3.0/wx/cursor.h:69, from /usr/include/wx-3.0/wx/event.h:21, from /usr/include/wx-3.0/wx/window.h:18, from /usr/include/wx-3.0/wx/nonownedwnd.h:14, from /usr/include/wx-3.0/wx/toplevel.h:20, from /usr/include/wx-3.0/wx/frame.h:18, from /home/khazakar/KiCad-Librarian/src/pdfreport.h:25, from /home/khazakar/KiCad-Librarian/src/pdfreport.cpp:26: /usr/include/wx-3.0/wx/arrstr.h:385:3: note: candidate: 'wxSortedArrayString::wxSortedArrayString(const wxArrayString&)' wxSortedArrayString(const wxArrayString& array) : wxArrayString(true) ^~~~~~~~~~~~~~~~~~~ /usr/include/wx-3.0/wx/arrstr.h:385:3: note: no known conversion for argument 1 from 'int(const wxString&, const wxString&)' to 'const wxArrayString&' /usr/include/wx-3.0/wx/arrstr.h:383:3: note: candidate: 'wxSortedArrayString::wxSortedArrayString()' wxSortedArrayString() : wxArrayString(true) ^~~~~~~~~~~~~~~~~~~ /usr/include/wx-3.0/wx/arrstr.h:383:3: note: candidate expects 0 arguments, 1 provided /usr/include/wx-3.0/wx/arrstr.h:380:24: note: candidate: 'wxSortedArrayString::wxSortedArrayString(const wxSortedArrayString&)' class WXDLLIMPEXP_BASE wxSortedArrayString : public wxArrayString ^~~~~~~~~~~~~~~~~~~ /usr/include/wx-3.0/wx/arrstr.h:380:24: note: no known conversion for argument 1 from 'int(const wxString&, const wxString&)' to 'const wxSortedArrayString&' /usr/include/wx-3.0/wx/arrstr.h:380:24: note: candidate: 'wxSortedArrayString::wxSortedArrayString(wxSortedArrayString&&)' /usr/include/wx-3.0/wx/arrstr.h:380:24: note: no known conversion for argument 1 from 'int(const wxString&, const wxString&)' to 'wxSortedArrayString&&' make[2]: *** [CMakeFiles/kicadlibrarian.dir/build.make:206: CMakeFiles/kicadlibrarian.dir/pdfreport.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /home/khazakar/KiCad-Librarian/src/libmngr_frame.cpp:4206:68: error: expected ';' at end of member declaration virtual wxDirTraverseResult OnFile(const wxString& /*filename*/) wxOVERRIDE { ^ ; /home/khazakar/KiCad-Librarian/src/libmngr_frame.cpp:4206:70: error: 'wxOVERRIDE' does not name a type; did you mean 'wxEVT_IDLE'? virtual wxDirTraverseResult OnFile(const wxString& /*filename*/) wxOVERRIDE { ^~~~~~~~~~ wxEVT_IDLE /home/khazakar/KiCad-Librarian/src/libmngr_frame.cpp:4209:62: error: expected ';' at end of member declaration virtual wxDirTraverseResult OnDir(const wxString& dirname) wxOVERRIDE { ^ ; /home/khazakar/KiCad-Librarian/src/libmngr_frame.cpp:4209:64: error: 'wxOVERRIDE' does not name a type; did you mean 'wxEVT_IDLE'? virtual wxDirTraverseResult OnDir(const wxString& dirname) wxOVERRIDE { ^~~~~~~~~~ wxEVT_IDLE make[2]: *** [CMakeFiles/kicadlibrarian.dir/build.make:141: CMakeFiles/kicadlibrarian.dir/libmngr_frame.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/kicadlibrarian.dir/all] Error 2 make: *** [Makefile:152: all] Error 2
Hello,
I'm having some issues compiling in Linux. I'm using Debian Stretch and I get the error bellow when I try to compile. In cmake-gui I unchecked USE_CX3D since that library also has compilation errors.
I also tried to run KiCad-Librarian with wine and that somewhat works, although some menus and selection boxes are misplaced or squashed and the 3D viewer does not work.
Any help is appreciated
/home/tavi/src/KiCad-Librarian/src/pdfreport.cpp:804:51: error: no matching function for call to ‘wxSortedArrayString::wxSortedArrayString(int (&)(const wxString&, const wxString&))’
wxSortedArrayString SortedIndex(CompareFootprint);
^
In file included from /usr/include/wx-3.0/wx/filefn.h:15:0,
from /usr/include/wx-3.0/wx/utils.h:20,
from /usr/include/wx-3.0/wx/cursor.h:69,
from /usr/include/wx-3.0/wx/event.h:21,
from /usr/include/wx-3.0/wx/window.h:18,
from /usr/include/wx-3.0/wx/nonownedwnd.h:14,
from /usr/include/wx-3.0/wx/toplevel.h:20,
from /usr/include/wx-3.0/wx/frame.h:18,
from /home/tavi/src/KiCad-Librarian/src/pdfreport.h:25,
from /home/tavi/src/KiCad-Librarian/src/pdfreport.cpp:26:
Hereby requesting feature update to also handle v6 libraries
Please scroll and see 3 screen shots
Screenshot: portrate_27inchMon shows the problem, notice the top right hand corner does not show the top right component selector. It’s not possible to see the right hand combo drop down window because this screen control is OFF SCREEN. It’s not possible to adjust or drag this screen control into view on a windows 10 computer. Using the mouse has no ability to do this; the mouse curser does not change to indicate that the window can be adjusted.
Now scroll down and take a look at the second screen shot of what I see on a landscape monitor...
Screenshot: landscape_27inchMon shows both top right and top left combo drop down windows. This is not possible to see on smaller monitors. Scroll down and see the third screen shot that shows the laptop monitor screen, its luck that I have a 27 inch monitor in landscape; the program would not be usable otherwise.
The following screen shot from the laptop also shows that the right hand combo drop down window is off screen and not accessible.
This problem did not initially manifest itself; it was not until I added another library where the file name path was long that the problem occurred. I noticed the screen repaint itself after I selected the OK button on the main menu - Preferences - Search paths screen.
Using wxmac-3.0.2 and wxpython-3.0.2, I get this compiling error.
Should I be using a different version of wxwidgets?
[ 61%] Building CXX object CMakeFiles/kicadlibrarian.dir/libraryfunctions.cpp.o
/Users/x/dotcad/kicad/tools/KiCad-Librarian/src/libraryfunctions.cpp:1651:33: warning:
comparison of unsigned expression < 0 is always false [-Wtautological-compare]
if (footprint_attr_line < 0 && type != VER_INVALID) {
~~~~~~~~~~~~~~~~~~~ ^ ~
1 warning generated.
[ 66%] Building CXX object CMakeFiles/kicadlibrarian.dir/pdfreport.cpp.o
/Users/x/dotcad/kicad/tools/KiCad-Librarian/src/pdfreport.cpp:804:23: error: no matching
constructor for initialization of 'wxSortedArrayString'
wxSortedArrayString SortedIndex(CompareFootprint);
^ ~~~~~~~~~~~~~~~~
/Users/x/.m3/envs/kicad/include/wx-3.0/wx/arrstr.h:377:24: note: candidate constructor
(the implicit copy constructor) not viable: no known conversion from 'int (const wxString &,
const wxString &)' to 'const wxSortedArrayString' for 1st argument
class WXDLLIMPEXP_BASE wxSortedArrayString : public wxArrayString
^
/Users/x/.m3/envs/kicad/include/wx-3.0/wx/arrstr.h:382:3: note: candidate constructor not
viable: no known conversion from 'int (const wxString &, const wxString &)' to
'const wxArrayString' for 1st argument
wxSortedArrayString(const wxArrayString& array) : wxArrayString(true)
^
/Users/x/.m3/envs/kicad/include/wx-3.0/wx/arrstr.h:380:3: note: candidate constructor not
viable: requires 0 arguments, but 1 was provided
wxSortedArrayString() : wxArrayString(true)
^
1 error generated.
make[2]: *** [CMakeFiles/kicadlibrarian.dir/pdfreport.cpp.o] Error 1
make[1]: *** [CMakeFiles/kicadlibrarian.dir/all] Error 2
make: *** [all] Error 2
With over 200 changeable folders each maybe with sub-folders to browse through trying to maintain the search paths is tedious! Please KiCad Librarian should be able to do this with one click.
The mime file miss a namespaceURI. This caused the libreoffice installation to stop.
File:
/usr/share/mime/packages/kicadlibrarian.xml
Solution:
Modified the line:
to
A command to remove any duplicate or incomplete symbols or footprints that may cause errors in Kicad.
It should be possible to select multiple symbols or footprints and click delete. The same could be implemented for copy and move.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.