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

WIndows binaries does nothing #194

Open
mcff2 opened this issue Jun 6, 2023 · 7 comments
Open

WIndows binaries does nothing #194

mcff2 opened this issue Jun 6, 2023 · 7 comments

Comments

@mcff2
Copy link

mcff2 commented Jun 6, 2023

Hello,

I compiled the windows binaries without any pb by corss-compiling on debian.

However, the resulting binaries (the client one) does... nothing : it silently exits without saying anything, whatever option I give it.

Did you already see that? Any idea?

@serpilliere
Copy link
Contributor

Hi @mcff2
Can you run it from a cmd command prompt?
can you add '-vv' option to the command line?

@mcff2
Copy link
Author

mcff2 commented Jun 8, 2023

It does... nothing at all :-(

There is certainly a major issue with the compilation, but I dont have a clue to investigate...

@serpilliere
Copy link
Contributor

Hi @mcff2
In the file https://github.com/cea-sec/sanzu/blob/main/sanzu/src/bin/sanzu_client.rs
you may remove the first line:

#![windows_subsystem = "windows"]

This will allow you to compile the client as a console application, which will force rust to output to stdout.

Can you try this?
Can you confirm that you are running the very last version of sanzu?

@mcff2
Copy link
Author

mcff2 commented Jun 8, 2023 via email

@mcff2
Copy link
Author

mcff2 commented Jun 16, 2023

Without this line (ie console application), it's way better & easier.

It works now, thanks !

@serpilliere
Copy link
Contributor

Can you provide your windows os version ?
Even if we compile in GUI app (with the first line), the log should appear in the console, if sanzu is run in command line. (We tested this on windows 10)

@mcff2
Copy link
Author

mcff2 commented Jun 20, 2023

Windows 10 22H2, build 19045.3086

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