Cannot find <library path>: Permission Denied
-
@Laner107 said in Cannot find <library path>: Permission Denied:
suppose to be a debug .lib that is also x32 instead of x64?
It needs to be the same as your app. If you build your app for 32 bit then the lib must be 32bit, if you build for 64bit then the build must be 64bit. You can't mix. Also, if you build in release mode then use the lib build in release mode.
-
@jsulm I actually ended up doing that now everything matches, but it says in documentation since im doing a static library i am suppose to put CURL_STATICLIB, i just cant find out where, here is the documentation.
Building your own application with a static libcurl
When building an application that uses the static libcurl library on Windows,
you must define CURL_STATICLIB. Otherwise the linker will look for dynamic
import symbols. -
@Laner107 In your top pro file add:
DEFINES += CURL_STATICLIB
-
@Laner107 If you want to start your app outside of QtCreator you need to deploy it properly first.
See https://doc.qt.io/qt-5/windows-deployment.html