X-win cross compile script dependency error

I’m running a wsl ubuntu install, and trying to build from source for windows using the x-win script provided. I have been having some issues. running compile.sh on x64 target gives a error about boost not being installed despite

  1. boost being up to date in \usr\include\boost
  2. being able to copy the headed causing a error into a basic cpp file, compiled it and ran it with no errors.

Is this a issue with the install script, or the package, or am I missing something?

log from build/config below, had to remove some of the #define tsags because of char limit

project configured on Mon Apr 10 20:15:02 2023 by

waf 2.0.23 (abi 20, python 20712f0 on linux2)

using ./waf configure --keepflags --dist-target=mingw --also-include=/home/ardour/win-stack-w64/include --windows-vst --with-backends=jack,dummy --prefix=/home/ardour/win-stack-w64 --libdir=/home/ardour/win-stack-w64/lib


Checking for ‘gcc’ (C compiler)
find program=[‘gcc’, ‘cc’] paths=[‘/usr/local/sbin’, ‘/usr/local/bin’, ‘/usr/sbin’, ‘/usr/bin’, ‘/sbin’, ‘/bin’, ‘/usr/games’, ‘/usr/local/games’, ‘/usr/lib/wsl/lib’, ‘/mnt/c/Program Files/Common Files/Oracle/Java/javapath’, ‘/mnt/c/WINDOWS/system32’, ‘/mnt/c/WINDOWS’, ‘/mnt/c/WINDOWS/System32/Wbem’, ‘/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/’, ‘/mnt/c/WINDOWS/System32/OpenSSH/’, ‘/mnt/c/Program Files/PuTTY/’, ‘/mnt/c/Unknown-Horizons/python/Lib/site-packages/fife’, ‘/mnt/c/Users/Kian W/AppData/Local/Microsoft/WindowsApps’, ‘/mnt/c/Program Files/CMake/bin’, ‘/mnt/c/Program Files (x86)/ninja-win’, ‘/mnt/c/Users/Kian W/AppData/Local/Programs/Python/Python311/Scripts’, ‘/snap/bin’] var=‘CC’ → [‘x86_64-w64-mingw32-gcc’]
[‘x86_64-w64-mingw32-gcc’, ‘-dM’, ‘-E’, ‘-’]
out: #define DBL_MIN_EXP (-1021)

find program=[‘ar’] paths=[‘/usr/local/sbin’, ‘/usr/local/bin’, ‘/usr/sbin’, ‘/usr/bin’, ‘/sbin’, ‘/bin’, ‘/usr/games’, ‘/usr/local/games’, ‘/usr/lib/wsl/lib’, ‘/mnt/c/Program Files/Common Files/Oracle/Java/javapath’, ‘/mnt/c/WINDOWS/system32’, ‘/mnt/c/WINDOWS’, ‘/mnt/c/WINDOWS/System32/Wbem’, ‘/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/’, ‘/mnt/c/WINDOWS/System32/OpenSSH/’, ‘/mnt/c/Program Files/PuTTY/’, ‘/mnt/c/Unknown-Horizons/python/Lib/site-packages/fife’, ‘/mnt/c/Users/Kian W/AppData/Local/Microsoft/WindowsApps’, ‘/mnt/c/Program Files/CMake/bin’, ‘/mnt/c/Program Files (x86)/ninja-win’, ‘/mnt/c/Users/Kian W/AppData/Local/Programs/Python/Python311/Scripts’, ‘/snap/bin’] var=‘AR’ → [‘x86_64-w64-mingw32-ar’]
x86_64-w64-mingw32-gcc

Checking for ‘g++’ (C++ compiler)
find program=[‘g++’, ‘c++’] paths=[‘/usr/local/sbin’, ‘/usr/local/bin’, ‘/usr/sbin’, ‘/usr/bin’, ‘/sbin’, ‘/bin’, ‘/usr/games’, ‘/usr/local/games’, ‘/usr/lib/wsl/lib’, ‘/mnt/c/Program Files/Common Files/Oracle/Java/javapath’, ‘/mnt/c/WINDOWS/system32’, ‘/mnt/c/WINDOWS’, ‘/mnt/c/WINDOWS/System32/Wbem’, ‘/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/’, ‘/mnt/c/WINDOWS/System32/OpenSSH/’, ‘/mnt/c/Program Files/PuTTY/’, ‘/mnt/c/Unknown-Horizons/python/Lib/site-packages/fife’, ‘/mnt/c/Users/Kian W/AppData/Local/Microsoft/WindowsApps’, ‘/mnt/c/Program Files/CMake/bin’, ‘/mnt/c/Program Files (x86)/ninja-win’, ‘/mnt/c/Users/Kian W/AppData/Local/Programs/Python/Python311/Scripts’, ‘/snap/bin’] var=‘CXX’ → [‘x86_64-w64-mingw32-g++’]
[‘x86_64-w64-mingw32-g++’, ‘-dM’, ‘-E’, ‘-’]
out: #define DBL_MIN_EXP (-1021)
#define FLT32X_MAX_EXP 1024
#define UINT_LEAST16_MAX 0xffff
#define __ATOMIC_ACQUIRE 2
#define FLT128_MAX_10_EXP 4932
#define FLT_MIN 1.17549435082228750796873653722224568e-38F
#define __GCC_IEC_559_COMPLEX 2
#define UINT_LEAST8_TYPE unsigned char
#define SIZEOF_FLOAT80 16
#define _WIN32 1
#define __INTMAX_C(c) c ## LL
#define CHAR_BIT 8
#define UINT8_MAX 0xff
#define _WIN64 1
#define WINT_MAX 0xffff
#define FLT32_MIN_EXP (-125)
#define ORDER_LITTLE_ENDIAN 1234
#define SIZE_MAX 0xffffffffffffffffULL
#define WCHAR_MAX 0xffff
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 1
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 1
#define DBL_DENORM_MIN ((double)4.94065645841246544176568792868221372e-324L)
#define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 1
#define __GCC_ATOMIC_CHAR_LOCK_FREE 2
#define __GCC_IEC_559 2
#define FLT32X_DECIMAL_DIG 17
#define FLT_EVAL_METHOD 0
#define FLT64_DECIMAL_DIG 17
#define __GCC_ATOMIC_CHAR32_T_LOCK_FREE 2
#define __x86_64 1
#define UINT_FAST64_MAX 0xffffffffffffffffULL
#define SIG_ATOMIC_TYPE int
#define DBL_MIN_10_EXP (-307)
#define FINITE_MATH_ONLY 0
#define GNUC_PATCHLEVEL 0
#define FLT32_HAS_DENORM 1
#define UINT_FAST8_MAX 0xff
#define __has_include(STR) has_include(STR)
#define _stdcall attribute((stdcall))
#define DEC64_MAX_EXP 385
#define __INT8_C(c) c
#define INT_LEAST8_WIDTH 8
#define UINT_LEAST64_MAX 0xffffffffffffffffULL
#define SHRT_MAX 0x7fff
#define LDBL_MAX 1.18973149535723176502126385303097021e+4932L
#define FLT64X_MAX_10_EXP 4932
#define UINT_LEAST8_MAX 0xff
#define __GCC_ATOMIC_BOOL_LOCK_FREE 2
#define FLT128_DENORM_MIN 6.47517511943802511092443895822764655e-4966F128
#define UINTMAX_TYPE long long unsigned int
#define DEC32_EPSILON 1E-6DF
#define FLT_EVAL_METHOD_TS_18661_3 0
#define UINT32_MAX 0xffffffffU
#define LDBL_MAX_EXP 16384
#define FLT128_MIN_EXP (-16381)
#define WINT_MIN 0
#define FLT128_MIN_10_EXP (-4931)
#define INT_LEAST16_WIDTH 16
#define SCHAR_MAX 0x7f
#define FLT128_MANT_DIG 113
#define WCHAR_MIN 0
#define __INT64_C(c) c ## LL
#define DBL_DIG 15
#define __GCC_ATOMIC_POINTER_LOCK_FREE 2
#define FLT64X_MANT_DIG 64
#define SIZEOF_INT 4
#define SIZEOF_POINTER 8
#define USER_LABEL_PREFIX
#define FLT64X_EPSILON 1.08420217248550443400745280086994171e-19F64x
#define STDC_HOSTED 1
#define __WIN32 1
#define LDBL_HAS_INFINITY 1
#define __WIN64 1
#define FLT32_DIG 6
#define FLT_EPSILON 1.19209289550781250000000000000000000e-7F
#define SHRT_WIDTH 16
#define LDBL_MIN 3.36210314311209350626267781732175260e-4932L
#define STDC_UTF_16 1
#define DEC32_MAX 9.999999E96DF
#define FLT64X_DENORM_MIN 3.64519953188247460252840593361941982e-4951F64x
#define MINGW32 1
#define FLT32X_HAS_INFINITY 1
#define INT32_MAX 0x7fffffff
#define INT_WIDTH 32
#define SIZEOF_LONG 4
#define __UINT16_C(c) c
#define PTRDIFF_WIDTH 64
#define DECIMAL_DIG 21
#define FLT64_EPSILON 2.22044604925031308084726333618164062e-16F64
#define INTMAX_WIDTH 64
#define __has_include_next(STR) has_include_next(STR)
#define FLT64X_MIN_10_EXP (-4931)
#define LDBL_HAS_QUIET_NAN 1
#define FLT64_MANT_DIG 53
#define GNUC 9
#define _cdecl attribute((cdecl))
#define MMX 1
#define FLT_HAS_DENORM 1
#define SIZEOF_LONG_DOUBLE 16
#define BIGGEST_ALIGNMENT 16
#define FLT64_MAX_10_EXP 308
#define DBL_MAX ((double)1.79769313486231570814527423731704357e+308L)
#define _thiscall attribute((thiscall))
#define INT_FAST32_MAX 0x7fffffff
#define __WINNT 1
#define DBL_HAS_INFINITY 1
#define WINNT 1
#define __HAVE_SPECULATION_SAFE_VALUE 1
#define DEC32_MIN_EXP (-94)
#define INTPTR_WIDTH 64
#define FLT32X_HAS_DENORM 1
#define INT_FAST16_TYPE short int
#define _fastcall attribute((fastcall))
#define LDBL_HAS_DENORM 1
#define FLT128_HAS_INFINITY 1
#define DEC128_MAX 9.999999999999999999999999999999999E6144DL
#define INT_LEAST32_MAX 0x7fffffff
#define DEC32_MIN 1E-95DF
#define DBL_MAX_EXP 1024
#define WCHAR_WIDTH 16
#define FLT32_MAX 3.40282346638528859811704183484516925e+38F32
#define DEC128_EPSILON 1E-33DL
#define SSE2_MATH 1
#define __ATOMIC_HLE_RELEASE 131072
#define WIN32 1
#define PTRDIFF_MAX 0x7fffffffffffffffLL
#define __amd64 1
#define __ATOMIC_HLE_ACQUIRE 65536
#define FLT32_HAS_QUIET_NAN 1
#define LONG_LONG_MAX 0x7fffffffffffffffLL
#define SIZEOF_SIZE_T 8
#define FLT64X_MIN_EXP (-16381)
#define SIZEOF_WINT_T 2
#define LONG_LONG_WIDTH 64
#define FLT32_MAX_EXP 128
#define __GXX_ABI_VERSION 1013
#define FLT_MIN_EXP (-125)
#define FLT64X_HAS_QUIET_NAN 1
#define INT_FAST64_TYPE long long int
#define FLT64_DENORM_MIN 4.94065645841246544176568792868221372e-324F64
#define DBL_MIN ((double)2.22507385850720138309023271733240406e-308L)
#define FLT32X_EPSILON 2.22044604925031308084726333618164062e-16F32x
#define DECIMAL_BID_FORMAT 1
#define FLT64_MIN_EXP (-1021)
#define __GXX_TYPEINFO_EQUALITY_INLINE 0
#define FLT64_MIN_10_EXP (-307)
#define FLT64X_DECIMAL_DIG 21
#define DEC128_MIN 1E-6143DL
#define REGISTER_PREFIX
#define UINT16_MAX 0xffff
#define DBL_HAS_DENORM 1
#define __cdecl attribute((cdecl))
#define FLT32_MIN 1.17549435082228750796873653722224568e-38F32
#define UINT8_TYPE unsigned char
#define NO_INLINE 1
#define FLT_MANT_DIG 24
#define LDBL_DECIMAL_DIG 21
#define VERSION “9.3-win32 20200320”
#define __UINT64_C(c) c ## ULL
#define __GCC_ATOMIC_INT_LOCK_FREE 2
#define FLT128_MAX_EXP 16384
#define FLT32_MANT_DIG 24
#define FLOAT_WORD_ORDER ORDER_LITTLE_ENDIAN
#define FLT128_HAS_DENORM 1
#define FLT128_DIG 33
#define SCHAR_WIDTH 8
#define __INT32_C(c) c
#define DEC64_EPSILON 1E-15DD
#define ORDER_PDP_ENDIAN 3412
#define DEC128_MIN_EXP (-6142)
#define FLT32_MAX_10_EXP 38
#define INT_FAST32_TYPE int
#define UINT_LEAST16_TYPE short unsigned int
#define FLT64X_HAS_INFINITY 1
#define INT16_MAX 0x7fff
#define SIZE_TYPE long long unsigned int
#define UINT64_MAX 0xffffffffffffffffULL
#define FLT64X_DIG 18
#define INT8_TYPE signed char
#define GCC_ASM_FLAG_OUTPUTS 1
#define FLT_RADIX 2
#define INT_LEAST16_TYPE short int
#define LDBL_EPSILON 1.08420217248550443400745280086994171e-19L
#define __UINTMAX_C(c) c ## ULL
#define SSE_MATH 1
#define __k8 1
#define SEH 1
#define SIG_ATOMIC_MAX 0x7fffffff
#define __GCC_ATOMIC_WCHAR_T_LOCK_FREE 2
#define SIZEOF_PTRDIFF_T 8
#define FLT32X_MANT_DIG 53
#define x86_64 1
#define FLT32X_MIN_EXP (-1021)
#define DEC32_SUBNORMAL_MIN 0.000001E-95DF
#define MSVCRT 1
#define INT_FAST16_MAX 0x7fff
#define FLT64_DIG 15
#define UINT_FAST32_MAX 0xffffffffU
#define UINT_LEAST64_TYPE long long unsigned int
#define FLT_HAS_QUIET_NAN 1
#define FLT_MAX_10_EXP 38
#define LONG_MAX 0x7fffffffL
#define FLT64X_HAS_DENORM 1
#define DEC128_SUBNORMAL_MIN 0.000000000000000000000000000000001E-6143DL
#define FLT_HAS_INFINITY 1
#define UINT_FAST16_TYPE short unsigned int
#define DEC64_MAX 9.999999999999999E384DD
#define INT_FAST32_WIDTH 32
#define CHAR16_TYPE short unsigned int
#define __PRAGMA_REDEFINE_EXTNAME 1
#define SIZE_WIDTH 64
#define __SEG_FS 1
#define INT_LEAST16_MAX 0x7fff
#define DEC64_MANT_DIG 16
#define INT64_MAX 0x7fffffffffffffffLL
#define UINT_LEAST32_MAX 0xffffffffU
#define __SEG_GS 1
#define FLT32_DENORM_MIN 1.40129846432481707092372958328991613e-45F32
#define __GCC_ATOMIC_LONG_LOCK_FREE 2
#define SIG_ATOMIC_WIDTH 32
#define INT_LEAST64_TYPE long long int
#define INT16_TYPE short int
#define INT_LEAST8_TYPE signed char
#define STDC_VERSION 201710L
#define DEC32_MAX_EXP 97
#define INT_FAST8_MAX 0x7f
#define FLT128_MAX 1.18973149535723176508575932662800702e+4932F128
#define INTPTR_MAX 0x7fffffffffffffffLL
#define __GXX_MERGED_TYPEINFO_NAMES 0
#define FLT64_HAS_QUIET_NAN 1
#define __stdcall attribute((stdcall))
#define FLT32_MIN_10_EXP (-37)
#define SSE2 1
#define FLT32X_DIG 15
#define LDBL_MANT_DIG 64
#define DBL_HAS_QUIET_NAN 1
#define FLT64_HAS_INFINITY 1
#define FLT64X_MAX 1.18973149535723176502126385303097021e+4932F64x
#define SIG_ATOMIC_MIN (-SIG_ATOMIC_MAX - 1)
#define k8 1
#define INTPTR_TYPE long long int
#define UINT16_TYPE short unsigned int
#define WCHAR_TYPE short unsigned int
#define SIZEOF_FLOAT 4
#define pic 1
#define UINTPTR_MAX 0xffffffffffffffffULL
#define INT_FAST64_WIDTH 64
#define DEC64_MIN_EXP (-382)
#define FLT32_DECIMAL_DIG 9
#define INT_FAST64_MAX 0x7fffffffffffffffLL
#define __GCC_ATOMIC_TEST_AND_SET_TRUEVAL 1
#define FLT_DIG 6
#define FLT32_HAS_INFINITY 1
#define FLT64X_MAX_EXP 16384
#define UINT_FAST64_TYPE long long unsigned int
#define INT_MAX 0x7fffffff
#define amd64 1
#define WIN32 1
#define code_model_medium 1
#define INT64_TYPE long long int
#define FLT_MAX_EXP 128
#define WIN64 1
#define ORDER_BIG_ENDIAN 4321
#define DBL_MANT_DIG 53
#define SIZEOF_FLOAT128 16
#define INT_LEAST64_MAX 0x7fffffffffffffffLL
#define __GCC_ATOMIC_CHAR16_T_LOCK_FREE 2
#define DEC64_MIN 1E-383DD
#define WINT_TYPE short unsigned int
#define UINT_LEAST32_TYPE unsigned int
#define SIZEOF_SHORT 2
#define SSE 1
#define LDBL_MIN_EXP (-16381)
#define FLT64_MAX 1.79769313486231570814527423731704357e+308F64
#define WINT_WIDTH 16
#define INT_LEAST8_MAX 0x7f
#define FLT32X_MAX_10_EXP 308
#define SIZEOF_INT128 16
#define LDBL_MAX_10_EXP 4932
#define __ATOMIC_RELAXED 0
#define DBL_EPSILON ((double)2.22044604925031308084726333618164062e-16L)
#define __thiscall attribute((thiscall))
#define FLT128_MIN 3.36210314311209350626267781732175260e-4932F128
#define __UINT8_C(c) c
#define FLT64_MAX_EXP 1024
#define INT_LEAST32_TYPE int
#define SIZEOF_WCHAR_T 2
#define UINT64_TYPE long long unsigned int
#define FLT128_HAS_QUIET_NAN 1
#define INT_FAST8_TYPE signed char
#define __fastcall attribute((fastcall))
#define FLT64X_MIN 3.36210314311209350626267781732175260e-4932F64x
#define GNUC_STDC_INLINE 1
#define FLT64_HAS_DENORM 1
#define FLT32_EPSILON 1.19209289550781250000000000000000000e-7F32
#define DBL_DECIMAL_DIG 17
#define STDC_UTF_32 1
#define INT_FAST8_WIDTH 8
#define FXSR 1
#define DEC_EVAL_METHOD 2
#define FLT32X_MAX 1.79769313486231570814527423731704357e+308F32x
#define MINGW64 1
#define __UINT32_C(c) c ## U
#define INTMAX_MAX 0x7fffffffffffffffLL
#define BYTE_ORDER ORDER_LITTLE_ENDIAN
#define WINNT 1
#define FLT_DENORM_MIN 1.40129846432481707092372958328991613e-45F
#define INT8_MAX 0x7f
#define LONG_WIDTH 32
#define PIC 1
#define UINT_FAST32_TYPE unsigned int
#define CHAR32_TYPE unsigned int
#define FLT_MAX 3.40282346638528859811704183484516925e+38F
#define INT32_TYPE int
#define SIZEOF_DOUBLE 8
#define FLT_MIN_10_EXP (-37)
#define FLT64_MIN 2.22507385850720138309023271733240406e-308F64
#define INT_LEAST32_WIDTH 32
#define INTMAX_TYPE long long int
#define _INTEGRAL_MAX_BITS 64
#define DEC128_MAX_EXP 6145
#define FLT32X_HAS_QUIET_NAN 1
#define __ATOMIC_CONSUME 1
#define GNUC_MINOR 3
#define INT_FAST16_WIDTH 16
#define UINTMAX_MAX 0xffffffffffffffffULL
#define DEC32_MANT_DIG 7
#define FLT32X_DENORM_MIN 4.94065645841246544176568792868221372e-324F32x
#define DBL_MAX_10_EXP 308
#define LDBL_DENORM_MIN 3.64519953188247460252840593361941982e-4951L
#define __INT16_C(c) c
#define STDC 1
#define PTRDIFF_TYPE long long int
#define __ATOMIC_SEQ_CST 5
#define UINT32_TYPE unsigned int
#define FLT32X_MIN_10_EXP (-307)
#define UINTPTR_TYPE long long unsigned int
#define DEC64_SUBNORMAL_MIN 0.000000000000001E-383DD
#define DEC128_MANT_DIG 34
#define LDBL_MIN_10_EXP (-4931)
#define FLT128_EPSILON 1.92592994438723585305597794258492732e-34F128
#define SIZEOF_LONG_LONG 8
#define FLT128_DECIMAL_DIG 36
#define __GCC_ATOMIC_LLONG_LOCK_FREE 2
#define FLT32X_MIN 2.22507385850720138309023271733240406e-308F32x
#define LDBL_DIG 18
#define FLT_DECIMAL_DIG 9
#define UINT_FAST16_MAX 0xffff
#define __GCC_ATOMIC_SHORT_LOCK_FREE 2
#define INT_LEAST64_WIDTH 64
#define UINT_FAST8_TYPE unsigned char
#define WIN64 1
#define __ATOMIC_ACQ_REL 4
#define __ATOMIC_RELEASE 3
#define __declspec(x) attribute((x))

find program=[‘ar’] paths=[‘/usr/local/sbin’, ‘/usr/local/bin’, ‘/usr/sbin’, ‘/usr/bin’, ‘/sbin’, ‘/bin’, ‘/usr/games’, ‘/usr/local/games’, ‘/usr/lib/wsl/lib’, ‘/mnt/c/Program Files/Common Files/Oracle/Java/javapath’, ‘/mnt/c/WINDOWS/system32’, ‘/mnt/c/WINDOWS’, ‘/mnt/c/WINDOWS/System32/Wbem’, ‘/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/’, ‘/mnt/c/WINDOWS/System32/OpenSSH/’, ‘/mnt/c/Program Files/PuTTY/’, ‘/mnt/c/Unknown-Horizons/python/Lib/site-packages/fife’, ‘/mnt/c/Users/Kian W/AppData/Local/Microsoft/WindowsApps’, ‘/mnt/c/Program Files/CMake/bin’, ‘/mnt/c/Program Files (x86)/ninja-win’, ‘/mnt/c/Users/Kian W/AppData/Local/Programs/Python/Python311/Scripts’, ‘/snap/bin’] var=‘AR’ → [‘x86_64-w64-mingw32-ar’]
x86_64-w64-mingw32-g++

Checking for program ‘windres’
x86_64-w64-mingw32-windres
find program=[‘windres’] paths=[‘/usr/local/sbin’, ‘/usr/local/bin’, ‘/usr/sbin’, ‘/usr/bin’, ‘/sbin’, ‘/bin’, ‘/usr/games’, ‘/usr/local/games’, ‘/usr/lib/wsl/lib’, ‘/mnt/c/Program Files/Common Files/Oracle/Java/javapath’, ‘/mnt/c/WINDOWS/system32’, ‘/mnt/c/WINDOWS’, ‘/mnt/c/WINDOWS/System32/Wbem’, ‘/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/’, ‘/mnt/c/WINDOWS/System32/OpenSSH/’, ‘/mnt/c/Program Files/PuTTY/’, ‘/mnt/c/Unknown-Horizons/python/Lib/site-packages/fife’, ‘/mnt/c/Users/Kian W/AppData/Local/Microsoft/WindowsApps’, ‘/mnt/c/Program Files/CMake/bin’, ‘/mnt/c/Program Files (x86)/ninja-win’, ‘/mnt/c/Users/Kian W/AppData/Local/Programs/Python/Python311/Scripts’, ‘/snap/bin’] var=‘WINRC’ → [‘x86_64-w64-mingw32-windres’]

Checking for boost library >= 1.56
==>
#include <boost/version.hpp>
#if !defined (BOOST_VERSION) || BOOST_VERSION < 105600
#error boost >= 1.56 is not available
#endif
int main(void) { return 0; }

<==
[1/2] Compiling e[32mbuild/.conf_check_fe50722d1a137e93c8a5bf9681f43dae/test.cppe[0m

[‘x86_64-w64-mingw32-g++’, ‘-I/home/kian/ardour/ardour’, ‘-mstackrealign’, ‘-Og’, ‘-I/home/ardour/win-stack-w64/include’, ‘-I/home/kian/ardour/ardour/build/.conf_check_fe50722d1a137e93c8a5bf9681f43dae/testbuild’, ‘-DINTERNAL_SHARED_LIBS=1’, ‘…/test.cpp’, ‘-c’, ‘-o/home/kian/ardour/ardour/build/.conf_check_fe50722d1a137e93c8a5bf9681f43dae/testbuild/test.cpp.1.o’]
err: …/test.cpp:1:10: fatal error: boost/version.hpp: No such file or directory
1 | #include <boost/version.hpp>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.

from /home/kian/ardour/ardour: Test does not build: Traceback (most recent call last):
File “/home/kian/ardour/ardour/.waf-2.0.23-8ba091fb015bc715bba24c9cf03ec913/waflib/Configure.py”, line 335, in run_build
bld.compile()
File “/home/kian/ardour/ardour/.waf-2.0.23-8ba091fb015bc715bba24c9cf03ec913/waflib/Build.py”, line 176, in compile
raise Errors.BuildError(self.producer.error)
BuildError: Build failed
→ task in ‘testprog’ failed with exit status 1 (run with -v to display more information)

too old
Please install boost version 1.56 or higher.
from /home/kian/ardour/ardour: The configuration failed

I regret that as a general rule we cannot provide support for building Ardour from source.

On Linux, this is a relatively easy process thanks to distro packaging of all the required dependencies.

Building for Windows is a very painful process, and we don’t have the resources to help people who run into issues.

Possibly someone will weigh in with a suggestion anyway. From the output above, there’s almost nothing correct about your setup for cross-compiling (mostly a guess).

That is quite vague. What is considered “up to date” for your distribution? Why not provide the actual version installed?
The test is very simple and is displayed in the output, have you tried compiling that test outside of the Ardour environment?
Copy that code into file called boost_test.cpp and compile it from your terminal:
gcc boost_test.cpp
That should show pretty clearly if your compile environment is correct or not. No output if it finds the correct boost header, or the error message gets printed if not.

This does not look like you set your config options properly, it looks like the defaults from a build server:

Do you actually have the Windows modified dependencies installed in /home/ardour/win-stack-w64, and is it actually readable from where you are apparently running (/home/kian/ardour/ardour)?

boost v1.65 installed via apt, I have tested boost with a simple cpp file compiled with g++ both in /home and /home/kian/ardour/ardour, Im just trying right now to get dependencys working, I havent yet attempted to configure the build.

The error is quite self explanatory : it can’t find the file version.hpp in the boost subfolder.
So if the file is in /usr/include/boost you need to tell the toolchain to look for the include file in /usr/include

Looking at the compiling info it only has include directives for ‘-I/home/kian/ardour/ardour’, ‘-I/home/ardour/win-stack-w64/include’ and ‘-I/home/kian/ardour/ardour/build’.

gcc/g++ under linux usually has /usr/include as default search path but that doesn’t seem to be true for your mingw32 setup for some reason.

I fixed the issue by resetting my mingw search path to /user/include, and got quite a bit further in the compile, but now the dependency regex.h is missing, despite pcre being installed via apt, also in the path /usr/include/

regex.h comes from libc6-dev

Does /usr/include/regex.h exist? What’s the error message?

yes, and mingw compiles the test program used by ardour when I tried manually. the error message is the same “regex.h” could’t be found.

Screw this, im just going to use lmms

LMMS and Ardour are very different programs. I wouldn’t consider LMMS a substitute for Ardour, but if you are not looking to record and edit audio, just sequence it, it could be a good tool for you. If you are merely frustrated by the difficulty of your chosen build process, you could pay as little as a dollar to have a working binary built and provided by the project leaders.

The script is meant to cross-compile (x-compile) Ardour on GNU/Linux. I doubt that it will work with WSL.

The most recent success story to compile Ardour on Window was with MSVC and vcpkg.io. However vcpkg does not provide gtk[mm]2.x, but the gtk3 build description can apparently be changed (vcpkg/vcpkg.json at master · microsoft/vcpkg · GitHub) to instead build gtk2. – I have however no first hand experience with this.

WSL is GNU/Linux, only running in under a Windows hypervisor of sorts, so theoretically there should be no difference running the script there.
Unless, of course, there are subtle bugs or assumptions in the script.

That said, I second GuntherT’s suggestion pay a few dollars and download the official installer, if Kian really wants to run Ardour in Windows.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.