shared libraries - Why Qt Creator gives "No absolute path for library" Error for a known library? -
hi using industrial machine vision photographic camera (basler) in qt based project. work under linux ubuntu 12.04 64 bit , qt 4.8
i have set $ld_library_path , required environment variables find photographic camera libraries still qt creator gives error when wants run application. gives next error:
no absolute path '/opt/genicam_v2_3/bin/linux64_x64/genapi/generic/libxmlloader_gcc40_v2_3.so'
it amazing when run qt project ubuntu terminal runs without problem when want run qt creator gives above error message. why qt creator fails find library path ? path not valid path in machine , don't have such folder "/opt/genicam_v2_3" in machine, , don't know why qt insists on creating such folder.
i used ldd command application , libraries found i'm sure nil missing.
is there else have forget set before run in qt creator ? why such phantom location necessary qt creator ?
i tried set my libxmlloader_gcc40_v2_3.so in place above location gives error message in qt creator :
environment variable 'genicam_root_v2_3' not found
i have set environment variable in /etc/bash.bashrc i'm sure i've declared still qt creator cannot find too.
content of bash.bashrc
export pylon_root=/opt/pylon4 export genicam_root_v2_3=${pylon_root}/genicam export genicam_cache_v2_3=$home/genicam_xml_cache export ld_library_path=${pylon_root}/lib64:${genicam_root_v2_3}/bin/linux64_x64:${genicam_root_v2_3}/bin/linux64_x64/genapi/generic:$ld_library_path
i copied above info .bashrc in home directory too.
what should run application in qt creator because need debug application , in ubuntu terminal cannot such thing easily.
thanks
i trying create basler photographic camera work, , had exact same problem you; except same error occured when build terminal. got error when effort execute 1 of examples after building it.
for me problem was, had set paths "genicam_root" in .bashrc , not "genicam_root_v2_3" (since "genicam_root" used accompanying makefile). adding "genicam_root_v2_3" solved problem.
my .bashrc:
export pylon_root=/opt/pylon3 export genicam_root=/opt/pylon3/genicam export genicam_root_v2_3=/opt/pylon3/genicam export genicam_cache=~/tmp export ld_library_path=${ld_library_path}:${pylon_root}/lib64 export ld_library_path=${ld_library_path}:${genicam_root}/bin/linux64_x64 export ld_library_path=${ld_library_path}:${genicam_root}/bin/linux64_x64/genapi/generic
hope can help someone.
shared-libraries environment-variables qt-creator
No comments:
Post a Comment