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

Question: MinGW Compilation Fail #1126

Open
DefinitlyEvil opened this issue Dec 12, 2024 · 1 comment
Open

Question: MinGW Compilation Fail #1126

DefinitlyEvil opened this issue Dec 12, 2024 · 1 comment

Comments

@DefinitlyEvil
Copy link

Hi,
It might be a noob question but I am trying to compile for MinGW x86_64 from my M1 Max MacBook Pro.

/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x581): undefined reference to `json_parser_get_root'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x589): undefined reference to `json_node_get_object'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x5a0): undefined reference to `json_object_get_string_member'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x5ce): undefined reference to `json_object_get_string_member'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x5e8): undefined reference to `g_print'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x600): undefined reference to `g_print'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x60c): undefined reference to `g_object_unref'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x632): undefined reference to `g_idle_add'
/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/bin/x86_64-w64-mingw32-ld: /var/folders/xx/vtkf1phx0_g8nxxrknzx99fh0000gn/T//ccv1nb3p.o:frida-core-example.c:(.text+0x654): undefined reference to `g_main_loop_quit'
collect2: error: ld returned 1 exit status

My command:

x86_64-w64-mingw32-gcc -I . -I/opt/homebrew/Cellar/mingw-w64/12.0.0_1/toolchain-x86_64/x86_64-w64-mingw32/include -L . -lfrida-core ./frida-core-example.c -o example.exe
@DefinitlyEvil DefinitlyEvil changed the title Question: Question: MinGW Compilation Fail Dec 12, 2024
@lilili87222
Copy link

fail on windows. I tried github action,it build fail too.

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