-
Notifications
You must be signed in to change notification settings - Fork 5
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 libewf dll for 64 bit? #27
Comments
@sk-zeeshan can you provide more details about the issue you are running into? Also see https://github.com/libyal/libewf/wiki/Building or https://www.nuget.org/packages/libewf/ |
Hello @joachimmetz , |
I'm unable to help you if you don't provide a step-by-step break down of what you are doing and what actual error messages/warning you are getting |
In C: /mingw64 folder structure I have put libewf in lib after unzipping. CPPFLAGS=-DWINVER=0x0501 ./configure --host=x86_64-w64-mingw32 This gives error for libcfile_file.h: After removing this part and then while trying making it, I get: ewf_checksum.h:37:30: error: 'uLong' undeclared (first use in this function); did you mean 'ulong'? which is error for zlib header file. I installed zlib and bzip using pacman! After this if I use this cmd: then I get so many things(I will put some of those lines here): I am just lost here! |
why not the latest https://github.com/libyal/libewf-legacy/releases/tag/20140816 ? not sure if version 20140608 is compatible with current tool chains
which file did you download the github generated one or the source distribution package? I assume the latter given you were able to run configure, but double checking.
any indication in config.log why it thinks this function is available? (look for the function name in config log, you'll see the tests being run to determine if the function is avail)
Is zconf.h included by your zlib header?
looks like trying to link an incomplete build have a look at the appveyor configuration maybe that help you determine what is different in your build environment - given that the mingw tests did pass for https://ci.appveyor.com/project/libyal/libewf-legacy/builds/48685822 |
Hello @joachimmetz , |
Hello @joachimmetz , |
Hello @joachimmetz , |
it is very hard for me to read the screenshot, so standard questions:
|
@joachimmetz ,Thank you for pointing that out! In Msys64, I was using CPPFLAGS=-DWINVER=0x0501, turns out, It is used for WinXP?
libcfile_file.c: In function 'libcfile_file_open_with_error_code': I don't if I am doing anything right anymore........ |
What if I build it in Windows 7 Pro, 64 bit, Will I be able to use it in windows 10? Mostly No, Right?? |
This is the first time you mention building for dotnet, why not start with that?
As I indicated I'm unable to help you if you don't provide a step-by-step break down of what you are doing and what actual error messages/warning you are getting. The more specific you can be the better I can guide you, otherwise you'll have to navigate the ambiguity yourself. |
Did you miss this: In Msys64, I was using CPPFLAGS=-DWINVER=0x0501, turns out, It is used for WinXP? Also, Also, I am sure the problem is from my end... But somehow after making I am missing the dependency in dll for which I even tried everything... If I can make this for .Net It will be much better for me! |
Hello @joachimmetz, I was using Windows 10 64 Bit, 22H2, OS Build 19045.5247 for building! I used Msys2(Mingw64) in the process.
Then I put the below dlls with libewf-2.dll in the same directory:
I was using Dependency walker to check the dll! I found this, and I think this is important: Missing Dll Problem ! So I downloaded the latest tool Dependencies by @lucasg Dependencies Repo, and It didn't show the missing dll problem. I also ran Can you please clear my 2 doubts?
Thank you for helping me till here! |
WINVER is used to set the minimum compatible version of the WinAPI, using 5.1 on Windows 10 should be fine.
There is a wrapper, I mentioned this to you in #27 (comment) |
Hello @joachimmetz , |
Could be, the documentation is not perfect, the code is here https://github.com/libyal/libewf-legacy/tree/main/ewf.net should build with visual studio. Based on the CI tests should still build but note given I have no use for it might need some tweaking. Also see: https://ci.appveyor.com/project/libyal/libewf-legacy/builds/51212876/job/cqq1ik25ty4jgaia#L198 |
Thank you so much for guiding me! |
Dear @joachimmetz ,
I went through [https://github.com//issues/10] , I tried building for 64 bit I am getting error at libcfile's makefile and getting exit by status 1 every time, I am using MSYS2 64 bit to build it.
I don't know what is going wrong. I tried to follow the build instruction as well as the steps from the issue 10 but I am not getting anywhere... As discussed earlier in the issues, downloading the libewf.dll from internet is not a good idea either!
Can you please help me with building issue?
The text was updated successfully, but these errors were encountered: