You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And as soon as I save the CMakeLists.txt, I get this error: C:\Projects\MyCoolApplication\libs\QArchive\CMakeLists.txt:98: error: Target "QArchive" links to: LibArchive::LibArchive but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.
It has a problem with this line: target_link_libraries(QArchive PUBLIC Qt${QT_VERSION_MAJOR}::Core LibArchive::LibArchive)
I'm very noob with packages so I don't really know what is the problem.
Can you look into it?
Thanks and Best Regards,
mammut
The text was updated successfully, but these errors were encountered:
Windows is still a mess for software development for this reason. Consider learning Conan C++ Manager which might make life easy for you in Windows. Anyways I will try to give you a concise instruction for using QArchive in Windows later today.
If you were in Linux this would have been a piece of cake 😆
@antony-jr: oh, I didn't install it, sorry. I will look into those instructions, thanks for the link.
"Windows is still a mess for software development for this reason"
Yeah, I'm experiencing that right now. It was much easier with python, just created a venv, then pip install, and it was done.
But I have to learn the c++ way now. I'll look into the Conan c++ manager, too.
"Anyways I will try to give you a concise instruction for using QArchive in Windows later today."
Oh, that would be very kind of you, thank you in advance.
"If you were in Linux this would have been a piece of cake"
Hi,
I try to use QArchive with CMake.
I created a new qt console test project and I copy-pasted almost everything from this page:
https://antonyjr.in/QArchive/docs/AddingQArchive.html
My root's CMakeLists.txt:
My CMakeLists.txt in the libs folder:
And as soon as I save the CMakeLists.txt, I get this error:
C:\Projects\MyCoolApplication\libs\QArchive\CMakeLists.txt:98: error: Target "QArchive" links to: LibArchive::LibArchive but the target was not found. Possible reasons include: * There is a typo in the target name. * A find_package call is missing for an IMPORTED target. * An ALIAS target is missing.
It has a problem with this line:
target_link_libraries(QArchive PUBLIC Qt${QT_VERSION_MAJOR}::Core LibArchive::LibArchive)
I'm very noob with packages so I don't really know what is the problem.
Can you look into it?
Thanks and Best Regards,
mammut
The text was updated successfully, but these errors were encountered: