I am trying to build my first Solus package for pkTriggerCord for my Pentax.
My package.yml is:
name : pkTriggerCord
version : 0.85.00
release : 1
source :
- https://github.com/asalamon74/pktriggercord/archive/refs/tags/v0.85.00.tar.gz : dc358dc75e340d0404bdce6817776c1417872985c275451cd2a432a94afc25f7
license : LGPL
component :
summary : Remote control (tethering) for Pentax DSLR cameras.
description: |
Remote control (tethering) for Pentax DSLR cameras. After you connect the camera to your PC with the USB cable, you can control the camera from pkTriggerCord. You can read status information, you can change several settings, and you can take pictures. The pictures are stored in the camera's buffer and can be downloaded to the PC. Pictures are not written on the SD card of the camera.
builddeps..:
- pkgconfig(json-c)
- pkgconfig(jsoncpp)
build : |
%make
install : |
%make_install
but if I give it "make" it gives me the following error:
In file included from /usr/include/stdio.h:894,
from pslr_enum.c:39:
In function ‘sprintf’,
inlined from ‘get_pslr_af11_point_str’ at pslr_enum.c:302:13:
/usr/include/bits/stdio2.h:38:10: warning: ‘__builtin___sprintf_chk’ argument 5 overlaps destination object ‘ret’ [-Wrestrict]
38 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
x86_64-solus-linux-gcc -mtune=generic -march=x86-64 -g2 -O2 -pipe -fPIC -fno-plt -Wformat -Wformat-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=32 -fasynchronous-unwind-tables -ftree-vectorize -feliminate-unused-debug-types -Wall -Wno-error -Wp,-D_REENTRANT -DPKTDATADIR=\"/usr/local/share/pktriggercord\" -fPIC -c pslr.c -o pslr.o
pslr_model.c:43:10: fatal error: js0n.h: No such file or directory
43 | #include "js0n.h"
| ^~~~~~~~
compilation terminated.
make: *** [Makefile:75: pslr_model.o] Error 1
Command '['/bin/bash', '--norc', '--noprofile', '/tmp/ypkg-buildrz22Jj']' returned non-zero exit status 2
[Build] build failed for pkTriggerCord
🕱 Failed to build packages
make[1]: *** [../Makefile.common:26: build] Errore 1
make[1]: uscita dalla directory «/home/fabio/build/pkTriggerCord»
make: *** [../Makefile.common:11: complete] Errore 2
I don't understand why, maybe this "js0n.h" ? (The readme say: This directory contains external source files).
Any suggestions?