Closed Zibri closed 1 year ago
I have just built my latest (see: https://github.com/doug-gilbert/sg3_utils ) using MinGW64 and Msys with './autogen.sh ; ./configure --enable-win32-spt-direct ; make ' and gcc version 9.3.0 and don't see any errors. Note the version here is "sg3_utils-1.47 [20210407] [svn: r894]" and my current version/revision is "sg3_utils-1.48 [20230111] [svn: r997]". Hopefully Hans will find time to update this repository. One difficulty with building my latest version is that ./configure has been removed and you need to run ./autogen.sh to generate it . And ./autogen.sh requires autoconf so you may need to install that. Removing ./configure and friends saves around 49000 lines in the sg3_utils packages but requires a bit more work to build.
Yep.. I forgot to run autogen.sh
./autogen.sh
./configure --enable-win32-spt-direct
make
This worked.
How to make the examples?
MINGW64 ~/sg3_utils/examples
$ make
gcc -g -O2 -W -Wall -iquote ../include -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c -o sg_simple1.o sg_simple1.c
sg_simple1.c:36:10: fatal error: sys/ioctl.h: No such file or directory
36 | #include <sys/ioctl.h>
| ^~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: sg_simple1.o] Error 1
What I did:
what I got: