tger977 hat geschrieben: ↑Mi Jan 30, 2019 10:53 am
Das wär ja toll, wenn der knxdmxd weiterlaufen würde auf dem TW. Ich bin halt am alten Debian gescheitert und hab keine Ahnung wie man aus den Git Sourcen eine Version für die neueren Linux Versionen gebaut bekommt...
Habe gestern eine Debian 9 VM aufgesetzt und habe mir die Zähne mit dem CMake ausgebissen.
Null Ahnung, naja jetzt nicht mehr ganz.
Das Problem mit json-c habe ich lösen können, kann aber nicht mehr genau sagen wie. Habe mir Notizen gemacht und werde am ende der reise das nochmal auf einer frischen VM versuchen.
Dann trat dasselbe Problem mit uuid auf das aber mit "apt-get install uuid-dev" schnell gelöst war.
Und CMake lief fehlerfrei durch.
Ergebnis:
Code: Alles auswählen
root@debian:~/projekt/knxdmxd/src/build# cmake ../
-- Found json_c
-- Found eibclient
-- Found pthread
-- Found uuid
-- Configuring done
-- Generating done
-- Build files have been written to: /root/projekt/knxdmxd/src/build
Aber kein bin im Ordner?
Code: Alles auswählen
-rw-r--r-- 1 root root 17345 Jän 30 11:59 CMakeCache.txt
drwxr-xr-x 6 root root 4096 Jän 30 12:24 CMakeFiles DIR
-rw-r--r-- 1 root root 1367 Jän 30 11:59 cmake_install.cmake
-rw-r--r-- 1 root root 4790 Jän 30 12:24 Makefile
Naja aber schon etwas weiter.
Muss nur noch herausfinden wie es weiter geht.
Wie wird das makefile gehandhabt?
@StefanW mach ich gleich wenn ich knxdmx.bin habe
Schöne Grüße
Gernot
Hinzugefügt nach 41 Minuten 32 Sekunden:
So hab mich doch getraut make auszuführen.
Folgende Probleme:
Code: Alles auswählen
root@debian:~/projekt/knxdmxd/src/build# make
Scanning dependencies of target knxdmxd
[ 50%] Building C object CMakeFiles/knxdmxd.dir/knxdmxd.c.o
/root/projekt/knxdmxd/src/knxdmxd.c: In function ‘cue_processor’:
/root/projekt/knxdmxd/src/knxdmxd.c:577:74: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"cue_processor: cuelist %s will advance via link from %d to cue %d ",
^
/root/projekt/knxdmxd/src/knxdmxd.c:577:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"cue_processor: cuelist %s will advance via link from %d to cue %d ",
^
/root/projekt/knxdmxd/src/knxdmxd.c:583:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"cue_processor: %lu cuelist %s will advance to cue %d ",
^
/root/projekt/knxdmxd/src/knxdmxd.c: In function ‘knx_receiver’:
/root/projekt/knxdmxd/src/knxdmxd.c:728:45: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"knx_receiver: trigger %u (GA:%u) triggered target %u (type %u)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:728:73: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"knx_receiver: trigger %u (GA:%u) triggered target %u (type %u)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:784:23: error: ‘FALSE’ undeclared (first use in this function)
FALSE;
^~~~~
/root/projekt/knxdmxd/src/knxdmxd.c:784:23: note: each undeclared identifier is reported only once for each function it appears in
/root/projekt/knxdmxd/src/knxdmxd.c:801:23: error: ‘TRUE’ undeclared (first use in this function)
TRUE;
^~~~
/root/projekt/knxdmxd/src/knxdmxd.c: In function ‘load_config’:
/root/projekt/knxdmxd/src/knxdmxd.c:1147:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: trying to import %d channel(s)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1173:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: skipping channel definition %d, missing name or DMX",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1180:83: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: could not allocate memory for name of channel definition %d",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1246:58: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: allocating memory for %d universe(s)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1292:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: trying to import %d dimmer(s)", dimmer_num);
^
/root/projekt/knxdmxd/src/knxdmxd.c:1305:26: error: ‘FALSE’ undeclared (first use in this function)
dimmers[i].process = FALSE; // disable processing
^~~~~
/root/projekt/knxdmxd/src/knxdmxd.c:1316:54: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config : skipping dimmer definition %d, missing name, channels or GA",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1336:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: skipping dimmer definition %d, invalid channel %s",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1425:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: trying to import %d scene(s) ", scene_num);
^
/root/projekt/knxdmxd/src/knxdmxd.c:1473:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: trying to import %d cuelist(s)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1540:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: making link from cue %d to cue %d in cuelist %s",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1540:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: making link from cue %d to cue %d in cuelist %s",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1544:49: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
"load_config: making link from cue %d in cuelist %s failed (link not found)",
^
/root/projekt/knxdmxd/src/knxdmxd.c:1551:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: cue %d %s, %d, link %d", j, cuelists[i].cues[j].name, cuelists[i].cues[j].is_link, cuelists[i].cues[j].cue_link);
^
/root/projekt/knxdmxd/src/knxdmxd.c:1551:60: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
syslog(LOG_DEBUG, "load_config: cue %d %s, %d, link %d", j, cuelists[i].cues[j].name, cuelists[i].cues[j].is_link, cuelists[i].cues[j].cue_link);
^
CMakeFiles/knxdmxd.dir/build.make:62: die Regel für Ziel „CMakeFiles/knxdmxd.dir/knxdmxd.c.o“ scheiterte
make[2]: *** [CMakeFiles/knxdmxd.dir/knxdmxd.c.o] Fehler 1
CMakeFiles/Makefile2:67: die Regel für Ziel „CMakeFiles/knxdmxd.dir/all“ scheiterte
make[1]: *** [CMakeFiles/knxdmxd.dir/all] Fehler 2
Makefile:83: die Regel für Ziel „all“ scheiterte
make: *** [all] Fehler 2