file-windows icon indicating copy to clipboard operation
file-windows copied to clipboard

Query on Building this for 32-bit.

Open KrishVikram opened this issue 6 years ago • 1 comments

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!

KrishVikram avatar May 30 '19 07:05 KrishVikram

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

sanzzjk avatar Jun 10 '19 08:06 sanzzjk