.a file was built instead of .lib on windows
-
I want to build qtbase module from git on Windows.
git clone https://github.com/qt/qtbase.git git switch 6.5.3 cmake -S . -B build -G Ninja cd build ninja cmake --install .
I noticed that .a libaries were installed instead of .lib libraries in C:/Qt/Qt-6.5.3/lib.
Are the .a libraries files installed by default? -
I want to build qtbase module from git on Windows.
git clone https://github.com/qt/qtbase.git git switch 6.5.3 cmake -S . -B build -G Ninja cd build ninja cmake --install .
I noticed that .a libaries were installed instead of .lib libraries in C:/Qt/Qt-6.5.3/lib.
Are the .a libraries files installed by default?@Ndgt said in .a file was built instead of .lib on windows:
Are the .a libraries files installed by default?
When you use MinGW, yes.
MSVC creates .lib as import libs.btw: Why do you want to compile such an old Qt verison?
-
Is there any way to build .lib file when using Ninja & MinGW ?
When I set Visual Studio 17 2022 as Generator, the build failed.I want to create a plugin for animation software that requires Qt 6.5.3.
@Ndgt said in .a file was built instead of .lib on windows:
Is there any way to build .lib file
Why do you need .lib files if you're using MinGW?!
.a is all you need... -
I thought .a files are specific to Linux so I misunderstood that because the compiler did not link .lib the following error occurs.
The procedure entry point _ZN10QArayData10deallocateEPS_xx could not be located in the dynamic link library C:\Qt\Qt-6.5.3\dev\example\build\childwidget.exe.
Why does this error happen?
-
I thought .a files are specific to Linux so I misunderstood that because the compiler did not link .lib the following error occurs.
The procedure entry point _ZN10QArayData10deallocateEPS_xx could not be located in the dynamic link library C:\Qt\Qt-6.5.3\dev\example\build\childwidget.exe.
Why does this error happen?
@Ndgt said in .a file was built instead of .lib on windows:
Why does this error happen?
Because you can not mix MSVC and MinGW c++ libraries.
-
I thought .a files are specific to Linux so I misunderstood that because the compiler did not link .lib the following error occurs.
The procedure entry point _ZN10QArayData10deallocateEPS_xx could not be located in the dynamic link library C:\Qt\Qt-6.5.3\dev\example\build\childwidget.exe.
Why does this error happen?
@Ndgt said in .a file was built instead of .lib on windows:
I thought .a files are specific to Linux so I misunderstood that because the compiler did not link .lib the following error occurs.
When does this happen and what are you trying? Why do you need to compile Qt6 by yourself in the first place?
-
-
Hi,
If you meant that you started your application outside of Qt Creator, then that's normal because you need to "deploy" your application as if you would make it usable on a different computer. That's what windeployqt does for you.