Closed t3therdev closed 8 months ago
Hi,
It seems you did not clean cmake generated files. Using 3.7 should not link static gcc/stdc++ as we see in the output
: && /home/user/projects/openwrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/bin/mipsel-openwrt-linux-musl-g++ -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -ffile-prefix-map=/home/user/projects/openwrt/openwrt/build_dir/target-mipsel_24kc_musl/v4l2rtspserver-0.3.7=v4l2rtspserver-0.3.7 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -flto -DNDEBUG -L/home/user/projects/openwrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/usr/lib -L/home/user/projects/openwrt/openwrt/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/lib -znow -zrelro -Wl,--gc-sections,--as-needed -rdynamic CMakeFiles/v4l2rtspserver.dir/main.cpp.o -o v4l2rtspserver liblibv4l2rtspserver.a /home/user/projects/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libssl.so -lasound libv4l2cpp/liblibv4l2cpp.a -static-libgcc -static-libstdc++ /home/user/projects/openwrt/openwrt/staging_dir/target-mipsel_24kc_musl/usr/lib/libcrypto.so && :
Enabling -DSTATICSTDCPP=OFF should not include -static-libgcc -static-libstdc++
Best Regards, Michel.
Describe the bug Compiling v4l2rtspserver for Openwrt 22.03.3, the default feed (https://git.openwrt.org/?p=feed/packages.git;a=shortlog;h=refs/heads/openwrt-22.03) has version 2.3.
To add audio support, I did these modifcations, which seem to work as well after recompile:
I found that the Master feed (https://git.openwrt.org/?p=feed/packages.git;a=shortlog;h=refs/heads/master) has the newer version 3.7, but when I try to compile with those same changes above, it won't compile. Diff between feed package: https://git.openwrt.org/?p=feed/packages.git;a=commitdiff;h=40d516b15610fcf4b6e9e9f6b0f373b8aa09643f