1.2 KiB
Common Build Issues
-
For
cmaketype builds,-lxxxfails but bothldconfigandpkg-configcan query the library information.The link library path is not in the conventional path, the new path is
/runtime/lib.Add environment variable
LIBRARY_PATH=<libpath>, the build environment currently includes this environment variable by default. -
Static library linking fails during build, requiring rebuild with
fPIC.Use the
-fPICparameter when building static libraries. -
Failed to start
boxduring build, as shown below:The kernel does not support
unprivilege namespace, enableunprivilege namespaceto resolve.sudo sysctl -w kernel.unprivileged_userns_clone=1 -
qtbasebuilds successfully, but cannot buildqtapplications, showingmodule,mkspecrelated errors.Low version
fuse-overlay mounthas issues, causing file content corruption duringqtbase commit, making it unusable. Usefuse-overlayfs >= 1.7version.
