file-windows
file-windows copied to clipboard
Query on Building this for 32-bit.
Thanks for your effort on 64-bit. I was able to clone your repo and build it on Ubuntu for 64-bit. However, no clue on how to do the same for 32-bit. Could you provide some pointers to get started? Thanks!
You can do some changes. libgnurx-2.5/Makefile:
< CC = x86_64-w64-mingw32-gcc -mthreads
---
> CC = i686-w64-mingw32-gcc-win32 -mthreads
file-windows/build.sh:
< sudo cp regex.h /usr/i686-w64-mingw32/include/
< sudo cp libregex.a /usr/i686-w64-mingw32/lib/
< sudo cp libgnurx.dll.a /usr/i686-w64-mingw32/lib/
---
> sudo cp regex.h /usr/x86_64-w64-mingw32/include/
> sudo cp libregex.a /usr/x86_64-w64-mingw32/lib/
> sudo cp libgnurx.dll.a /usr/x86_64-w64-mingw32/lib/
< ./configure --disable-silent-rules --enable-fsect-man5 --host=i686-w64-mingw32
---
> ./configure --disable-silent-rules --enable-fsect-man5 --host=x86_64-w64-mingw32
Others are same as 64-bit.
32-bit app may need a dll 'libgcc_s_sjlj-1.dll' to run. it's '/usr/lib/gcc/i686-w64-mingw32/7.3-win32/libgcc_s_sjlj-1.dll' on my ubuntu