Qt Linking Error? #5397
-
I tried to build a qt project with xmake: add_rules("mode.debug", "mode.release", "mode.releasedbg")
-- Set the languages used in the project
set_languages("c++17")
add_requires("eigen >=3.4.0")
add_requires("fmt >=8.1.1")
add_requires("boost =1.78.0")
add_requires("nlohmann_json =3.10.5")
add_requires("polyscope")
add_requires("tbb")
add_requires("qt5base =5.15.2")
add_requires("qt5core")
add_requires("qt5gui")
--add_requires("qt5lib =5.15.2")
add_requires("qt5network")
add_requires("qt5webview")
add_requires("qt5widgets")
--add_requires("opengl")
--add_requires("glu")
-- Define the target executable
target("StitchMeshQt")
set_kind("binary")
-- Include headers from these directories
add_includedirs("StitchMeshQt", "persist_contact")
add_files("StitchMeshQt/*.cpp")
add_files("persist_contact/*.cpp")
--add_files("*.cpp")
add_packages("eigen", "fmt", "boost", "nlohmann_json", "polyscope", "tbb")
add_packages("qt5base", "qt5core", "qt5gui", "qt5lib", "qt5network", "qt5webview", "qt5widgets")
--add_packages("opengl", "glu")
if is_plat("windows") then
--add_syslinks("opengl32", "glu32")
-- Add WIN32 macro definition
add_defines("WIN32")
end The compilation staged worked well, but why am I getting these linking errors?
|
Beta Was this translation helpful? Give feedback.
Answered by
wang-mengdi
Jul 26, 2024
Replies: 2 comments 9 replies
-
For example, for the function |
Beta Was this translation helpful? Give feedback.
0 replies
-
Qt的应该用 |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
改好了!感谢大佬