-
Notifications
You must be signed in to change notification settings - Fork 13
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
how to build with msvc toolchain? #4
Comments
@Eunsolfs Yes I have to deal with it ! I hate CMake (no offense ^^) and I'm not a Windows user. In the previous repo, almost issues concerned CMake for Windows lol That is why I preferred using my Makefile. What native Windows techno can be used instead for compiling ? We can add a Visual Studio file ? As quick workaround, you can compile directly:
(not verified). You can provide a pull request, this will help me :) |
thank you for your help, if i work out, I will upload the entire compile script
…---- Replied Message ----
| From | Quentin ***@***.***> |
| Date | 12/08/2022 02:28 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [Lecrapouille/zipper] how to build with msvc toolchain? (Issue #4) |
@Eunsolfs Yes I have to deal with it ! I hate CMake (no offense ^^) and I'm not a Windows user. In the previous repo, almost issues concerned CMake for Windows lol That is why I preferred using my Makefile.
What native Windows techno can be used instead for compiling ? We can add a Visual Studio file ?
As quick workaround, you can compile directly:
go to zipper/external and see download-external-libs.sh and compile-external-libs.sh for downloading and compile these libs (to be adapated for Windows ?)
Adapt the following line for Windows:
cd zipper
g++ --std=c++11 -fPIC -shared -Iinclude -Isrc -I. src/utils/*.cpp src/*.cpp -o libzipper.so external/minizip/build/libminizip.a external/minizip/build/libaes.a external/zlib-ng/build/libz.a
(not verified).
You can provide a pull request, this will help me :)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Any update? |
I have to say, I put a lot of effort into making this project a zipper VS project, I used minizip/1.2.13 (this library depends on bzip2/1.0.8 I went back and checked the files of the zipper project again, and found that the author requested to use the minizip version of his fork, but I don't know the detailed version of the fork's minizip, nor can I know what version of the library the project depends on. So I'm stuck. |
@Eunsolfs @demonstan I tried to add CI for Windows. I made a workaround to find zlib.h but I still have an error with my Makefile I dunno where the error is not very explicit |
In the end, I successfully made this project into a VS project, and the compilation passed my zipper fork :https://github.com/Eunsolfs/zipper.git Pull the code to the local through git, open it with VS2022 and compile it If you use other vs versions, you need to manually modify the relevant values in zipper.vcxproj / zipper.sln with an editor like vscode |
The secret of successful compilation is that zipper needs to use a specific version of minizip (https://github.com/Lecrapouille/minizip). The author of zipper also mentioned it in ReadMe, but I didn't read it carefully before... Versions of other libraries in the external folder: But I don't seem to find traces of using zlib-ng in the source code of zipper. The reason why I added it is because the author of zipper described that zlib-ng needs to be downloaded and compiled in zipper/external/download-external-libs.sh |
my zipper fork :https://github.com/Eunsolfs/zipper |
@Eunsolfs thank you, sorry these last days I did not have ethernet. This could be nice to include your work. Can you provide pull requests ? |
https: //github.com/Eunsolfs/zipper
|
hello,can you add a CMake MakeFile ,so we can built this program easily.Absolutely,this program is so great!
thank you
The text was updated successfully, but these errors were encountered: