← Back to team overview

kicad-developers team mailing list archive

Re: Generating the _xpm files uside by icons in eeschema.

 

that is true.

SVG to PNG to CPP requires a linux software called PNGCRUSH
https://pmt.sourceforge.io/pngcrush/

cheers
Fabrizio



On Tue, Jul 25, 2017 at 9:02 AM, Oliver Walters <
oliver.henry.walters@xxxxxxxxx> wrote:

> Kristoffer,
>
> I believe you also have to be compiling under Linux, for this to work.
>
> On Tue, Jul 25, 2017 at 4:35 PM, Maciej Sumiński <maciej.suminski@xxxxxxx>
> wrote:
>
>> Hi Kristoffer,
>>
>> You need to add entries to bitmaps_png/CMakeLists.txt and
>> include/bitmaps.h. After that you need to build KiCad with a Cmake
>> option -DMAINTAIN_PNGS=ON. You will need Inkscape for file format
>> conversion.
>>
>> Regards,
>> Orson
>>
>> On 07/24/2017 09:40 PM, Kristoffer Ödmark wrote:
>> > Hello!
>> >
>> > I am working on some patches currently that adds a few menu entries in
>> > eeschema. Since they seem to require me to add icons to all of the
>> > entries, I am now stuck on trying to generate the .cpp files. Could
>> > someone point me in the correct way on how to do this.
>> >
>> > I currently have added 2 svg files in bitmaps_png/sources/ after that I
>> > am unsure of what to do. Tried running a script i found in there, which
>> > ran "rm -r *", causing me to have to remake svgs.
>> >
>> > - Kristoffer
>> >
>> > _______________________________________________
>> > 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
>>
>>
>
> _______________________________________________
> 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
>
>

Follow ups

References