Updated Cross compile for windows from linux (markdown)
parent
8838586a62
commit
f6fd2f1b3d
|
@ -11,7 +11,7 @@ The custom way:
|
|||
|
||||
Assuming MXE is in ~/mxe-shared
|
||||
|
||||
PKG_CONFIG_LIBDIR=~/mxe-shared/usr/x86_64-w64-mingw32.shared/lib/pkgconfig cmake ../strawberry -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=../strawberry/cmake/Toolchain-x86_64-w64-mingw32-shared.cmake -DARCH=x86_64 -DENABLE_DBUS=OFF -DENABLE_WIN32_CONSOLE=OFF -DUSE_SYSTEM_TAGLIB=OFF -DProtobuf_PROTOC_EXECUTABLE=~/mxe-shared/usr/x86_64-pc-linux-gnu/bin/protoc -DBUILD_WITH_QT6=OFF
|
||||
PKG_CONFIG_LIBDIR=~/mxe-shared/usr/x86_64-w64-mingw32.shared/lib/pkgconfig cmake ../strawberry -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=~/mxe-shared/usr/x86_64-w64-mingw32.shared/qt6/lib/cmake -DCMAKE_TOOLCHAIN_FILE=../strawberry/cmake/Toolchain-x86_64-w64-mingw32-shared.cmake -DARCH=x86_64 -DBUILD_WITH_QT6=ON -DENABLE_DBUS=OFF -DENABLE_WIN32_CONSOLE=OFF -DUSE_SYSTEM_TAGLIB=OFF -DProtobuf_PROTOC_EXECUTABLE=~/mxe-shared/usr/x86_64-pc-linux-gnu/bin/protoc -DBUILD_WITH_QT6=OFF
|
||||
make -j$(nproc)
|
||||
mkdir -p platforms imageformats styles sqldrivers gio-modules gstreamer-plugins
|
||||
cp ~/mxe-shared/usr/x86_64-w64-mingw32.shared/qt5/plugins/platforms/qwindows.dll ./platforms/
|
||||
|
@ -21,7 +21,7 @@ Assuming MXE is in ~/mxe-shared
|
|||
cp ~/mxe-shared/usr/x86_64-w64-mingw32.shared/lib/gio/modules/libgiognutls.dll ./gio-modules/
|
||||
cp ~/mxe-shared/usr/x86_64-w64-mingw32.shared/bin/gstreamer-1.0/{libgstapp.dll,libgstcoreelements.dll,libgstaudioconvert.dll,libgstaudiofx.dll,libgstaudiomixer.dll,libgstaudioparsers.dll,libgstaudiorate.dll,libgstaudioresample.dll,libgstaudiotestsrc.dll,libgstautodetect.dll,libgstplayback.dll,libgstvolume.dll,libgstspectrum.dll,libgstequalizer.dll,libgstreplaygain.dll,libgsttypefindfunctions.dll,libgstgio.dll,libgstdirectsound.dll,libgstwasapi.dll,libgstpbtypes.dll,libgstapetag.dll,libgsticydemux.dll,libgstid3demux.dll,libgsttaglib.dll,libgsttcp.dll,libgstudp.dll,libgstsoup.dll,libgstcdio.dll,libgstrtp.dll,libgstrtsp.dll,libgstflac.dll,libgstwavparse.dll,libgstwavpack.dll,libgstogg.dll,libgstvorbis.dll,libgstopus.dll,libgstopusparse.dll,libgstspeex.dll,libgstlame.dll,libgstaiff.dll,libgstfaac.dll,libgstfaad.dll,libgstisomp4.dll,libgstasf.dll,libgstasfmux.dll,libgstlibav.dll} ./gstreamer-plugins/
|
||||
cp ../strawberry/dist/windows/{*.nsi,*.nsh,*.ico} .
|
||||
cp ~/mxe-shared/usr/x86_64-w64-mingw32.shared/bin/{sqlite3.exe,killproc.exe,gst-launch-1.0.exe} .
|
||||
cp ~/mxe-shared/usr/x86_64-w64-mingw32.shared/bin/{sqlite3.exe,gst-launch-1.0.exe} .
|
||||
|
||||
~/mxe-shared/tools/copydlldeps.sh -c -d . -F . -F ./platforms -F ./sqldrivers -F ./imageformats -F ./styles -F ./gstreamer-plugins -X ~/mxe-shared/usr/x86_64-w64-mingw32.shared/apps -R ~/mxe-shared/usr/x86_64-w64-mingw32.shared
|
||||
|
||||
|
|
Loading…
Reference in New Issue