We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Environment
Describe the bug I build the client use --buildtype debug parameter, and the run ninja -C debug. then the logs is
[1/3] Linking target app/test_cli.exe FAILED: app/test_cli.exe "cc" -o app/test_cli.exe app/test_cli.exe.p/tests_test_cli.c.obj app/test_cli.exe.p/src_cli.c.obj app/test_cli.exe.p/src_options.c.obj app/test_cli.exe.p/src_util_net.c.obj app/test_cli.exe.p/src_util_str.c.obj app/test_cli.exe.p/s rc_util_strbuf.c.obj app/test_cli.exe.p/src_util_term.c.obj "-flto" "-Wl,--allow-shlib-undefined" "-Wl,--start-group" "D:/msys64/mingw64/bin/../lib/libavformat.dll.a" "D:/msys64/mingw64/bin/../lib/libavcodec.dll.a" "D:/msys64/mingw6 4/bin/../lib/libavutil.dll.a" "D:/msys64/mingw64/bin/../lib/libmingw32.a" "-mwindows" "D:/msys64/mingw64/bin/../lib/libSDL2main.a" "D:/msys64/mingw64/bin/../lib/libSDL2.dll.a" "D:/msys64/mingw64/bin/../lib/libusb-1.0.dll.a" "-lws2_3 2" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group" D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\C00023~1\AppData\Local\Temp\ccABekLO.ltrans0.ltrans.o::(.text+0x3a98): undefined reference to `sc_log_windows _error' collect2.exe: error: ld returned 1 exit status [2/3] Compiling C object app/scrcpy.exe.p/src_scrcpy.c.obj ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered:
Build log.c for test_cli
b62424a
On Windows, sc_log_windows_error() is called from net.c, so log.c must also be compiled. Fixes #3542 <#3542>
Thank you for your report.
Fixed on dev branch by b62424a.
dev
Sorry, something went wrong.
No branches or pull requests
Environment
Describe the bug
I build the client use --buildtype debug parameter, and the run ninja -C debug.
then the logs is
[1/3] Linking target app/test_cli.exe
FAILED: app/test_cli.exe
"cc" -o app/test_cli.exe app/test_cli.exe.p/tests_test_cli.c.obj app/test_cli.exe.p/src_cli.c.obj app/test_cli.exe.p/src_options.c.obj app/test_cli.exe.p/src_util_net.c.obj app/test_cli.exe.p/src_util_str.c.obj app/test_cli.exe.p/s
rc_util_strbuf.c.obj app/test_cli.exe.p/src_util_term.c.obj "-flto" "-Wl,--allow-shlib-undefined" "-Wl,--start-group" "D:/msys64/mingw64/bin/../lib/libavformat.dll.a" "D:/msys64/mingw64/bin/../lib/libavcodec.dll.a" "D:/msys64/mingw6
4/bin/../lib/libavutil.dll.a" "D:/msys64/mingw64/bin/../lib/libmingw32.a" "-mwindows" "D:/msys64/mingw64/bin/../lib/libSDL2main.a" "D:/msys64/mingw64/bin/../lib/libSDL2.dll.a" "D:/msys64/mingw64/bin/../lib/libusb-1.0.dll.a" "-lws2_3
2" "-Wl,--subsystem,console" "-lkernel32" "-luser32" "-lgdi32" "-lwinspool" "-lshell32" "-lole32" "-loleaut32" "-luuid" "-lcomdlg32" "-ladvapi32" "-Wl,--end-group"
D:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\C00023~1\AppData\Local\Temp\ccABekLO.ltrans0.ltrans.o::(.text+0x3a98): undefined reference to `sc_log_windows
_error'
collect2.exe: error: ld returned 1 exit status
[2/3] Compiling C object app/scrcpy.exe.p/src_scrcpy.c.obj
ninja: build stopped: subcommand failed.
The text was updated successfully, but these errors were encountered: