<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to configure QT6 static?]]></title><description><![CDATA[<p dir="auto">HI, I am a new beginner of QT6.<br />
What i want to do is to make an application using QT6 and then deploy it to an embedded linux device which is not going to install QT6 source inside.</p>
<p dir="auto">I searched some documents and I found that I had to build my QT6 source by static to deploy my application stand alone.</p>
<p dir="auto">Then, I was following this video;<br />
<a href="http://youtube.com/watch?v=2qsR8Dw8uzA" target="_blank" rel="noopener noreferrer nofollow ugc">youtube.com/watch?v=2qsR8Dw8uzA</a></p>
<p dir="auto">AND<br />
i was trying to use<br />
$  make -j8<br />
command<br />
then, i was stuck with this error message.<br />
$ make: *** No targets specified and no makefile found.  Stop.</p>
<p dir="auto">What would be the problem?<br />
My log is like this;</p>
<p dir="auto">-- Configure summary:</p>
<p dir="auto">Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)<br />
Compiler: gcc 11.4.0<br />
Build options:<br />
Mode ................................... release<br />
Optimize release build for size ........ no<br />
Fully optimize release builds (-O3) .... no<br />
Building shared libraries .............. no<br />
Using C standard ....................... C11<br />
Using C++ standard ..................... C++17<br />
Using ccache ........................... no<br />
Unity Build ............................ no<br />
Using new DTAGS ........................ yes<br />
Relocatable ............................ no<br />
Using precompiled headers .............. yes<br />
Using Link Time Optimization (LTCG) .... no<br />
Using Intel CET ........................ yes<br />
Target compiler supports:<br />
x86 Intrinsics ....................... Basic VAES AVX512VBMI2<br />
Sanitizers:<br />
Addresses ............................ no<br />
Threads .............................. no<br />
Memory ............................... no<br />
Fuzzer (instrumentation only) ........ no<br />
Undefined ............................ no<br />
Build parts ............................ libs tools<br />
Qt modules and options:<br />
Qt Concurrent .......................... yes<br />
Qt D-Bus ............................... yes<br />
Qt D-Bus directly linked to libdbus .... yes<br />
Qt Gui ................................. yes<br />
Qt Network ............................. yes<br />
Qt PrintSupport ........................ yes<br />
Qt Sql ................................. yes<br />
Qt Testlib ............................. yes<br />
Qt Widgets ............................. yes<br />
Qt Xml ................................. yes<br />
Support enabled for:<br />
Using pkg-config ....................... yes<br />
udev ................................... no<br />
OpenSSL ................................ no<br />
Qt directly linked to OpenSSL ........ no<br />
OpenSSL 1.1 ............................ no<br />
OpenSSL 3.0 ............................ no<br />
Using system zlib ...................... yes<br />
Zstandard support ...................... no<br />
Thread support ......................... yes<br />
Common build options:<br />
Linker can resolve circular dependencies  yes<br />
Qt Core:<br />
backtrace .............................. yes<br />
DoubleConversion ....................... yes<br />
Using system DoubleConversion ........ no<br />
GLib ................................... yes<br />
ICU .................................... no<br />
Using system libb2 ..................... no<br />
Built-in copy of the MIME database ..... yes<br />
cpp/winrt base ......................... no<br />
Tracing backend ........................ &lt;none&gt;<br />
Logging backends:<br />
journald ............................. no<br />
syslog ............................... no<br />
slog2 ................................ no<br />
PCRE2 .................................. yes<br />
Using system PCRE2 ................... yes<br />
CLONE_PIDFD support in forkfd .......... yes<br />
Application permissions ................ no<br />
Qt Sql:<br />
SQL item models ........................ yes<br />
Qt Network:<br />
getifaddrs() ........................... yes<br />
IPv6 ifname ............................ yes<br />
libproxy ............................... no<br />
Linux AF_NETLINK ....................... yes<br />
DTLS ................................... no<br />
OCSP-stapling .......................... no<br />
SCTP ................................... no<br />
Use system proxies ..................... yes<br />
GSSAPI ................................. no<br />
Brotli Decompression Support ........... yes<br />
qIsEffectiveTLD() ...................... yes<br />
Built-in publicsuffix database ....... yes<br />
System publicsuffix database ......... yes<br />
Core tools:<br />
Android deployment tool ................ yes<br />
macOS deployment tool .................. no<br />
Windows deployment tool ................ no<br />
qmake .................................. yes<br />
Qt Gui:<br />
Accessibility .......................... yes<br />
FreeType ............................... yes<br />
Using system FreeType ................ yes<br />
HarfBuzz ............................... yes<br />
Using system HarfBuzz ................ no<br />
Fontconfig ............................. yes<br />
Image formats:<br />
GIF .................................. yes<br />
ICO .................................. yes<br />
JPEG ................................. yes<br />
Using system libjpeg ............... no<br />
PNG .................................. yes<br />
Using system libpng ................ yes<br />
Text formats:<br />
HtmlParser ........................... yes<br />
CssParser ............................ yes<br />
OdfWriter ............................ yes<br />
MarkdownReader ....................... yes<br />
Using system libmd4c ............... no<br />
MarkdownWriter ....................... yes<br />
EGL .................................... yes<br />
OpenVG ................................. no<br />
OpenGL:<br />
Desktop OpenGL ....................... yes<br />
OpenGL ES 2.0 ........................ no<br />
OpenGL ES 3.0 ........................ no<br />
OpenGL ES 3.1 ........................ no<br />
OpenGL ES 3.2 ........................ no<br />
Vulkan ................................. no<br />
Session Management ..................... yes<br />
Features used by QPA backends:<br />
evdev .................................. yes<br />
libinput ............................... no<br />
HiRes wheel support in libinput ........ no<br />
INTEGRITY HID .......................... no<br />
mtdev .................................. no<br />
tslib .................................. no<br />
xkbcommon .............................. yes<br />
X11 specific:<br />
XLib ................................. yes<br />
XCB Xlib ............................. yes<br />
EGL on X11 ........................... yes<br />
xkbcommon-x11 ........................ yes<br />
xcb-sm ............................... no<br />
QPA backends:<br />
DirectFB ............................... no<br />
EGLFS .................................. yes<br />
EGLFS details:<br />
EGLFS OpenWFD ........................ no<br />
EGLFS i.Mx6 .......................... no<br />
EGLFS i.Mx6 Wayland .................. no<br />
EGLFS RCAR ........................... no<br />
EGLFS EGLDevice ...................... yes<br />
EGLFS GBM ............................ no<br />
EGLFS VSP2 ........................... no<br />
EGLFS Mali ........................... no<br />
EGLFS Raspberry Pi ................... no<br />
EGLFS X11 ............................ yes<br />
LinuxFB ................................ yes<br />
VNC .................................... yes<br />
VK_KHR_display ......................... no<br />
QNX:<br />
lgmon ................................ no<br />
IMF .................................. no<br />
XCB:<br />
Using system-provided xcb-xinput ..... no<br />
GL integrations:<br />
GLX Plugin ......................... no<br />
XCB GLX .......................... no<br />
EGL-X11 Plugin ..................... no<br />
Windows:<br />
Direct 2D ............................ no<br />
Direct 2D 1.1 ........................ no<br />
DirectWrite .......................... no<br />
DirectWrite 3 ........................ no<br />
Qt Widgets:<br />
GTK+ ................................... no<br />
Styles ................................. Fusion Windows<br />
Qt Testlib:<br />
Tester for item models ................. yes<br />
Batch tests ............................ no<br />
Qt PrintSupport:<br />
CUPS ................................... no<br />
Qt Sql Drivers:<br />
DB2 (IBM) .............................. no<br />
InterBase .............................. no<br />
MySql .................................. no<br />
OCI (Oracle) ........................... no<br />
ODBC ................................... no<br />
PostgreSQL ............................. no<br />
SQLite ................................. yes<br />
Using system provided SQLite ......... no<br />
Further Image Formats:<br />
JasPer ................................. no<br />
MNG .................................... no<br />
TIFF ................................... yes<br />
Using system libtiff ................. no<br />
WEBP ................................... yes<br />
Using system libwebp ................. no<br />
Qt QML:<br />
QML network support .................... yes<br />
QML debugging and profiling support .... yes<br />
QML just-in-time compiler .............. yes<br />
QML XML http request ................... yes<br />
QML Locale ............................. yes<br />
Qt QML Models:<br />
QML list model ......................... yes<br />
QML delegate model ..................... yes<br />
Qt Quick:<br />
AnimatedImage item ..................... yes<br />
Canvas item ............................ yes<br />
Support for Qt Quick Designer .......... yes<br />
Flipable item .......................... yes<br />
GridView item .......................... yes<br />
ListView item .......................... yes<br />
TableView item ......................... yes<br />
TreeView item .......................... yes<br />
Path support ........................... yes<br />
PathView item .......................... yes<br />
Positioner items ....................... yes<br />
Repeater item .......................... yes<br />
ShaderEffect item ...................... yes<br />
Sprite item ............................ yes<br />
Qt Quick Templates 2:<br />
Hover support .......................... yes<br />
Multi-touch support .................... yes<br />
Calendar support ....................... yes<br />
Qt Quick Controls 2:<br />
Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows<br />
QtQuick3D:<br />
Assimp ................................. yes<br />
System Assimp .......................... no<br />
Qt Multimedia:<br />
Spatial Audio .......................... yes<br />
Spatial Audio (Quick3D) ................ yes<br />
Low level Audio Backend:<br />
ALSA (experimental) .................. no<br />
PulseAudio ........................... no<br />
MMRenderer ........................... no<br />
CoreAudio ............................ no<br />
Windows Media SDK .................... no<br />
Open SLES (Android) .................. no<br />
Web Assembly ......................... no<br />
Plugin:<br />
GStreamer 1.0 ........................ no<br />
FFmpeg ............................... no<br />
MMRenderer ........................... no<br />
AVFoundation ......................... no<br />
Windows Media Foundation ............. no<br />
Hardware acceleration and features:<br />
Video for Linux ...................... yes<br />
VAAPI support ........................ no<br />
Linux DMA buffer support ............. yes<br />
VideoToolbox ......................... no<br />
Qt 3D:<br />
Assimp ................................. yes<br />
System Assimp .......................... no<br />
Use SSE2 instructions .................. yes<br />
Use AVX2 instructions .................. no<br />
Aspects:<br />
Render aspect ........................ yes<br />
Input aspect ......................... yes<br />
Logic aspect ......................... yes<br />
Animation aspect ..................... yes<br />
Extras aspect ........................ yes<br />
Qt 3D APIs:<br />
Vulkan ................................. no<br />
Qt 3D Renderers:<br />
OpenGL Renderer ........................ yes<br />
RHI Renderer ........................... yes<br />
Qt3D Geometry Loaders:<br />
Autodesk FBX ........................... no<br />
Qt 5 Compatibility Libraries:<br />
iconv .................................. yes<br />
Qt Charts Types:<br />
Area Chart ............................. yes<br />
Line Chart ............................. yes<br />
Spline Chart ........................... yes<br />
Scatter Chart .......................... yes<br />
Bar Chart .............................. yes<br />
Pie Chart .............................. yes<br />
Boxplot Chart .......................... yes<br />
Candlestick Chart ...................... yes<br />
Qt Axis Types:<br />
DateTime Axis .......................... yes<br />
Qt Bluetooth:<br />
BlueZ .................................. no<br />
BlueZ Low Energy ....................... no<br />
Linux Crypto API ....................... no<br />
WinRT Bluetooth API .................... no<br />
Qt Tools:<br />
Qt Assistant ........................... yes<br />
QDoc ................................... no<br />
Clang-based lupdate parser ............. no<br />
Qt Designer ............................ yes<br />
Qt Distance Field Generator ............ yes<br />
Qt Linguist ............................ yes<br />
pixeltool .............................. yes<br />
qdbus .................................. yes<br />
Qt Attributions Scanner ................ yes<br />
qtdiag ................................. yes<br />
qtplugininfo ........................... yes<br />
Serial Port:<br />
ntddmodm ............................... no<br />
WebEngine Repository Build Options:<br />
Build Ninja ............................ no<br />
Build Gn ............................... yes<br />
Jumbo Build ............................ yes<br />
Developer build ........................ no<br />
Build QtWebEngine Modules:<br />
Build QtWebEngineCore ................ no<br />
Build QtWebEngineWidgets ............. no<br />
Build QtWebEngineQuick ............... no<br />
Build QtPdf Modules:<br />
Build QtPdfWidgets ................... no<br />
Build QtPdfQuick ..................... no<br />
Optional system libraries:<br />
re2 .................................. no<br />
icu .................................. no<br />
libwebp, libwebpmux and libwebpdemux . no<br />
opus ................................. no<br />
ffmpeg ............................... no<br />
libvpx ............................... no<br />
snappy ............................... no<br />
glib ................................. yes<br />
zlib ................................. yes<br />
minizip .............................. no<br />
libevent ............................. no<br />
libxml2 and libxslt .................. no<br />
lcms2 ................................ no<br />
png .................................. yes<br />
jpeg ................................. no<br />
libopenjpeg2 ......................... no<br />
harfbuzz ............................. no<br />
freetype ............................. yes<br />
libpci ............................... no<br />
Qt 3rdparty libs:<br />
qtfreetype ........................... no<br />
qtharfbuzz ........................... yes<br />
qtpng ................................ no<br />
qtjpeg ............................... yes<br />
qtzlib ............................... no<br />
Qt Protobuf tools:<br />
Qt Protobuf generator ................ no<br />
Qt GRPC:<br />
gRPC support ......................... yes<br />
Native gRPC support .................. no<br />
Qt GRPC tools:<br />
Qt GRPC generator .................... no<br />
Qt Opcua:<br />
Open62541 ............................ yes<br />
Unified Automation C++ SDK ........... no<br />
Support for namespace 0 NodeId names . yes<br />
Namespace 0 NodeIds generator ........ no<br />
Open62541 security support ........... no<br />
Support for global discovery server .. no<br />
Qt Remote Objects:<br />
High Availability Manager (ham) ...... no<br />
Qt Scxml:<br />
ECMAScript data model for QtScxml .... yes<br />
Qt Sensors:<br />
sensorfw ............................. no<br />
sensorfw_enabled_with_cmake .......... no<br />
Qt SerialBus:<br />
Socket CAN ........................... yes<br />
Socket CAN FD ........................ yes<br />
SerialPort Support ................... yes<br />
Qt TextToSpeech:<br />
Flite ................................ no<br />
Flite with ALSA ...................... no<br />
Speech Dispatcher .................... no<br />
Qt Virtualkeyboard:<br />
Desktop integration .................. yes<br />
Built-in layouts ..................... yes<br />
Key navigation ....................... no<br />
Retro style as default ............... no<br />
Sensitive Debug ...................... no<br />
Cerence .............................. no<br />
Static Linking ..................... no<br />
Handwriting ........................ no<br />
Alphabetic ....................... no<br />
CJK .............................. no<br />
XT9 ................................ no<br />
XT9 Debug ........................ no<br />
XT9 9-key layouts ................ no<br />
Bundle resources ................... no<br />
Handwriting ...................... no<br />
XT9 .............................. no<br />
Hunspell ............................. no<br />
Using Hunspell copy from 3rdparty/ . no<br />
OpenWnn .............................. yes<br />
MyScript ............................. no<br />
Language support enabled for:<br />
Arabic ............................. yes<br />
Bulgarian .......................... yes<br />
Czech .............................. yes<br />
Danish ............................. yes<br />
German ............................. yes<br />
Greek .............................. yes<br />
English GB ......................... yes<br />
English US ......................... yes<br />
Spanish ............................ yes<br />
Spanish Mexico ..................... yes<br />
Estonian ........................... yes<br />
Farsi .............................. yes<br />
Finnish ............................ yes<br />
French Canada ...................... yes<br />
French France ...................... yes<br />
Hebrew ............................. yes<br />
Hindi .............................. yes<br />
Croatian ........................... yes<br />
Hungarian .......................... yes<br />
Indonesian ......................... yes<br />
Italian ............................ yes<br />
Japanese ........................... yes<br />
Korean ............................. yes<br />
Malay .............................. yes<br />
Norwegian .......................... yes<br />
Dutch .............................. yes<br />
Polish ............................. yes<br />
Portuguese Brazil .................. yes<br />
Portuguese Portugal ................ yes<br />
Romanian ........................... yes<br />
Russian ............................ yes<br />
Slovak ............................. yes<br />
Slovenian .......................... yes<br />
Albanian ........................... yes<br />
Serbian ............................ yes<br />
Swedish ............................ yes<br />
Thai ............................... yes<br />
Turkish ............................ yes<br />
Ukrainian .......................... yes<br />
Vietnamese ......................... yes<br />
Simplified Chinese ................. yes<br />
Traditional Chinese ................ yes<br />
HongKong Chinese ................... no<br />
Traditional chinese input methods:<br />
Zhuyin ............................. yes<br />
Cangjie ............................ yes</p>
<p dir="auto">Note: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library.<br />
Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available.</p>
<p dir="auto">WARNING: No backend for low level audio found.<br />
WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.<br />
Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation.<br />
On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.<br />
On macOS, you can use Homebrew's llvm package.<br />
You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check.<br />
WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found.<br />
You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.<br />
WARNING: QtWebEngine won't be built. Static build is not supported.<br />
WARNING: QtPdf won't be built. node.js version 12 or later is required.<br />
WARNING: SensorFW support currently not enabled with cmake</p>
<p dir="auto">-- Configuring done<br />
-- Generating done<br />
-- Build files have been written to: /home/autobase/Qt/6.5.3/Src<br />
autobase@ubuntu22044:~/Qt/6.5.3/Src$ make -j8<br />
make: *** No targets specified and no makefile found.  Stop.</p>
]]></description><link>https://forum.qt.io/topic/154318/how-to-configure-qt6-static</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 20:30:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/154318.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Feb 2024 02:58:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to configure QT6 static? on Thu, 27 Feb 2025 07:57:33 GMT]]></title><description><![CDATA[<p dir="auto">the cause was a bad format in module-definition (.def file) which, for unknown reasons, generated that error when linking ...<br />
Now Qt 6.8.2 works fine, thank you for help.</p>
]]></description><link>https://forum.qt.io/post/821517</link><guid isPermaLink="true">https://forum.qt.io/post/821517</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Thu, 27 Feb 2025 07:57:33 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 12:32:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rparon">@<bdi>rparon</bdi></a> Then you should check your CMakeLists.txt file or post it here, so others can take a look. Something must be wrong there.</p>
]]></description><link>https://forum.qt.io/post/821474</link><guid isPermaLink="true">https://forum.qt.io/post/821474</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 26 Feb 2025 12:32:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:38:24 GMT]]></title><description><![CDATA[<p dir="auto">a possibility, which I have not investigated, is that Qt Creator or CMake may store something outside the build directory, but I am not aware of that...</p>
]]></description><link>https://forum.qt.io/post/821469</link><guid isPermaLink="true">https://forum.qt.io/post/821469</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:38:24 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:27:52 GMT]]></title><description><![CDATA[<p dir="auto">sure, it was the first think to do...</p>
<ol>
<li>in build directory manually delete all files and folders (CMake cache,MOC files etc.etc.)</li>
<li>manually delete CMakeList.txt.user to force Qt Creator to redefine all the makefiles</li>
</ol>
<p dir="auto">you may imagine I was quite surprised to see exactly the same error reported -&gt; LINK : fatal error LNK1181: cannot open input file '(.obj'</p>
]]></description><link>https://forum.qt.io/post/821468</link><guid isPermaLink="true">https://forum.qt.io/post/821468</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:18:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rparon">@<bdi>rparon</bdi></a> I'm not talking about building Qt, I'm talking about building your project</p>
]]></description><link>https://forum.qt.io/post/821465</link><guid isPermaLink="true">https://forum.qt.io/post/821465</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:13:50 GMT]]></title><description><![CDATA[<p dir="auto">yes, I put the sources of Qt 6.8.2 in C:/Qt/6.8.2/64 and the library was compiled with VS2022 after executing</p>
<p dir="auto">configure.bat -platform win32-msvc -release -static -static-runtime -prefix C:\Qt/Qt6.8.2/64 -commercial -confirm-license -plugin-manifests -nomake examples -nomake tests</p>
<p dir="auto">then</p>
<p dir="auto">cmake --build --parallel</p>
<p dir="auto">ninja install</p>
<p dir="auto">still I have previous version in  C:/Qt/6.8.1/64 and  C:/Qt/6.8.1/32 but I suppose there are no global vars which may cause conflicts...</p>
]]></description><link>https://forum.qt.io/post/821464</link><guid isPermaLink="true">https://forum.qt.io/post/821464</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:13:50 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:04:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rparon">@<bdi>rparon</bdi></a> Did you do a complete rebuild after switching to that Qt version?</p>
]]></description><link>https://forum.qt.io/post/821461</link><guid isPermaLink="true">https://forum.qt.io/post/821461</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 10:02:22 GMT]]></title><description><![CDATA[<p dir="auto">thank you for the comment,<br />
yes, despite the many warnings (also requesting the folder of CLang)   the compling process terminates and I able to run<br />
ninja install<br />
however whenI try to compile my project (QML + C++) the linking process terminates showing a strange error, see below ,cannot open input file '(.obj'</p>
<p dir="auto">[ 91%] Linking CXX static library myproject.lib<br />
[ 92%] Built target myproject<br />
[ 92%] Built target myprojectx_autogen_timestamp_deps<br />
[ 93%] Automatic MOC for target myprojectx<br />
[ 93%] Built target myprojectx_autogen<br />
[ 94%] Running AUTOMOC file extraction for target myprojectx<br />
[ 94%] Running moc --collect-json for target myprojectx<br />
[ 97%] Building CXX object CMakeFiles/myprojectx.dir/myprojectx_autogen/mocs_compilation.cpp.obj<br />
[ 97%] Building CXX object CMakeFiles/myprojectx.dir/myprojectx/myprojectxx.cpp.obj<br />
mocs_compilation.cpp<br />
myprojectxx.cpp<br />
[ 98%] Linking CXX shared library myprojectx.dll</p>
<p dir="auto">....</p>
<p dir="auto">failed (exit code 1181) with the following output:<br />
LINK : fatal error LNK1181: cannot open input file '(.obj'<br />
jom: E:\bin\ppp\windows\64\CMakeFiles\myprojectx.dir\build.make [myprojectx.dll] Error 2<br />
jom: E:\bin\ppp\windows\64\CMakeFiles\Makefile2 [CMakeFiles\myprojectx.dir\all] Error 2<br />
jom: E:\bin\ppp\windows\64\Makefile [all] Error 2<br />
01:47:28: The process "C:\CMake\bin\cmake.exe" exited with code 2.<br />
01:47:28: Error while building/deploying project myprojectx (kit: Qt 6.8.1(64))<br />
01:47:28: When executing step "Build"<br />
01:47:28: Elapsed time: 00:29.</p>
<p dir="auto">which seems strange as I am unable to locate a file name with this string / substring '(.obj' inside....</p>
<p dir="auto">do you have any clue to solve this problem ?</p>
]]></description><link>https://forum.qt.io/post/821460</link><guid isPermaLink="true">https://forum.qt.io/post/821460</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Wed, 26 Feb 2025 10:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 08:46:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/rparon">@<bdi>rparon</bdi></a> said in <a href="/post/821445">How to configure QT6 static?</a>:</p>
<blockquote>
<p dir="auto">I am able to compile version 6.8.1 but with version 6.8.2 I get many warnings and finally it compiles about 12000 lines (6.8.2) or source instead of about 18000 (6.8.1)</p>
</blockquote>
<p dir="auto">So, does the build succeed or not? The fact that it compiles less files can be related to what modules where activated when running configure script.</p>
]]></description><link>https://forum.qt.io/post/821450</link><guid isPermaLink="true">https://forum.qt.io/post/821450</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Wed, 26 Feb 2025 08:46:16 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Wed, 26 Feb 2025 08:10:44 GMT]]></title><description><![CDATA[<p dir="auto">is someone static compiling 6.8.2 in Windows 11 with VS2022 ?<br />
I run the command</p>
<p dir="auto">configure.bat -platform win32-msvc -release -static -static-runtime -prefix C:\Qt/Qt6.8.2/64 -commercial -confirm-license -plugin-manifests -nomake examples -nomake tests</p>
<p dir="auto">I am able to compile version 6.8.1 but with version 6.8.2 I get many warnings and finally it compiles about 12000 lines (6.8.2) or source instead of about 18000 (6.8.1)</p>
]]></description><link>https://forum.qt.io/post/821445</link><guid isPermaLink="true">https://forum.qt.io/post/821445</guid><dc:creator><![CDATA[rparon]]></dc:creator><pubDate>Wed, 26 Feb 2025 08:10:44 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Fri, 14 Feb 2025 06:22:17 GMT]]></title><description><![CDATA[<p dir="auto">I use cmake directly and successful. This is my configure:</p>
<pre><code>cmake -S ../.. ^
  -G Ninja ^
  -DCMAKE_BUILD_TYPE=Debug ^
  -DBUILD_SHARED_LIBS=OFF ^
  -DFEATURE_static_runtime=ON ^
  -DCMAKE_INSTALL_PREFIX="C:/Library/QT/6.8.1/VS2019/x64-debug-static" ^
  -DBUILD_qtdoc=OFF ^
  -DBUILD_qtwebengine=OFF ^
  -DBUILD_qtwebview=OFF ^
  -DBUILD_qtwayland=OFF ^
  -DBUILD_WITH_PCH=OFF ^
  -DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE ^
  -DQT_QMAKE_TARGET_MKSPEC=win32-msvc ^
  -DCMAKE_C_COMPILER=cl ^
  -DCMAKE_CXX_COMPILER=cl ^
  -DQT_BUILD_TESTS=FALSE ^
  -DQT_BUILD_EXAMPLES=FALSE ^
  -DFEATURE_cxx20=OFF ^
  -DFEATURE_cxx2b=OFF ^
  -DFEATURE_ssl=ON ^
  -DINPUT_openssl=linked ^
  -DFEATURE_system_zlib=ON ^
  -DFEATURE_system_sqlite=ON ^
  -DINPUT_libpng=system ^
  -DINPUT_libjpeg=system ^
  -DINPUT_freetype=system ^
  -DINPUT_harfbuzz=system ^
  -DINPUT_pcre=system ^
  -DINPUT_doubleconversion=system ^
  -DINPUT_webp=system ^
  -DINPUT_tiff=system ^
  -DFEATURE_icu=ON ^
  -DFEATURE_gif=ON ^
  -DFEATURE_ico=ON ^
  -DFEATURE_vulkan=OFF ^
  -DFEATURE_xcb=OFF ^
  -DFEATURE_egl=OFF ^
  -DFEATURE_libudev=OFF ^
  -DFEATURE_slog2=OFF ^
  -DFEATURE_dbus=OFF ^
  -DCMAKE_CXX_STANDARD=17 ^
  -DCMAKE_C_STANDARD=11 ^
  -DCMAKE_EXE_LINKER_FLAGS="brotlicommon.lib brotlidec.lib brotlienc.lib bz2d.lib deflatestatic.lib libsharpyuv.lib lzma.lib rpcrt4.lib usp10.lib"
</code></pre>
<p dir="auto">The key should be to specify libs using CMAKE_EXE_LINKER_FLAGS</p>
]]></description><link>https://forum.qt.io/post/820609</link><guid isPermaLink="true">https://forum.qt.io/post/820609</guid><dc:creator><![CDATA[Peal Wang]]></dc:creator><pubDate>Fri, 14 Feb 2025 06:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Fri, 07 Feb 2025 05:41:14 GMT]]></title><description><![CDATA[<p dir="auto">This is my configure:</p>
<pre><code>md build\static-debug
..\..\configure.bat ^
   -platform win32-msvc ^
    -nomake tests ^
    -nomake examples ^
    -opensource -confirm-license ^
    -prefix ..\..\output\static-debug ^
    -no-pch ^
    -debug ^
    -static ^
    -static-runtime ^
    -ssl ^
    -openssl ^
    -openssl-linked ^
    -icu ^
    -gif ^
    -ico ^
    -opengl ^
    -no-egl ^
    -no-vulkan ^
    -no-xcb ^
    -no-libudev ^
    -no-slog2 ^
    -no-dbus ^
    -skip qtdoc ^
    -skip qtwayland ^
    -skip qtwebengine ^
    -skip qtwebview ^
    -system-zlib ^
    -system-libpng ^
    -system-libjpeg ^
    -system-freetype ^
    -system-harfbuzz ^
    -system-sqlite ^
    -system-pcre ^
    -system-doubleconversion ^
    -system-webp ^
    -system-tiff
</code></pre>
<p dir="auto">however, build failed with:</p>
<pre><code>  正在创建库 qtshadertools\tools\qsb\qsb.lib 和对象 qtshadertools\tools\qsb\qsb.exp
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_code，函数 LZMAEncode 中引用了该符号
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_end，函数 LZMASetupDecode 中引用了该符号
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_memusage，函数 LZMADecode 中引用了该符号
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_lzma_preset，函数 TIFFInitLZMA 中引用了该符号
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_stream_encoder，函数 LZMAPreEncode 中引用了该符号
tiffd.lib(tif_lzma.c.obj) : error LNK2019: 无法解析的外部符号 lzma_stream_decoder，函数 LZMADecode 中引用了该符号
libwebp.lib(picture_csp_enc.c.obj) : error LNK2019: 无法解析的外部符号 SharpYuvConvert，函数 PreprocessARGB 中引用了该符号
libwebp.lib(picture_csp_enc.c.obj) : error LNK2019: 无法解析的外部符号 SharpYuvGetConversionMatrix，函数 PreprocessARGB 中引用了该符号
libwebp.lib(picture_csp_enc.c.obj) : error LNK2019: 无法解析的外部符号 SharpYuvInit，函数 ImportYUVAFromRGBA 中引用了该符号
harfbuzz.lib(hb-uniscribe.cc.obj) : error LNK2019: 无法解析的外部符号 __imp_UuidCreate，函数 "void __cdecl _hb_generate_unique_face_name(wchar_t *,unsigned int *)" (?_hb_generate_unique_face_name@@YAXPEA_WPEAI@Z) 中引用了该符号
harfbuzz.lib(hb-uniscribe.cc.obj) : error LNK2019: 无法解析的外部符号 ScriptFreeCache，函数 _hb_uniscribe_shaper_font_data_destroy 中引用了该符号
harfbuzz.lib(hb-uniscribe.cc.obj) : error LNK2019: 无法解析的外部符号 ScriptItemize，函数 "long __cdecl hb_ScriptItemizeOpenType(wchar_t const *,int,int,struct tag_SCRIPT_CONTROL const *,struct tag_SCRIPT_STATE const *,struct tag_SCRIPT_ITEM *,unsigned long *,int *)" (?hb_ScriptItemizeOpenType@@YAJPEB_WHHPEBUtag_SCRIPT_CONTROL@@PEBUtag_SCRIPT_STATE@@PEAUtag_SCRIPT_ITEM@@PEAKPEAH@Z) 中引用了该符号
harfbuzz.lib(hb-uniscribe.cc.obj) : error LNK2019: 无法解析的外部符号 ScriptShape，函数 "long __cdecl hb_ScriptShapeOpenType(struct HDC__ *,void * *,struct tag_SCRIPT_ANALYSIS *,unsigned long,unsigned long,int *,struct textrange_properties * *,int,wchar_t const *,int,int,unsigned short *,struct script_charprop *,unsigned short *,struct script_glyphprop *,int *)" (?hb_ScriptShapeOpenType@@YAJPEAUHDC__@@PEAPEAXPEAUtag_SCRIPT_ANALYSIS@@KKPEAHPEAPEAUtextrange_properties@@HPEB_WHHPEAGPEAUscript_charprop@@6PEAUscript_glyphprop@@3@Z) 中引用了该符号
harfbuzz.lib(hb-uniscribe.cc.obj) : error LNK2019: 无法解析的外部符号 ScriptPlace，函数 "long __cdecl hb_ScriptPlaceOpenType(struct HDC__ *,void * *,struct tag_SCRIPT_ANALYSIS *,unsigned long,unsigned long,int *,struct textrange_properties * *,int,wchar_t const *,unsigned short *,struct script_charprop *,int,unsigned short const *,struct script_glyphprop const *,int,int *,struct tagGOFFSET *,struct _ABC *)" (?hb_ScriptPlaceOpenType@@YAJPEAUHDC__@@PEAPEAXPEAUtag_SCRIPT_ANALYSIS@@KKPEAHPEAPEAUtextrange_properties@@HPEB_WPEAGPEAUscript_charprop@@HPEBGPEBUscript_glyphprop@@H3PEAUtagGOFFSET@@PEAU_ABC@@@Z) 中引用了该符号
freetyped.lib(sfnt.c.obj) : error LNK2019: 无法解析的外部符号 BrotliDecoderDecompress，函数 woff2_decompress 中引用了该符号
freetyped.lib(ftbzip2.c.obj) : error LNK2019: 无法解析的外部符号 BZ2_bzDecompressInit，函数 ft_bzip2_file_init 中引用了该符号
freetyped.lib(ftbzip2.c.obj) : error LNK2019: 无法解析的外部符号 BZ2_bzDecompress，函数 ft_bzip2_file_fill_output 中引用了该符号
freetyped.lib(ftbzip2.c.obj) : error LNK2019: 无法解析的外部符号 BZ2_bzDecompressEnd，函数 ft_bzip2_file_done 中引用了该符号
qtbase\bin\qsb.exe : fatal error LNK1120: 18 个无法解析的外部命令
</code></pre>
<p dir="auto">how to add liblzma.lib and other libraries to cmake?</p>
]]></description><link>https://forum.qt.io/post/820158</link><guid isPermaLink="true">https://forum.qt.io/post/820158</guid><dc:creator><![CDATA[Peal Wang]]></dc:creator><pubDate>Fri, 07 Feb 2025 05:41:14 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Mon, 05 Feb 2024 11:27:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hsjeong">@<bdi>hsjeong</bdi></a> a couple of things;</p>
<ol>
<li>there is no need to compile statically as long as you simply deploy the generated dynamic libraries to your device.</li>
<li>you most likely need to cross-compile to the architecture of your embedded device. Are you sure it is running the same CPU as the one you compile with?<br />
<code>Building for: linux-g++ (x86_64, CPU features: mmx sse sse2)</code></li>
<li>compiling as static means things like image plugins (jpeg/png etc) support is going to be missing. Are you sure you want to compile statically?</li>
</ol>
]]></description><link>https://forum.qt.io/post/788903</link><guid isPermaLink="true">https://forum.qt.io/post/788903</guid><dc:creator><![CDATA[TomZ]]></dc:creator><pubDate>Mon, 05 Feb 2024 11:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to How to configure QT6 static? on Mon, 05 Feb 2024 06:26:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hsjeong">@<bdi>hsjeong</bdi></a> you have probably put the makefile somewhere else (with <code>-prefix</code> or something else). Or, since it is Qt 6, perhaps the build system is <code>ninja</code>, not <code>make</code>. Hard to say without seeing the actual configuration line you have used.</p>
]]></description><link>https://forum.qt.io/post/788870</link><guid isPermaLink="true">https://forum.qt.io/post/788870</guid><dc:creator><![CDATA[sierdzio]]></dc:creator><pubDate>Mon, 05 Feb 2024 06:26:54 GMT</pubDate></item></channel></rss>