shared-libraries

How to debug error “Symbol lookup error: undefined symbol”

天涯浪子 提交于 2020-12-23 03:25:31
问题 I created an app (api_tests) that uses a library (libstorage.so) that linked to oracle occi library (libocci.so.12.1) and compiled it. When I run this app, I get an error: api_tests api_tests: symbol lookup error: ./libstorage.so: undefined symbol: _ZN6oracle4occi11Environment17createEnvironmentENS1_4ModeEPvPFS3_S3_mEPFS3_S3_S3_mEPFvS3_S3_E However this library with this symbol exists in the current directory: ls | grep libocci libocci.so* libocci.so.11.1* libocci.so.12.1* nm libocci.so.12.1

foreign library can't be loaded

青春壹個敷衍的年華 提交于 2020-12-14 23:54:29
问题 A C library contains this code: /* * Custom specific code here... * several static functions. */ /** * receiveMessages( +Socket, ?DoorsAreOpen, ?DoorsAreClosed, ?CabinRequests, ?CabinLocation, ?LandingRequests ) */ static foreign_t receiveMessages( term_t Socket, term_t doorsAreOpen, term_t doorsAreClosed, term_t cabinRequests, term_t cabinLocation, term_t landingRequests ) { int sockfd; return PL_get_integer_ex( Socket, &sockfd ) && sockfd && udpReceive( sockfd, doorsAreOpen, doorsAreClosed,

Errors including shared prebuilt libraries in petalinux

时光怂恿深爱的人放手 提交于 2020-12-12 11:36:52
问题 I'm trying to simply include a couple of shared libraries to my petalinux project (Yocto based). Following the "Including Prebuilt Libraries" section on pg 65 of the petalinux guide I've got the next recipes to included both libraries (only I post one because the other is the same but only changing the name): # # This file is the libpiimager recipe. # SUMMARY = "Simple libpiimager application" SECTION = "PETALINUX/apps" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5

Link f2py generated *.so file in a python package using setuptools

放肆的年华 提交于 2020-12-11 10:09:49
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

柔情痞子 提交于 2020-12-11 10:08:33
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

☆樱花仙子☆ 提交于 2020-12-11 10:08:17
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

梦想与她 提交于 2020-12-11 10:03:37
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Link f2py generated *.so file in a python package using setuptools

天涯浪子 提交于 2020-12-11 10:02:42
问题 I wish to deploy a package to PyPi using setuptools. However, the core part of the package is actually written in Fortran, and I am using f2py to wrap it in python. Basically the project's structure looks like this: my_project license.txt README.md setup.py my_project init .py myfunc.py hello.so The module myfunc.py imports hello.so ( import my_project.hello ) which can then be used by functions inside myfunc.py. This works perfectly on my machine. Then I tried standard setuptools

Could not load the Qt platform plugin “xcb” in “” even though it was found

落爺英雄遲暮 提交于 2020-12-10 09:32:54
问题 This question is asked several times in Stack Overflow. I tried methods in several discussions but it didn't work. So my OpenCV library which was built with custom Qt doesn't work properly: import cv2 img = cv2.imread("IMAGE_PATH") cv2.imshow("frame", img) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available

Could not load the Qt platform plugin “xcb” in “” even though it was found

时光总嘲笑我的痴心妄想 提交于 2020-12-10 09:32:32
问题 This question is asked several times in Stack Overflow. I tried methods in several discussions but it didn't work. So my OpenCV library which was built with custom Qt doesn't work properly: import cv2 img = cv2.imread("IMAGE_PATH") cv2.imshow("frame", img) qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Available