environment variables - How to add library paths in Qt Creator like LIBPATH in Visual Studio? -


question

a) how add library paths project should depended libraries in qt creator?

b) how settings in project >> run >> build environment related similar in .pro file? environment variable listed there applies .pro file (well don't) exactly?

context/details:

visual studio has various environment variables folders project looks include files, library files or executable files etc. rather confusing in qt creator , havne't seen documentation on it.

the thing obvious includepathvariable points directories include files (.h)

however how set library paths, path should dependent libraries/dlls etc? can specify exact library libs variable in .pro file, there don't seem equivalent of libpath variable should other libraries if not found in current folder.

i have worked around adding library path following way using libs variable dropping library file name , seems work , add path don't see documented anywhere.

libs += -l"$$_pro_file_pwd_/xerces/bin/" 

but makes things more interesting settings in projects >> select 'run' current configuration , expand run environment settings.

'run environment'

here there lib variable , libpath variable there not .pro environment available. says here these settings local user , saved in .pro.user file perhaps suggest it's different way set doesn't how set them in .pro file suggest set them there if want apply users!

likewise there dependpath , vpath , not used for.

i don't have enough rep add comments question, adding comment in form of answer. pretty new qt , have been developing qt gui application on linux.

i set ld_library_path environment variable path qt libraries. not sure how helpful since using visual studio on windows.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -