← Back to team overview

kicad-developers team mailing list archive

Re: Repeat request for help from icon maintainer.

 

Le 04/02/2020 à 17:32, Brian Piccioni a écrit :
> JP
> 
> Thanks for this.
> 
> Unfortunately, inkscape and pngcrush seem to be a work in process on Msys.
> 
> If I install the package
> 
>     $ pacman -S mingw-w64-x86_64-inkscape
> 
> and run inkscape I get the error
> 
>     $ inkscape
>     C:/msys64/mingw64/bin/inkscape.exe: error while loading shared
> libraries: libpoppler-89.dll: cannot open shared object file: No such
> file or directory
> 
> If I build inkscape in MSYS and run make install I get
> 
>     [  0%] Built target potrace
>     make[2]: Entering directory '/home/bjpic/debug'
>     [  0%] Creating 48 pixel tall
> C:/msys64/home/bjpic/debug/bitmaps_png/tmp/wizard_add_fplib_icon.png
>     Unknown option --without-gui
>     [  0%] Creating 16 pixel tall
> C:/msys64/home/bjpic/debug/bitmaps_png/tmp/folder.png
>     Unknown option --without-gui
>     [  0%] Creating cleaned file
> C:/msys64/home/bjpic/kicad/bitmaps_png/png_16/folder.png
> 
> running inkscape --without-gui causes the same error.
> 
> Similarly, installing the pngcrush package in msys2 pacman -S
> mingw-w64-x86_64-pngcrush results in the warning
> 
> $ pngcrush
> Warning: versions are different between png.h and png.c
>   png.h version: 1.6.34
>   png.c version: 1.6.37
> 
> Making pngcrush under msys2 fails with a forced error.
> 
> In general it seems that many related utilities under Msys2 are a dogs
> breakfasts.
> 
> Perhaps for the moment it would be best if I simply made my bitmaps
> manually.
> 
> Brian
> 

I have no issues with inkscape and pngcrush.
However:
- Inkscape is installed from binaries coming from Inkscape site.
- pngcrush was built on msys2 by me from pngcrush sources.
This is a very small program and it is easy to build on msys2.
However, to build it, remove (or comment) the line 33 in zutil.h
"typedef long ptrdiff_t;  /* guess -- will be caught if guess is wrong */"
to avoid a conflict with a mingw included file.

the first useful line of my script running cmake is:
export PATH=$WXMSW:$PATH:/d/inkscape:/d/pngcrush

You will have to remove inkscape from msys2.

Attached, my msys2 script to run cmake.

Good luck...

> 
> On 2020-02-04 9:34 a.m., jp charras wrote:
>> Le 04/02/2020 à 15:06, Brian Piccioni a écrit :
>>> Hello
>>>
>>> I emailed earlier because when I follow the directions to create a new
>>> icon under MSYS2 it fails.
>>>
>>> This means that either
>>>
>>> 1) the directions are wrong or
>>> 2) I am following them incorrectly.
>>>
>>> Perhaps an icon maintainer can get in contact with me and work through
>>> this?
>>>
>>> I basically need to clone the icons annotate_right_down and
>>> annotate_down_right rotated 90, 180, and 270 degrees. Not complicated.
>>>
>>> thanks
>>>
>>>
>>> Brian
>> Hi Brian,
>>
>> To build the .cpp files the option MAINTAIN_PNGS must be set to ON in
>> makefiles.
>>
>> So:
>> 1 - To avoid cache issues, delete your current CMakeCache.txt file in
>> your build directory.
>> 2 - Run cmake as before, with option -DMAINTAIN_PNGS=ON to recreated the
>> makefiles
>>
>> After that you should be able to rebuild/create the .cpp bitmap files.
>>
> 
> _______________________________________________
> 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


-- 
Jean-Pierre CHARRAS
#! /bin/sh

rm -f CMakeCache.txt
WXMSW=/d/wxWidgets-3.1.3/Release_dll
export PATH=$WXMSW:$PATH:/d/inkscape:/d/pngcrush

KICAD_DIR=/e/kicad

OPT0=-DKICAD_SCRIPTING_ACTION_MENU=OFF
OPT1=-DKICAD_SCRIPTING=OFF
OPT2=-DKICAD_SCRIPTING_MODULES=OFF
OPT3=-DKICAD_SCRIPTING_WXPYTHON=OFF
OPT4=-DOPENSSL_ROOT_DIR=/mingw32
OPT5=-DBUILD_GITHUB_PLUGIN=ON
OPT6=-DMAINTAIN_PNGS=ON
OPT7=-DBUILD_SMALL_DEBUG_FILES=ON
OPT8=-DKICAD_SPICE=ON
OPT9=-DNGSPICE_ROOT_DIR=/c/Spice
OPT10=-DKICAD_USE_OCE=ON
OPT11=-DOCE_DIR=/g/opencascade/lib_oce/cmake
OPT12=-DKICAD_BUILD_QA_TESTS=OFF
#OPT13=-DKICAD_STDLIB_DEBUG=ON
OPT13=-DKICAD_STDLIB_LIGHT_DEBUG=ON
OPT14=-DKICAD_SANITIZE=OFF


INSTALL_DIR=-DCMAKE_INSTALL_PREFIX=$KICAD_DIR
PYTH_INST_DIR=-DPYTHON_SITE_PACKAGE_PATH=$KICAD_DIR/lib/python2.7/site-packages

#Debug Release Relwithdebinfo Minsizerel
#BUILD_TYPE=Debug
BUILD_TYPE=Release

cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=$BUILD_TYPE\
    $OPT0 $OPT1 $OPT2 $OPT3 $OPT4 $OPT5 $OPT6 $OPT7 $OPT8 $OPT9 $OPT10 $OPT11 $OPT12 $OPT13 $OPT14\
    $INSTALL_DIR $PYTH_INST_DIR ../../

Follow ups

References