This article is a mirror article of machine translation, please click here to jump to the original article.

View: 6068|Reply: 3

Issue with Hikvision's deployment of dynamic link libraries on Linux systems

[Copy link]
Posted on 1/21/2022 3:22:28 PM | | | |
Review:

【Actual combat】Hikvision face recognition attendance machine enters personnel and faces
https://www.itsvse.com/thread-10238-1-1.html

After unzipping the HCISUPSDKV2.5.0.35_build20211013_Linux64_ZH_20211101161111.zip, upload all the files in the lib folder to the Linux server/data/hk_drivefolders, which are also used in Java codeAbsolute pathThe dynamic link library address is set in this way.



The error reported for starting the project is as follows:



Unsatisfied dependency expressed through field 'cmsModule'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cmsModule' defined in URL [jar:xxx]: Instantiation of bean failed; nested exception is java.lang.UnsatisfiedLinkError: Unable to load library '/data/hk_drive/libHCISUPCMS.so': libHCISUPCMS.so: cannot open shared object file: No such file or directory
        at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java :660)

The document is clearly there, but the document cannot be found when it is reported incorrectly.

solution

Edit the /etc/ld.so.conf file and add the following configuration:

Once the modification is complete, you need to enter itldconfig command to refresh the configuration

/etc/ld.so.conf 此文件记录了编译时使用的动态库的路径,也就是加载so库的路径。默认情况下,编译器只会使用 /lib 和 /usr/lib 这两个目录下的库文件。

The function of ldconfig is to cache the library files under the path listed in the file /etc/ld.so.conf to /etc/ld.so.cache for use, so when some library files are installed, or /etc/ld.so.conf is modified to add a new search path for the library, you need to run ldconfig to make all the library files cached in the file /etc/ld.so.cache, if you don't do it, You may not be able to find the library you just installed.




Previous:The Spring JdbcTemplate console outputs SQL statements and parameters
Next:CentOS 7 uses rpm to install the MySQL database
Posted on 9/15/2022 7:26:49 PM |
Cows, co
Posted on 9/16/2022 11:55:35 AM |
Boss, I almost put all the libraries under user/lib/hk with you, and the registration service can start normally, but it seems that there is a problem in the process of device registration

Posted on 9/16/2022 11:58:05 AM |
wyj123 posted on 2022-9-16 11:55
Boss, I almost put all the libraries under user/lib/hk with you, and it is also specified in the code, and the registration service can start normally, but it seems that it is on the device...

When the console goes to get the library file, it is still the specified ./so-and-so location, and this path is not code-configurable, it should be its internally defined path
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com