Is there any documention on building 64 bit?
After following readme.windows for MinGW/CodeBlocks, I built and run xLights.cbp and xSchedule.cbp (32-bit) MinGW_Debug and MinGW_Release successfully (had to ignore wxvc and wx64).
So, to build 64 bit, I am guessing I need to build "64bit MinGW_Debug" and "64bit MinGW_Release"
but first to build those, do I need to build $(#wx64)? I see this referenced only in "64bit MinGW_Debug".
Do I need to make a separate directory for wxWidgets for 64-bit? (E:\wxWidgets64-3.1.0\) in addition to (E:\wxWidgets-3.1.0\)
And then compile. Can I compile by just adding TARGET_CPU=X64 to the command line specified for wxWidgets in readme.windows for "Instructions for MinGW"
Change:
mingw32-make -f makefile.gcc --debug MONOLITHIC=1 SHARED=1 UNICODE=1 CXXFLAGS="-std=gnu++14" BUILD=debug -j 10
to:
mingw32-make -f makefile.gcc --debug TARGET_CPU=X64 MONOLITHIC=1 SHARED=1 UNICODE=1 CXXFLAGS="-std=gnu++14" BUILD=debug -j 10
I built wxWidget like this successfully
But then I tried building the Mingw 64 bit versions on xlights. Both debug and release are greyed out in the IDE. I tried changing the Toolchain executables (gcc.exe => i686-w64-mingw32-c++.exe, etc), but still no go.
When I try to do "Build" from the menu (BUild->Build), I get:
"xLights 4.0 - 64bit MinGW_Debug": The compiler's setup is invalid, so Code::Blocks cannot find/run the compiler.
Probably the toolchain path within the compiler options is not setup correctly?! (Do you have a compiler installed?)
Goto "Settings->Compiler...->Global compiler settings->unknown->Toolchain executables" and fix the compiler's setup.
Skipping...
Nothing to be done (all items are up-to-date).
I tried copying the default configuration and named it "gnu_gcc_64bit_compiler", then set the toolchain executables there (i686-w64-mingw32-c++.exe, i686-w64-mingw32-g++.exe ...)
-------------- Build: 64bit MinGW_Debug in xLights 4.0 (compiler: gnu_gcc_64bit_compiler)---------------
i686-w64-mingw32-g++.exe -fno-strict-aliasing -Wno-unused-local-typedefs -DwxUSE_UNICODE -pedantic -m64 -g -pipe -mthreads -std=gnu++14 -fno-keep-inline-dllexport -Wno-attributes -D__GNUWIN32__ -D__WXMSW__ -DWXUSINGDLL -D__WXDEBUG__ -D_USE_MATH_DEFINES -m64 -I(invalid)\lib\gcc_dll\mswud -Iinclude -Isequencer -I..\xLights -Ieffects -Ieffects\ -Imodels -Ieffects\assist -Imodels\ -Iffmpeg-dev\include -I..\include -Isupport -IE:\wxWidgets-3.1.0\include -IE:\wxWidgets-3.1.0\contrib\include -c E:\xLights-master\xLights\AudioManager.cpp -o .objs_64d\AudioManager.o
E:\xLights-master\xLights\AudioManager.cpp:1:0: sorry, unimplemented: 64-bit mode not compiled in
#include "AudioManager.h"
^
Assembler messages:
Fatal error: no compiled in support for x86_64
Process terminated with status 1 (0 minute(s), 0 second(s))
2 error(s), 0 warning(s) (0 minute(s), 0 second(s))