I am trying to deploy my QT application.While I am able to run the application perfectly fine from inside the QTCreator in Release mode.
When I am trying to run the executable through terminal I am getting an error
No absolute path for '/opt/GenICam_v2_3/bin/Linux64_x64/GenApi/Generic/libXMLLoader_gcc40_v2_3.so'
I am using QTCreator 4.8 on ubuntu 12.04 (64 bit).
My build environment settings are like this:
Set GENICAM_ROOT_V2_3 to /opt/pylon3/genicam
Set LD_LIBRARY_PATH to /usr/lib/x86_64_Linux_gnu:/opt/pylon3/lib64:/opt/pylon3/genicam/bin/Linux64_x64:/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic :$LD_LIBRARY_PATH
Set PYLON_ROOT to /opt/pylon3
Set GENICAM_ROOT_V2_3 to /opt/pylon3/genicam
Set LD_LIBRARY_PATH to /usr/lib/x86_64_Linux_gnu:/opt/pylon3/lib64:/opt/pylon3/genicam/bin/Linux64_x64:/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic :$LD_LIBRARY_PATH
Set PYLON_ROOT to /opt/pylon3
To copy to clipboard, switch view to plain text mode
My run environment settings are:
Set GENICAM_ROOT_V2_3 to /opt/pylon3/genicam
Set LD_LIBRARY_PATH to /usr/local/lib:/opt/pylon3/lib64:/opt/pylon3/genicam/bin/Linux64_x64:/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic:$LD_LIBRARY_PATH
Set PYLON_ROOT to /opt/pylon3
Set GENICAM_ROOT_V2_3 to /opt/pylon3/genicam
Set LD_LIBRARY_PATH to /usr/local/lib:/opt/pylon3/lib64:/opt/pylon3/genicam/bin/Linux64_x64:/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic:$LD_LIBRARY_PATH
Set PYLON_ROOT to /opt/pylon3
To copy to clipboard, switch view to plain text mode
The problem is that it is searching for 'libXMLLoader_gcc40_v2_3.so' file in '/opt/GenICam_v2_3/bin/Linux64_x64/GenApi/Generic' which does not exist.Instead the so file is in '/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic'. I dont know from where it is taking that path. My pro file settings are like this;
INCLUDEPATH += /opt/pylon3/include \
/opt/pylon3/genicam/library/CPP/include \
/opt/pylon3/genicam/bin/Linux64_x64 \
LIBS += -L/opt/pylon3/lib64/ -lpylonbase \
-L/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic/ -lXMLLoader_gcc40_v2_3 \
-L/opt/pylon3/genicam/bin/Linux64_x64/ -lGCBase_gcc40_v2_3
INCLUDEPATH += /opt/pylon3/include \
/opt/pylon3/genicam/library/CPP/include \
/opt/pylon3/genicam/bin/Linux64_x64 \
LIBS += -L/opt/pylon3/lib64/ -lpylonbase \
-L/opt/pylon3/genicam/bin/Linux64_x64/GenApi/Generic/ -lXMLLoader_gcc40_v2_3 \
-L/opt/pylon3/genicam/bin/Linux64_x64/ -lGCBase_gcc40_v2_3
To copy to clipboard, switch view to plain text mode
In addition to this,I have already added the environmental variables in bash.bashrc as follows and checked that each is correctly set:
export PYLON_ROOT=/opt/pylon3
export GENICAM_ROOT=/opt/pylon3/genicam
export GENICAM_ROOT_V2_3=/opt/pylon3/genicam
export GENICAM_CACHE=$HOME/genicam_xml_cache
export GENICAM_CACHE_V2_3=$HOME/genicam_xml_cache
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
export PYLON_ROOT=/opt/pylon3
export GENICAM_ROOT=/opt/pylon3/genicam
export GENICAM_ROOT_V2_3=/opt/pylon3/genicam
export GENICAM_CACHE=$HOME/genicam_xml_cache
export GENICAM_CACHE_V2_3=$HOME/genicam_xml_cache
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
To copy to clipboard, switch view to plain text mode
p.s: I am trying to make a camera application using pylon SDK which uses PYLON_ROOT and GENICAM_ROOT_V2_3 as environmental variables
Bookmarks