Skip to content
New issue

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

I can not debug the client #3542

Closed
2 tasks
davidcdw opened this issue Oct 19, 2022 · 1 comment
Closed
2 tasks

I can not debug the client #3542

davidcdw opened this issue Oct 19, 2022 · 1 comment

Comments

@davidcdw
Copy link

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: [Windows]
  • scrcpy version: [e.g. 1.24.1]
  • installation method: [manual build]

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.

rom1v added a commit that referenced this issue Oct 19, 2022
On Windows, sc_log_windows_error() is called from net.c, so log.c must
also be compiled.

Fixes #3542 <#3542>
@rom1v
Copy link
Collaborator

rom1v commented Oct 19, 2022

Thank you for your report.

Fixed on dev branch by b62424a.

@rom1v rom1v closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants