How to build Image Uploader (GUI) v1.3.3 from source on Windows

Thanks to the switch to the Conan package manager, the Image Uploader program can now be built (in its basic configuration) without any voodoo. The build process has finally become stable and reproducible.

You will need:

Building the program

Download the source code using git:

git clone https://github.com/zenden2k/image-uploader.git

Copy the file "Source\versioninfo.h.dist" to "Source\versioninfo.h".
Launch cmake-gui, select the image-uploader\Source directory. Also create and select a directory where the build process will take place.

To start the configuration process, click the Configure button, and choose the desired compiler (Visual Studio) and platform (Win32).

Description of CMake options:

  • IU_BUILD_QIMAGEUPLOADER - whether or not to build the Qt version (unfinished) of image uploader. If you don't have Qt 5 installed, you should turn this option off
  • IU_ENABLE_FFMPEG - if you want to build with support for the ffmpeg libraries, you'll need to build these libraries yourself and copy them (avcodec.lib, avformat.lib, avutil.lib, swscale.lib) into the Contrib\Lib directory. Also copy the include files into Contrib\include.
  • IU_ENABLE_MEGANZ - enable/disable support for the mega.io (mega.nz) cloud hosting service
  • IU_ENABLE_WEBVIEW2 - enable/disable the use of Microsoft Edge WebView2 instead of the Internet Explorer engine. For this option to work, you need to install Microsoft Edge WebView2 using the NuGet package manager (https://docs.microsoft.com/en-us/microsoft-edge/webview2/get-started/win32), then copy the header files (*.h) into the "Contrib\Include" directory, and copy the *.lib files into the Contrib\Lib directory.
  • IU_STATIC_RUNTIME - build the program with a static runtime (the /MT option). Enabled by default
  • IU_USE_OPENSSL - enabled, and should not be turned off

After the Configure step and adjusting the settings, click the "Generate" button, after which a Visual Studio solution will be generated.

It can then be opened using the Open Project button. This is the project that actually needs to be compiled.

To build the project (pulling in dependencies), I have set up a server with the missing packages (conan.svistunov.dev). However, if for some reason it's unavailable, the missing packages can be built and placed in the local cache by running the following command in each subdirectory of Contrib\conan:

conan create . zenden2k/stable --build missing


Comments
Write your comment
Nickname:
Nickname*:
Эх Сережа, что то ты совсем пропал (2022-05-20 19:48:36)
Эх Сережа, что то ты совсем пропал!