Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Setup-SSH compilation on Windows with CMake
- -----------------------------------------------------------------------------------------------------------------
- Download and install Git
- https://git-scm.com/download/win
- Download and install CMake
- https://cmake.org/files/v3.12/cmake-3.12.0-rc3-win64-x64.msi
- Download and install MSYS 1
- https://netix.dl.sourceforge.net/project/mingw/MSYS/Base/msys-core/msys-1.0.11/MSYS-1.0.11.exe
- Download and install MinGW64
- https://sourceforge.net/projects/mingw-w64/files/latest/download
- Download the exe and the 2 libraries from there :
- http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_0.26-1_win32.zip
- http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
- http://ftp.acc.umu.se/pub/gnome/binaries/win32/glib/2.28/glib_2.28.8-1_win32.zip
- put them all to C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
- Download and extract the archive http://gnuwin32.sourceforge.net/downlinks/libintl.php
- and put the libraries to C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\lib
- Download and extract the Gtk bundle :
- http://www.tarnyko.net/repo/gtk3_build_system/gtk+-bundle_3.6.4-20130513_win32.zip or
- http://www.tarnyko.net/repo/gtk3_build_system/gtk+-bundle_3.6.4-20130513_win64.zip
- For Setup-SSh download, extract and compile libcurl with the following commands (see libcurl_source\docs\INSTALL for more info) :
- https://curl.haxx.se/download/curl-7.61.0.zip
- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars32.bat" or
- "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
- cd C:\curl-7.21.7_x64\winbuild
- nmake /f Makefile.vc mode=dll DEBUG=no MACHINE=x32 USE_IPV6=no USE_SSL=no USE_SSH2=no or
- nmake /f Makefile.vc mode=dll DEBUG=no MACHINE=x64 USE_IPV6=no USE_SSL=no USE_SSH2=no
- Generated files in C:\curl-7.21.7_x64\builds\bin include & lib
- Add the following paths to the environment variable PATH:
- C:\Program Files\CMake\bin
- C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin
- C:\msys\1.0\bin
- C:\GTK\bin or C:\gtk_win64\bin
- Create the system environment variable PKG_CONFIG_PATH
- with the value egual to C:\GTK\lib\pkgconfig or C:\gtk_win64\lib\pkgconfig
- Logoff and back on to apply the changes
- Navigate to the place where you want to make your project and enter the following command
- git clone https://gitlab.inria.fr/mjolly/Setup-SSH or
- git clone https://gitlab.inria.fr/mjolly/autofeedkey or
- git clone https://gitlab.inria.fr/mjolly/Backup-Conf
- Then create a sub-folder called build and navigate to the build folder and type the following commands
- cmake .. -G "MSYS Makefiles"
- mingw32-make
- And finally put all the dynamic libraries from c:\GTK\bin or C:\gtk_win64\bin and the one from c:\CURL\bin (if needed) next to the compiled executable
- -----------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement