albfan / miraclecast

Connect external monitors to your system via Wifi-Display specification also known as Miracast
Other
3.68k stars 408 forks source link

Build issue #458

Closed pulkin closed 1 year ago

pulkin commented 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

$ grep lrint *
shl_log.c:      millisec = lrint(tv.tv_usec/1000.0);
albfan commented 1 year ago

yes, I think that is usually glibc devel package

albfan commented 1 year ago

closing as find dependencies is outside of scope.

I accept any patches relates with buildsystem checks for dependencies