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

Cannot build using MinGW #21

Closed
sdrtgdszhdfzhdf opened this issue May 30, 2016 · 10 comments
Closed

Cannot build using MinGW #21

sdrtgdszhdfzhdf opened this issue May 30, 2016 · 10 comments
Assignees
Labels

Comments

@sdrtgdszhdfzhdf
Copy link

I tried both Sections in https://github.com/libyal/libesedb/wiki/Building:
"Using Minimalist GNU for Windows (MinGW)" and "Using MSYS-MinGW"
(Yes, I use the msys shell and not the native Windows shell)

The problem is
" ./configure . No such file or directory"

make reports that no makefile is present, even though makefile.am is in the directory.

@joachimmetz
Copy link
Member

joachimmetz commented May 30, 2016

Use the source package or follow the instructions on how to create the configure script and make files: https://github.com/libyal/libesedb/wiki/Building#git

@joachimmetz joachimmetz self-assigned this May 30, 2016
@sdrtgdszhdfzhdf
Copy link
Author

Thank you for your answer.
You mean the source package of "libesedb" ?
where do I find that? I just downloaded "libesedb-master"

@joachimmetz
Copy link
Member

joachimmetz commented Jun 6, 2016

I just downloaded "libesedb-master"

That's not it.

From: https://github.com/libyal/libesedb/wiki/Building#source-package

To retrieve the source package go to the downloads page and download the file named:

libesedb-alpha-<version>.tar.gz

See actual wiki page for the link.

One note though, it's currently experimental versions that are available so to be verbose:

libesedb-experimental-<version>.tar.gz

@sudofly
Copy link

sudofly commented Jul 19, 2016

I'm also having problems using msys when running make I get:

libcfile_file.c:3670:17: error: macro "__IOCTL_DISK_" requires 3 arguments, but
only 2 given
                 IOCTL_DISK_GET_LENGTH_INFO,
                 ^
In file included from c:\mingw\include\winioctl.h:55:0,
                 from libcfile_file.c:51:
libcfile_file.c:3670:17: error: '__IOCTL_DISK_' undeclared (first use in this fu
nction)
                 IOCTL_DISK_GET_LENGTH_INFO,
                 ^
libcfile_file.c:3670:17: note: each undeclared identifier is reported only once
for each function it appears in
libcfile_file.c:3707:19: error: macro "__IOCTL_DISK_" requires 3 arguments, but
only 2 given
                   IOCTL_DISK_GET_DRIVE_GEOMETRY,
                   ^
make[1]: *** [libcfile_file.lo] Error 1
make[1]: Leaving directory `/MinGW/libesedb-20151205/libcfile'
make: *** [all-recursive] Error 1

@joachimmetz
Copy link
Member

@sudofly which Windows API version (WINVER) ?

@sudofly
Copy link

sudofly commented Jul 20, 2016

i'm compiling on Windows 10 and I set the WINVER var to 0x0501 as follows:

WINVER=0x0501
CPPFLAGS=-DWINVER=0x0501 ./configure --prefix=/mingw
  • is that the right way to do it?

@joachimmetz
Copy link
Member

joachimmetz commented Jul 20, 2016

is that the right way to do it?

Yes, however the issue seems to be somewhere else: c:\mingw\include\winioctl.h

IOCTL_DISK_GET_LENGTH_INFO is just a convenience macro for CTL_CODE

See: https://github.com/libyal/libcfile/blob/584847b4957874d49ce19944d59bc5c090344f31/libcfile/libcfile_file.c#L3591

error: '__IOCTL_DISK_' undeclared (first use in this function)

Indicates that something is acting up in the MinGW definitions.

@sudofly
Copy link

sudofly commented Jul 20, 2016

hmm.. we are wandering out of my skillset now :-)

is there a better way I can compile a windows executable, or even better somewhere where I can download pre-built binaries ?

Thanks

@joachimmetz
Copy link
Member

is there a better way I can compile a windows executable

Use Visual Studio

even better somewhere where I can download pre-built binaries ?

Not officially, the project status is experimental and a single person effort, maintaining binary builds, especially for Windows, it too time consuming.

@sudofly
Copy link

sudofly commented Jul 20, 2016

Not officially, the project status is experimental and a single person effort, maintaining binary builds, especially for Windows, it too time consuming.

case and point I guess!

I'll try and find an instance of VB and build from there. Cheers all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants