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

Can I compile a 32-bit dll? #286

Closed
dqi1999 opened this issue Jan 2, 2024 · 9 comments
Closed

Can I compile a 32-bit dll? #286

dqi1999 opened this issue Jan 2, 2024 · 9 comments

Comments

@dqi1999
Copy link

dqi1999 commented Jan 2, 2024

Can I compile a 32-bit dll?

@jinzhongjia
Copy link
Contributor

of course, I don't know how to that with gcc,but you can use this command zig build -Dtarget=x86-linux -Dis_static=false -Denable_tls=false to build dynamic library for x86(32bits) windows (if you want to enable tls support, use -Denable_tls=true)

@jinzhongjia
Copy link
Contributor

After running zig build -Dtarget=x86-linux -Dis_static=false -Denable_tls=false, you can find the dynamic library in the directory zig-out/lib

@dqi1999
Copy link
Author

dqi1999 commented Jan 2, 2024

thank you!But I do not use zig to compile, testing for half a day did not get the dynamic link library, you can also release a 32-bit dynamic link library when you publish?

@jinzhongjia
Copy link
Contributor

Sorry, I am not responsible for the webui of the C library. Need to ask @hassandraga @ttytm about this.

@dqi1999
Copy link
Author

dqi1999 commented Jan 2, 2024

Thank you!

@AlbertShown
Copy link
Contributor

Which OS and compiler you are using?
I guess you can simply run make using your 32bit compiler and will work fine!

@dqi1999
Copy link
Author

dqi1999 commented Jan 3, 2024

zig compiled successfully using the latest version of webui;use cmd: zig build -Dtarget=x86-linux -Dis_static=false -Denable_tls=false,But the output is a file libwebui.so;I want to get the .dll file, use cmd:zig build -Dtarget=x86-windows-gnu -Dis_static=false -Denable_tls=false;
but there is a compilation error!
image

@jinzhongjia
Copy link
Contributor

Yes, it seems that there are some strange problems with dynamic link building windows, I fixed them normally

@jinzhongjia
Copy link
Contributor

this pr should fix this problem:#289

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

4 participants