The cross compile install code here has errors, also doesn't seem to be necessary anymore. Instead Mingw64 can compile the code "ideally" with no modifications to the Linux build. To achieve a successful build with --disable debug
and --enable openmp
the following patches are needed:
<Windows.h>
to <windows.h>
(lower case) in get_avail_mem_size.c, get_phys_mem_size.c and get_resident_set_size.cHAVE__PROC_MEMINFO
in getPeakRSS()
, hence generating an error. This can be bypassed by returning 0. It seems that /proc/meminfo
is hardcoded into autoconf rather than being platform dependant which is causing a problem in cross compile builds (including WASM )AC_FUNC_MALLOC
and AC_FUNC_REALLOC
need to be commented in configure.ac
due to a problem with Mingw64. (not related to ngspice). This can be corrected using a case
statement. build commands are:
$>mingw64-configure ../configure --disable-debug --enable-openmp $>mingw64-make
Thanks for the patch suggestions:
<windows.h> to <windows.h> done (git branch pre-master)</windows.h></windows.h>
AC_FUNC_MALLOC and AC_FUNC_REALLOC are removed from configure.ac
HAVE__PROC_MEMINFO The availability of proc/meminfo is checked in configure.ac, line 646