Using Qt 5.15.0 MSVC2019 64bit solved the problem, so as I was using seqAn2 libs, that couldn't worked with Qt6 and also because of some windows libs....
Based on a Youtube comment this is the solution:
1- Right click on the project name and select properties.
2- Configuration properties -> General.
3- Change the "C++ Language standard" to "ISO C++17 standard".
Just a note for anyone running into this issue who happens to not need translations, the error can be bypassed by running windeployqt with the --no-translations option.
Qt Creator does not run make install, you should probably do that manually. Hard to say exactly, looks like it's partially installed (normally it would have failed much sooner - when running qmake or cmake).
Thanks everyone who tried to help me. The thing is I didn't need dev branch content. It was enought for me to be updated with 6.2. After switching to it, everything has successfully built.
I guess, the problem was that there're some code on dev branch which doesn't pass tests.
Thanks so much!
I have downloaded your example and started exploring how it works. I made it work by starting from a "CMakeLists.txt" created by Qt Creator. It seems to work. But I need to learn cmake, so I thank you for your example. After 30 years of programming with qmake, it takes some time to learn new things.
Create a *.so or a *.dll file
Qt5
else()
# add_executable(myProgram
# Changed to
add_library(myLib SHARED
${PROJECT_SOURCES}
)
Qt6
if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
# qt_add_executable(myProgram
# Changed to
add_library(myLib SHARED
MANUAL_FINALIZATION
${PROJECT_SOURCES}
Use the library file (Only tested with Qt6 and Windows)
target_link_libraries (myTestProgram PRIVATE $ {PROJECT_SOURCE_DIR} /lib/myLib.dll)
Or include the library file in a project that uses qmake
win32:CONFIG(release, debug|release): LIBS += -L../lib/ -ldownloadunpack # Release
else:win32:CONFIG(debug, debug|release): LIBS += -L../lib/ -ldownloadunpackd # Debug
unix:LIBS += -ldownloadunpack