Closed pulkin closed 1 year ago
My build on RPI 3 v1.2 latest raspbian was failing with this:
cd /home/pulkin/miraclecast/build/src/dhcp && /usr/bin/cmake -E cmake_link_script CMakeFiles/miracle-dhcp.dir/link.txt --verbose=1 /usr/bin/cc -std=gnu11 -std=gnu11 -rdynamic CMakeFiles/miracle-dhcp.dir/dhcp.c.o CMakeFiles/miracle-dhcp.dir/common.c.o CMakeFiles/miracle-dhcp.dir/ipv4ll.c.o CMakeFiles/miracle-dhcp.dir/client.c.o CMakeFiles/miracle-dhcp.dir/server.c.o -o miracle-dhcp -ludev -lm -lglib-2.0 ../shared/libmiracle-shared.a -lsystemd /usr/bin/ld: ../shared/libmiracle-shared.a(shl_log.c.o): in function `log__submit': shl_log.c:(.text+0x274): undefined reference to `lrint' collect2: error: ld returned 1 exit status
I had to add target_link_libraries(miracle-shared m) to src/shared/CMakeLists.txt presumably because of
target_link_libraries(miracle-shared m)
src/shared/CMakeLists.txt
$ grep lrint * shl_log.c: millisec = lrint(tv.tv_usec/1000.0);
yes, I think that is usually glibc devel package
closing as find dependencies is outside of scope.
I accept any patches relates with buildsystem checks for dependencies
My build on RPI 3 v1.2 latest raspbian was failing with this:
I had to add
target_link_libraries(miracle-shared m)
tosrc/shared/CMakeLists.txt
presumably because of