Giulio_M Lo hai installato su Linux, ma a me serve il cross building per farlo girare su Windows.
Sono questi i passaggi non chiari
Cross-building for Windows-64 bit on Linux
Install mingw-w64 (On Debian/Ubuntu, install the package mingw-w64) and all packages needed to build GO under Linux.
Prepare 5 directores:
extracted wxWidgets sources [use the lastest release] to a directory (/wxsrc)
extract GO trunk sources to a directory (/gosrc)
create empty install directory (/inst)
create empty win build directory (/buildwin)
create empty linux build directory (/buildlinux)
In the following, I use the short path from above - normally you would put them somewhere under $HOME and use something like /home/user/GO/wxsrc.
Build wxWidgets
cd /wxsrc
./configure --host=i686-w64-mingw32 --prefix=/inst --enable-unicode
git apply /gosrc/wxWidgets/wxWidgets-fix-build-3.0.2.patch
(cd locale && make allmo)
make
make install
Build the tools for linux
cd /buildlinux
cmake -G "Unix Makefiles" /gosrc/src/build
make
Create toolchain definition for windows, file /inst/toolchain.def:
the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
SET(MSYS 1)
which compilers to use for C and C++
SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
SET(PKG_CONFIG_EXECUTABLE i686-w64-mingw32-pkg-config)
here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /inst)
adjust the default behaviour of the FIND_XXX() commands:
search headers and libraries in the target environment, search
programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
Build GO for windows
cd /buildwin
cmake -DCMAKE_TOOLCHAIN_FILE=/inst/toolchain.def /gosrc -DCMAKE_INSTALL_PREFIX=/inst -DSTATIC=1 -DIMPORT_EXECUTABLES=/buildlinux/ImportExecutables.cmake -DRTAUDIO_USE_ASIO=OFF
make
-DRTAUDIO_USE_ASIO=OFF turns building ASIO off - else you need to put the ASIO SDK into the sources
If you have installed NSIS too, run
make package
to create an installer
If you want to build a 64bit version, replace everywhere in this instruction i686-w64-mingw32 with x86_64-w64-mingw32.