Therefore, I use a bunch of libraries in the code I'm currently working in. Now I turn them on, doing things like win32:LIBS += "C:/my/location/Tools/libcurl/trunk/lib/Debug/curllib.lib". However, I do have an environment variable that defines %TOOLS%how C:/my/location/Tools/. I tried just changing my include to win32:LIBS += "%TOOLS%libcurl/trunk/lib/Debug/curllib.lib", but it could not find the files. I looked online and it should be doable. I missed something simple, as a way to tell the Qt developer to look at the window's environment variables?
win32:LIBS += "C:/my/location/Tools/libcurl/trunk/lib/Debug/curllib.lib"
%TOOLS%
C:/my/location/Tools/
win32:LIBS += "%TOOLS%libcurl/trunk/lib/Debug/curllib.lib"
Thank!
qmake, :
win32:LIBS += $$(TOOLS)/libcurl/trunk/lib/Debug/curllib.lib
TOOLS , C:/my/location/Tools.
TOOLS
C:/my/location/Tools
. .pro:
TOOLS="C:/my/location/Tools"
, $$:
$$
win32:LIBS += $$TOOLS/libcurl/trunk/lib/Debug/curllib.lib
:
$$VAR => QMake variable value at the time qmake is run $${VAR} => QMake variable value at time qmake is run (subtle difference) $(VAR) => Contents of an Environment variable at the time Makefile (not qmake) is run
: $$ (TOOLS) , .
Source: https://habr.com/ru/post/1544851/More articles:Symfony2 Assetic and Less Sourcemaps - phpRemove or apply methods in thimeleaf - spring-mvcandroid studio ndk error: *** target pattern does not contain `% '. Stop - androidSplit string and save in arraylist - javaNopcommerce error - "Page not found" when redirecting from admin to plugins - c #Are C # events connected in series or in parallel? - c #NHibernate Envers is like an audit trail with Entity Framework 6+ - ormBinding anonymous type to create BindingList - genericsiCloud does not insert previous version data if I update the test version on the appstore version - iosnode.js server leaking TCP connections? - javascriptAll Articles