Skip to content

i do not want to set "export QNN_SDK_ROOT" #25

@YeWenxuan64

Description

@YeWenxuan64
Traceback (most recent call last):
  File "/home/ubuntu/Softwares/NPU/ai-engine-direct-helper/samples/linux/python/yolov8_det/import_qnn.py", line 30, in <module>
    import qai_appbuilder
  File "/home/ubuntu/Softwares/python/python_venv/lib/python3.12/site-packages/qai_appbuilder/__init__.py", line 16, in <module>
    from .geniecontext import *
  File "/home/ubuntu/Softwares/python/python_venv/lib/python3.12/site-packages/qai_appbuilder/geniecontext.py", line 15, in <module>
    from qai_appbuilder import geniebuilder
ImportError: libGenie.so: cannot open shared object file: No such file or directory

i do not want to set some env on my shell, which make it hard to run python script
every time when import qai_appbuilder it needs the env in the shell. i tired to use os.environ["QNN_SDK_ROOT"]=我的QAI sdk路径, but it faild.
only set this

export QNN_SDK_ROOT=./QNN_SDK_ROOT(我的QAI sdk路径)
export ADSP_LIBRARY_PATH=$QNN_SDK_ROOT/lib/hexagon-v68/unsigned
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QNN_SDK_ROOT/lib/aarch64-oe-linux-gcc11.2

to work

ps: i don't want to set any other env in .bashrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions