Hi,
i have a bit of a problem to build cr2hdr in Linux. At first i downloaded ML via hg
Changed to
So when i build with make, i got this error
Actually, i have installed pip3 docutils instead of pip.
When i build using make cr2hdr, the following happend:
Maybe someone can help me. THx
i have a bit of a problem to build cr2hdr in Linux. At first i downloaded ML via hg
Code Select
hg clone -u unified https://foss.heptapod.net/magic-lantern/magic-lantern/
Changed to
Code Select
~/magic-lantern/modules/dual_iso
So when i build with make, i got this error
Code Select
make
Using /usr/bin/arm-none-eabi-gcc (from PATH).
[ README ] module_strings.h
Could not find rst2html/rst2html5/rst2html.py/rst2html5.py.
Please install python-docutils (pip install docutils).
[ CC ] dual_iso.o
In file included from dual_iso.c:60:
../../src/module.h:344:10: fatal error: module_strings.h: No such file or directory
344 | #include "module_strings.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../Makefile.filerules:21: dual_iso.o] Fehler 1
Actually, i have installed pip3 docutils instead of pip.
When i build using make cr2hdr, the following happend:
Code Select
make cr2hdr
Using /usr/bin/arm-none-eabi-gcc (from PATH).
[ README ] module_strings.h
Could not find rst2html/rst2html5/rst2html.py/rst2html5.py.
Please install python-docutils (pip install docutils).
[ gcc ] cr2hdr
cr2hdr.c:58:10: fatal error: module_strings.h: Datei oder Verzeichnis nicht gefunden
58 | #include "module_strings.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/include/string.h:495,
from ../../src/chdk-dng.c:47:
In function 'strncpy',
inlined from 'dng_set_camname' at ../../src/chdk-dng.c:340:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'dng_set_camserial' at ../../src/chdk-dng.c:345:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'dng_set_description' at ../../src/chdk-dng.c:350:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'dng_set_lensmodel' at ../../src/chdk-dng.c:355:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 64 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'dng_set_datetime' at ../../src/chdk-dng.c:405:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 20 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function 'strncpy',
inlined from 'dng_set_datetime' at ../../src/chdk-dng.c:406:5:
/usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound 4 equals destination size [-Wstringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dcraw-bridge.c:101:3: warning: 'unique' defined but not used [-Wunused-const-variable=]
101 | } unique[] = {
| ^~~~~~
exiftool-bridge.c: In function 'dng_restore_metadata':
exiftool-bridge.c:284:60: warning: '%s' directive output may be truncated writing up to 999 bytes into a region of size 984 [-Wformat-truncation=]
284 | snprintf(exif_cmd, sizeof(exif_cmd), "exiftool \"-json=%s\" \"%s\" -q -overwrite_original", json_file, dng_file);
| ^~ ~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from exiftool-bridge.c:1:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 44 or more bytes (assuming 1043) into a destination of size 1000
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
adobedng-bridge.c: In function 'dng_compress':
adobedng-bridge.c:111:57: warning: '" -dng1.4 ' directive output may be truncated writing 10 bytes into a region of size between 0 and 999 [-Wformat-truncation=]
111 | snprintf(compress_cmd, sizeof(compress_cmd), "%s\"%s\" -dng1.4 %s -o \"%s\" \"%s\"", start, adobe_dng, lossy ? "-lossy" : "", src_filename, tmp);
| ^~~~~~~~~~~
In file included from /usr/include/stdio.h:867,
from adobedng-bridge.c:1:
/usr/include/bits/stdio2.h:67:10: note: '__builtin___snprintf_chk' output 21 or more bytes (assuming 2025) into a destination of size 1000
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile.cr2hdr:19: cr2hdr] Fehler 1
Maybe someone can help me. THx