Lbr2svg for converting Eagle Part to Fritzing SVG's

Can somebody please supply more details of the metadata database.
The documentation gives an example which it says can be exported from a spreadsheet. But what format should it be exported? CSV, XLS XLSX?

Also looking at the column headings I don’t see how it ties up which Eagle Part is which entry. Is it straight numerical order?

Okay I found out that dif is a data interchange format and that is presumably what lib2svg wants. Still not sure how one ties up the Eagle part to be converted. Maybe nr is the number of part within the library

Keith,

Were you ever successful at converting a Eagle part to SVG/Fritzing?

Yes I managed to create a part PIC32mx250f128-B.

Had to run some windows library program to create the Eagle Part  and then I created a eagle library with just the one part.

The instructions for running lbr2svg are in the README.md file at
https://github.com/fritzing/eagle2fritzing/tree/master/lbr2svg

I created a cut down spreadsheet as per instructions with just the one entry and nr set to 1 and then did a saveas choosing format dif

Then ran lbr2svg

Once I found the instructions it was fairly straight forward unlike
converting a PCB

Appreciate the steps/info on how you successfully used lbr2svg. Do you happen to know of a way to convert a Eagle library/part to SVG (for those who don’t have a copy of Eagle)?

There is a free version of Eagle CadSoft.

Like Old_Grey says use the free version of eagle. The Free version restricts the size and number of layers on boards, other than that its the full product

I tried to follow the instructions and pulled the item I wanted out of the spreadsheet, placed it into a new spreadsheet, then saved it as a .dif.

When I run the command “lbr2svg” and get the error “command not found”. I’m in the following directory ~/eagle-7.6.0/lbr/seeed/lbr2svg. I’ve it with the extension and without, as root and without. The file is in the directory. Not really sure what’s wrong.

Try ./lbr2svg to tell it to look for lbr2svg in the current directory.

Do “ls -las” to see that there is an executable lbr2svg in your current directory. i.e. it has the right permissions like executable

I seem to have lots of errors.

sudo ./lbr2svg.pro
: not foundro: 6: ./lbr2svg.pro: 
./lbr2svg.pro: 8: ./lbr2svg.pro: FRITZING_SRC: not found
: not foundro: 9: ./lbr2svg.pro: 
: not foundro: 10: ./lbr2svg.pro: 
./lbr2svg.pro: 11: ./lbr2svg.pro: INCLUDEPATH: not found
: not foundro: 12: ./lbr2svg.pro: 
./lbr2svg.pro: 13: ./lbr2svg.pro: QT: not found
xmlpatterns: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/xmlpatterns': No such file or directory
./lbr2svg.pro: 15: ./lbr2svg.pro: network: not found
: not foundro: 19: ./lbr2svg.pro: 
./lbr2svg.pro: 20: ./lbr2svg.pro: TARGET: not found
./lbr2svg.pro: 21: ./lbr2svg.pro: CONFIG: not found
./lbr2svg.pro: 22: ./lbr2svg.pro: CONFIG: not found
./lbr2svg.pro: 23: ./lbr2svg.pro: TEMPLATE: not found
./lbr2svg.pro: 24: ./lbr2svg.pro: SOURCES: not found
./lbr2svg.pro: 25: ./lbr2svg.pro: lbrapplication.cpp: not found
./lbr2svg.pro: 26: ./lbr2svg.pro: miscutils.cpp: not found
./lbr2svg.pro: 29: ./lbr2svg.pro: 29544FRITZING_SRC/utils/textutils.cpp: not found
./lbr2svg.pro: 30: ./lbr2svg.pro: 29544FRITZING_SRC/utils/schematicrectconstants.cpp: not found
./lbr2svg.pro: 31: ./lbr2svg.pro: 29544FRITZING_SRC/utils/misc.cpp: not found
./lbr2svg.pro: 32: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgfilesplitter.cpp: not found
./lbr2svg.pro: 33: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathlexer.cpp: not found
./lbr2svg.pro: 34: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathparser.cpp: not found
./lbr2svg.pro: 35: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathgrammar.cpp: not found
./lbr2svg.pro: 36: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathrunner.cpp: not found
: not foundro: 37: ./lbr2svg.pro: 
: not foundro: 38: ./lbr2svg.pro: 
./lbr2svg.pro: 39: ./lbr2svg.pro: HEADERS: not found
./lbr2svg.pro: 40: ./lbr2svg.pro: miscutils.h: not found
./lbr2svg.pro: 42: ./lbr2svg.pro: 29544FRITZING_SRC/installedfonts.h: not found
./lbr2svg.pro: 43: ./lbr2svg.pro: 29544FRITZING_SRC/utils/textutils.h: not found
./lbr2svg.pro: 45: ./lbr2svg.pro: 29544FRITZING_SRC/utils/schematicrectconstants.h: not found
./lbr2svg.pro: 46: ./lbr2svg.pro: 29544FRITZING_SRC/utils/misc.h: not found
./lbr2svg.pro: 47: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgfilesplitter.h: not found
./lbr2svg.pro: 48: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathlexer.h: not found
./lbr2svg.pro: 49: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathparser.h: not found
./lbr2svg.pro: 50: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathgrammar_p.h: not found
./lbr2svg.pro: 51: ./lbr2svg.pro: 29544FRITZING_SRC/svg/svgpathrunner.h: not found
: not foundro: 52: ./lbr2svg.pro: 
./lbr2svg.pro: 53: ./lbr2svg.pro: RESOURCES: not found
: not foundro: 54: ./lbr2svg.pro: 
./lbr2svg.pro: 55: ./lbr2svg.pro: win32: not found
./lbr2svg.pro: 56: ./lbr2svg.pro: DEFINES: not found
: not foundro: 57: ./lbr2svg.pro: }
: not foundro: 58: ./lbr2svg.pro:

Looks like you have not built the commands using Qt. Look at the README.md in the brd2svg directory for instructions of how to build with Qt.

Wow, search the file and there is nothing that file about QT. This is in the files I downloaded.

May have to go back to the github and have another look.

This is what I get when running qmake in the directory with all of the lbr2svg files.

~/eagle-7.6.0/lbr/seeed
$ qmake
WARNING: Failure to find: …/…/fritzing-app/src/utils/textutils.cpp
WARNING: Failure to find: …/…/fritzing-app/src/utils/schematicrectconstants.cpp
WARNING: Failure to find: …/…/fritzing-app/src/utils/misc.cpp
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgfilesplitter.cpp
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathlexer.cpp
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathparser.cpp
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathgrammar.cpp
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathrunner.cpp
WARNING: Failure to find: …/…/fritzing-app/src/installedfonts.h
WARNING: Failure to find: …/…/fritzing-app/src/utils/textutils.h
WARNING: Failure to find: …/…/fritzing-app/src/utils/schematicrectconstants.h
WARNING: Failure to find: …/…/fritzing-app/src/utils/misc.h
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgfilesplitter.h
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathlexer.h
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathparser.h
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathgrammar_p.h
WARNING: Failure to find: …/…/fritzing-app/src/svg/svgpathrunner.h
WARNING: Failure to find: …/…/fritzing-app/phoenixresources.qrc

brd2svg

Brd2svg is a tool for converting EAGLE .brd files to Fritzing
parts.We make no guarantees about brd2svg’s usefulness or
suitability, and furthermore the program is unsupported: we will
cheerfully ignore all questions, bug reports and feature requests.
We release brd2svg under the same open-source license as that of the
overall Fritzing project (GPL2/GPL3).

How to build it

Brd2svg relies on the Qt Framework, and should work with versions 4 and 5.
To build brd2svg, you first have to install the Qt SDK, and then
easiest path for building it is to use Qt Creator (an IDE that comes with the SDK) to open brd2svg.pro. We have built and used brd2svg on both Mac and Windows (though it has been some time since anyone has used the Mac build). It should also work under Linux.

If you prefer the command line, you can also build it like this:

Mac

brew install qt
qmake -spec macx-g++ brd2svg.pro
make

GNU/Linux

qmake brd2svg.pro
make

try

 qmake lbr2svg.pro
 make

Thanks for the help, but nothing but errors. I’m obviously missing some packages to build this.

Try checking out https://wiki.qt.io/Install_Qt_5_on_Ubuntu

Hi…i am a new user here. In my case when I run the command “lbr2svg” and get the error “command not found”. I’m in the following directory ~/eagle-7.6.0/lbr/seeed/lbr2svg. I’ve it with the extension and without, as root and without. The file is in the directory. Any suggestion.

flex pcb assembly

As previously stated for smilliken it looks like you have not built the commands with QT. i.e You need to install QT then
qmake lbr2svg.pro
make

Try reading the whole thread and reading the README.md files in the lbr2svg and brd2svg directories

Not sure what ~/eagle-7.6.0/lbr/seeed/lbr2svg is it looks like something supplied with Eagle. The lbr2svg that I used to convert an Eagle Library
is downloadable at https://github.com/fritzing/eagle2fritzing/tree/master/lbr2svg