Bugzilla – Attachment 1189 Details for
Bug 8337
Switch client interface to Qt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
How to link Qt statically to TigerVNC
BUILD-QT-TIGERVNC.txt (text/plain), 10.78 KB, created by
Pierre Ossman
on 2024-04-23 06:35:15 CEST
(
hide
)
Description:
How to link Qt statically to TigerVNC
Filename:
MIME Type:
Creator:
Pierre Ossman
Created:
2024-04-23 06:35:15 CEST
Size:
10.78 KB
patch
obsolete
> How to Build Qt TigerVNC -*-outline-*- > Rev1.0 2023-06-22 Qt Professional Service >================================================================================= >* Ubuntu 20 > >** Qt 5.15.2 on Ubuntu 20 > > export PATH=/opt/Qt/5.15.2/gcc_64/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_15_2-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_15_2-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release > > cd $HOME/Downloads/build-5_15_2-release > cmake --build . > > >** Qt 5.15.2 static-link Ubuntu 20 > > export PATH=/opt/Qt/Static/5.15.2/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_15_2-static-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_15_2-static-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-5_15_2-static-release > cmake --build . > > >** Qt 5.12.8 (apt-get installed) on Ubuntu 20 > > sudo apt-get install qml-module-qtquick > sudo apt-get install -y qtdeclarative5-dev > sudo apt-get install -y libqt5x11extras5-dev > sudo apt-get install -y qml-module-qt-labs-platform > > export PATH=/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_12_8-release > cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_12_8-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release > > cd $HOME/Downloads/build-5_12_8-release > cmake --build . > > >** Qt 5.12.11 on Ubuntu 20 > > export PATH=/opt/Qt/5.12.11/gcc_64/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_12_11-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_12_11-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release > > cd $HOME/Downloads/build-5_12_11-release > cmake --build . > > >** Qt 6.2.4 on Ubuntu 20 > > export PATH=/opt/Qt/6.2.4/gcc_64/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-6_2_4-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-6_2_4-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-6_2_4-release > cmake --build . > > >** Qt 6.2.4 static-link on Ubuntu 20 > > export PATH=/opt/Qt/Static/6.2.4/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-6_2_4-static-release > /usr/local/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-6_2_4-static-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=OFF -DBUILD_STATIC_GCC=OFF -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-6_2_4-static-release > cmake --build . > > >================================================================================= >* macOS > >** Qt 5.15.2 on macOS > > export PATH=$HOME/Qt/5.15.2/clang_64/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_15_2-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_15_2-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release > > cd $HOME/Downloads/build-5_15_2-release > cmake --build . > > >** Qt 5.15.2 static-link on macOS > > export PATH=$HOME/Qt/Static/5.15.2/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-5_15_2-static-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_15_2-static-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-5_15_2-static-release > cmake --build . > > >** Qt 5.12.11 on macOS > > export PATH=$HOME/Qt/5.12.11/clang_64/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin > > rm -rf $HOME/Downloads/build-5_12_11-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-5_12_11-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release > > cd $HOME/Downloads/build-5_12_11-release > cmake --build . > > >** Qt 6.2.4 on macOS > > export PATH=$HOME/Qt/6.2.4/clang_64/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-6_2_4-release > /opt/Qt/Tools/CMake/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-6_2_4-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-6_2_4-release > cmake --build . > > >** Qt 6.2.4 static-link on macOS > > export PATH=$HOME/Qt/Static/6.2.4/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin > > rm -rf $HOME/Downloads/build-6_2_4-static-release > /usr/local/bin/cmake -S /opt/QtProjects/cendio-tigervnc/tigervnc -B $HOME/Downloads/build-6_2_4-static-release -GNinja -DCMAKE_VERBOSE_MAKEFILE=1 -DCMAKE_BUILD_TYPE=Release -DBUILD_STATIC=OFF -DBUILD_STATIC_GCC=OFF -DCMAKE_THREAD_LIBS_INIT="pthread" -DCMAKE_HAVE_THREADS_LIBRARY=1 -DCMAKE_USE_WIN32_THREADS_INIT=0 -DCMAKE_USE_PTHREADS_INIT=1 -DTHREADS_PREFER_PTHREAD_FLAG=ON > > cd $HOME/Downloads/build-6_2_4-static-release > cmake --build . > > >================================================================================= >* Windows > >** Qt 5.15.2 on Windows > > ## NOTE: Execute in MSYS2 MinGW64 console. > > export PATH="/c/msys64/mingw64/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Qt/5.15.2/mingw81_64/bin:/c/Windows:/c/Windows/System32:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0" > > rm -rf C:/QtProjects/cendio-tigervnc/build-5_15_2-release > cmake.exe -S C:/QtProjects/cendio-tigervnc/tigervnc -B C:/QtProjects/cendio-tigervnc/build-5_15_2-release "-DCMAKE_GENERATOR=Ninja" "-DCMAKE_VERBOSE_MAKEFILE=1" "-DCMAKE_BUILD_TYPE=Release" > cd C:/QtProjects/cendio-tigervnc/build-5_15_2-release > cmake --build . > > >** Qt 5.15.2 static-link on Windows > > ## NOTE: Execute in MSYS2 MinGW64 console. > > export PATH="/c/msys64/mingw64/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Qt/Static/5.15.2/bin:/c/Windows:/c/Windows/System32:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0" > > rm -rf C:/QtProjects/cendio-tigervnc/build-5_15_2-static-release > cmake.exe -S C:/QtProjects/cendio-tigervnc/tigervnc -B C:/QtProjects/cendio-tigervnc/build-5_15_2-static-release "-DCMAKE_GENERATOR=Ninja" "-DCMAKE_VERBOSE_MAKEFILE=1" "-DCMAKE_BUILD_TYPE=Release" -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON > > cd C:/QtProjects/cendio-tigervnc/build-5_15_2-static-release > cmake --build . > > ## NOTE: Because libgnutls.a bundled with MinGW64 depends on some > ## DLL's (e.x p11-lit), the application cannot be build fully > ## statically. > > >** Qt 5.12.11 on Windows > > ## NOTE: Execute in MSYS2 MinGW64 console. > > export PATH="/c/msys64/mingw64/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Qt/5.12.11/mingw73_64/bin:/c/Windows:/c/Windows/System32:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0" > > rm -rf C:/QtProjects/cendio-tigervnc/build-5_12_11-release > cmake.exe -S C:/QtProjects/cendio-tigervnc/tigervnc -B C:/QtProjects/cendio-tigervnc/build-5_12_11-release "-DCMAKE_GENERATOR=Ninja" "-DCMAKE_VERBOSE_MAKEFILE=1" "-DCMAKE_BUILD_TYPE=Release" > cd C:/QtProjects/cendio-tigervnc/build-5_12_11-release > cmake --build . > > >** Qt 6.2.4 on Windows > > ## NOTE: Execute in MSYS2 MinGW64 console. > > export PATH="/c/msys64/mingw64/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Qt/6.2.4/mingw_64/bin:/c/Windows:/c/Windows/System32:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0" > > rm -rf C:/QtProjects/cendio-tigervnc/build-6_2_4-release > cmake.exe -S C:/QtProjects/cendio-tigervnc/tigervnc -B C:/QtProjects/cendio-tigervnc/build-6_2_4-release "-DCMAKE_GENERATOR=Ninja" "-DCMAKE_VERBOSE_MAKEFILE=1" "-DCMAKE_BUILD_TYPE=Release" > cd C:/QtProjects/cendio-tigervnc/build-6_2_4-release > cmake --build . > > >** Qt 6.2.4 static-link on Windows > > ## NOTE: Execute in MSYS2 MinGW64 console. > > export PATH="/c/msys64/mingw64/bin:/c/msys64/mingw64/bin:/c/msys64/usr/bin:/c/Qt/Static/6.2.4/bin:/c/Windows:/c/Windows/System32:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0" > > rm -rf C:/QtProjects/cendio-tigervnc/build-6_2_4-static-release > cmake.exe -S C:/QtProjects/cendio-tigervnc/tigervnc -B C:/QtProjects/cendio-tigervnc/build-6_2_4-static-release "-DCMAKE_GENERATOR=Ninja" "-DCMAKE_VERBOSE_MAKEFILE=1" "-DCMAKE_BUILD_TYPE=Release" -DBUILD_STATIC=ON -DBUILD_STATIC_GCC=ON > cd C:/QtProjects/cendio-tigervnc/build-6_2_4-static-release > cmake --build . > > ## NOTE: Because libgnutls.a bundled with MinGW64 depends on some > ## DLL's (e.x p11-lit), the application cannot be build fully > ## statically. > > >=================================================================================
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8337
:
1188
| 1189 |
1190