Bootstrap

20221403郑骁恒 实验3-1

1.sdf gmt 0018 裸卡 ukey

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/rochs0018sdf$ ls
config    examples-arm.zip    readMe.txt
examples  example-x86-64.zip  rochs0018电路图.pdf
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/rochs0018sdf$ cd examples/
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/rochs0018sdf/examples$ ls
libhsctu_guomi_vpn.so  sdf.h  sm4.h  test    test.o
Makefile               sm4.c  sm4.o  test.c
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/rochs0018sdf/examples$ sudo ./test

出现问题

[sudo] zxh 的密码: 
open device successed!
open session successed!
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----492---- libusb_bulk_transfer
token32EU.cpp----475---- ret = -7 
wRet = 0xffff
SDF_GetCosVersion fail, rv = 0x01000025
test failed.

2.龙脉

(1) encrypt

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ make
rm -f encryptTest
g++  -o encryptTest main.o /home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ ls
encryptTest        libgm3000.1.0.so  main.o    makefile_mac
libFingerPopUi.so  main.cpp          Makefile
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ ./encryptTest 
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ ./encryptTest 
encrypt data ok!

(2) enumdevinfo

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/enumdevinfo$ make
g++  -c -o main.o main.cpp 
main.cpp: In function ‘int main()’:
main.cpp:61:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘ULONG’ {aka ‘unsigned int’} [-Wformat=]
   61 |                         printf("\tTotal space:%ld \n\n", info.TotalSpace);
      |                                               ~~^        ~~~~~~~~~~~~~~~
      |                                                 |             |
      |                                                 long int      ULONG {aka unsigned int}
      |                                               %d
rm -f enumdevice
g++  -o enumdevice main.o /home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/enumdevinfo$ ls
enumdevice         libgm3000.1.0.so  main.o    makefile_mac
libFingerPopUi.so  main.cpp          Makefile
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/enumdevinfo$ ./enumdevice 

	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 


	Manufacturer: Longmai 

AlgSymCap :1799 

AlgAsymCap :198400,

AlgHashCap :7,

evAuthAlgId :1025,
	Issuer : Longmai 
	Label : GM3000 
	SerialNumber : 696E185F4141990A2B154A6122A76EB 
	Total space:131072 

(3) fingerMgrDemo

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/FingerMgrDemo$ make
rm -f fingerMgrDemo
g++  -o fingerMgrDemo main.o /home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/FingerMgrDemo$ ls
90-mtoken.rules  libFingerPopUi.so  main.cpp  makefile         skfapi.h
fingerMgrDemo    libgm3000.1.0.so   main.o    skfapi_finger.h
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/FingerMgrDemo$ ./fingerMgrDemo 
*******************************************************************
                  Finger  示例                                     
*******************************************************************
  1. PIN码登录[SKF_VerifyPIN]	                                   
  2. 指纹录入[SKF_EnrollFingerInit,SKF_EnrollFinger]               
  3. 指纹验证[SKF_VerifyFinger带UI]		       	                   
  4. 删除指纹[SKF_DeleteFinger]		                	           
  5. 指纹测试[SKF_TestFinger]			       	                   
  6. 解锁指纹[SKF_UnblockFinger]			                       
  7. 获取指纹信息[SKF_GetFingerInfo]	                           
  8. 指纹验证[SKF_VerifyPIN,UserPIN=]                            
  9. 获取设备类型[SKF_GetDevInfo]			                       
  10. 获指纹取录入个数[SKF_HasFinger,SKF_GetFingerCount]           
  0. EXIT                                                          

 Select -->1
Failed to Verify PIN . 
*******************************************************************
                  Finger  示例                                     
*******************************************************************
  1. PIN码登录[SKF_VerifyPIN]	                                   
  2. 指纹录入[SKF_EnrollFingerInit,SKF_EnrollFinger]               
  3. 指纹验证[SKF_VerifyFinger带UI]		       	                   
  4. 删除指纹[SKF_DeleteFinger]		                	           
  5. 指纹测试[SKF_TestFinger]			       	                   
  6. 解锁指纹[SKF_UnblockFinger]			                       
  7. 获取指纹信息[SKF_GetFingerInfo]	                           
  8. 指纹验证[SKF_VerifyPIN,UserPIN=]                            
  9. 获取设备类型[SKF_GetDevInfo]			                       
  10. 获指纹取录入个数[SKF_HasFinger,SKF_GetFingerCount]           
  0. EXIT                                                          

 Select -->2
Failed to Get Finger Info . 
*******************************************************************
                  Finger  示例                                     
*******************************************************************
  1. PIN码登录[SKF_VerifyPIN]	                                   
  2. 指纹录入[SKF_EnrollFingerInit,SKF_EnrollFinger]               
  3. 指纹验证[SKF_VerifyFinger带UI]		       	                   
  4. 删除指纹[SKF_DeleteFinger]		                	           
  5. 指纹测试[SKF_TestFinger]			       	                   
  6. 解锁指纹[SKF_UnblockFinger]			                       
  7. 获取指纹信息[SKF_GetFingerInfo]	                           
  8. 指纹验证[SKF_VerifyPIN,UserPIN=]                            
  9. 获取设备类型[SKF_GetDevInfo]			                       
  10. 获指纹取录入个数[SKF_HasFinger,SKF_GetFingerCount]           
  0. EXIT                                                          

 Select -->0

(4) interruptTest

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/interruptTest$ ls
interruptTest64    libgm3000.1.0.so  main.o
libFingerPopUi.so  main.cpp          makefile
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/interruptTest$ ./interruptTest64 
0 696E185F4141990A2B154A6122A76EB
1 696E185F4141990A2B154A6122A76EB
2 696E185F4141990A2B154A6122A76EB
3 696E185F4141990A2B154A6122A76EB
4 696E185F4141990A2B154A6122A76EB
5 696E185F4141990A2B154A6122A76EB
6 696E185F4141990A2B154A6122A76EB
7 696E185F4141990A2B154A6122A76EB
8 696E185F4141990A2B154A6122A76EB
9 696E185F4141990A2B154A6122A76EB
10 696E185F4141990A2B154A6122A76EB
11 696E185F4141990A2B154A6122A76EB
12 696E185F4141990A2B154A6122A76EB
13 696E185F4141990A2B154A6122A76EB
14 696E185F4141990A2B154A6122A76EB
15 696E185F4141990A2B154A6122A76EB
16 696E185F4141990A2B154A6122A76EB
17 696E185F4141990A2B154A6122A76EB
18 696E185F4141990A2B154A6122A76EB
19 696E185F4141990A2B154A6122A76EB
20 696E185F4141990A2B154A6122A76EB
21 696E185F4141990A2B154A6122A76EB
22 696E185F4141990A2B154A6122A76EB
23 696E185F4141990A2B154A6122A76EB
24 696E185F4141990A2B154A6122A76EB
25 696E185F4141990A2B154A6122A76EB
26 696E185F4141990A2B154A6122A76EB
27 696E185F4141990A2B154A6122A76EB
28 696E185F4141990A2B154A6122A76EB
29 696E185F4141990A2B154A6122A76EB
30 696E185F4141990A2B154A6122A76EB
31 696E185F4141990A2B154A6122A76EB
32 696E185F4141990A2B154A6122A76EB
33 696E185F4141990A2B154A6122A76EB
34 696E185F4141990A2B154A6122A76EB
35 696E185F4141990A2B154A6122A76EB
36 696E185F4141990A2B154A6122A76EB
37 696E185F4141990A2B154A6122A76EB
38 696E185F4141990A2B154A6122A76EB
39 696E185F4141990A2B154A6122A76EB
40 696E185F4141990A2B154A6122A76EB
41 696E185F4141990A2B154A6122A76EB
42 696E185F4141990A2B154A6122A76EB
43 696E185F4141990A2B154A6122A76EB
44 696E185F4141990A2B154A6122A76EB
45 696E185F4141990A2B154A6122A76EB
46 696E185F4141990A2B154A6122A76EB
47 696E185F4141990A2B154A6122A76EB
48 696E185F4141990A2B154A6122A76EB
49 696E185F4141990A2B154A6122A76EB
50 696E185F4141990A2B154A6122A76EB
51 696E185F4141990A2B154A6122A76EB
52 696E185F4141990A2B154A6122A76EB
53 696E185F4141990A2B154A6122A76EB
54 696E185F4141990A2B154A6122A76EB
55 696E185F4141990A2B154A6122A76EB
56 696E185F4141990A2B154A6122A76EB
57 696E185F4141990A2B154A6122A76EB
58 696E185F4141990A2B154A6122A76EB
59 696E185F4141990A2B154A6122A76EB
60 696E185F4141990A2B154A6122A76EB
61 696E185F4141990A2B154A6122A76EB
62 696E185F4141990A2B154A6122A76EB
63 696E185F4141990A2B154A6122A76EB
64 696E185F4141990A2B154A6122A76EB
65 696E185F4141990A2B154A6122A76EB
66 696E185F4141990A2B154A6122A76EB
67 696E185F4141990A2B154A6122A76EB
68 696E185F4141990A2B154A6122A76EB
69 696E185F4141990A2B154A6122A76EB
70 696E185F4141990A2B154A6122A76EB
71 696E185F4141990A2B154A6122A76EB
72 696E185F4141990A2B154A6122A76EB
73 696E185F4141990A2B154A6122A76EB
74 696E185F4141990A2B154A6122A76EB
75 696E185F4141990A2B154A6122A76EB
76 696E185F4141990A2B154A6122A76EB
77 696E185F4141990A2B154A6122A76EB
78 696E185F4141990A2B154A6122A76EB
79 696E185F4141990A2B154A6122A76EB
80 696E185F4141990A2B154A6122A76EB
81 696E185F4141990A2B154A6122A76EB
82 696E185F4141990A2B154A6122A76EB
83 696E185F4141990A2B154A6122A76EB
84 696E185F4141990A2B154A6122A76EB
85 696E185F4141990A2B154A6122A76EB
86 696E185F4141990A2B154A6122A76EB
87 696E185F4141990A2B154A6122A76EB
88 696E185F4141990A2B154A6122A76EB
89 696E185F4141990A2B154A6122A76EB
90 696E185F4141990A2B154A6122A76EB
91 696E185F4141990A2B154A6122A76EB
92 696E185F4141990A2B154A6122A76EB
93 696E185F4141990A2B154A6122A76EB
94 696E185F4141990A2B154A6122A76EB
95 696E185F4141990A2B154A6122A76EB
96 696E185F4141990A2B154A6122A76EB
97 696E185F4141990A2B154A6122A76EB
98 696E185F4141990A2B154A6122A76EB
99 696E185F4141990A2B154A6122A76EB
100 696E185F4141990A2B154A6122A76EB
101 696E185F4141990A2B154A6122A76EB
102 696E185F4141990A2B154A6122A76EB
103 696E185F4141990A2B154A6122A76EB
104 696E185F4141990A2B154A6122A76EB
105 696E185F4141990A2B154A6122A76EB
106 696E185F4141990A2B154A6122A76EB
107 696E185F4141990A2B154A6122A76EB
108 696E185F4141990A2B154A6122A76EB
109 696E185F4141990A2B154A6122A76EB
110 696E185F4141990A2B154A6122A76EB
111 696E185F4141990A2B154A6122A76EB
112 696E185F4141990A2B154A6122A76EB
113 696E185F4141990A2B154A6122A76EB
114 696E185F4141990A2B154A6122A76EB
115 696E185F4141990A2B154A6122A76EB
116 696E185F4141990A2B154A6122A76EB
117 696E185F4141990A2B154A6122A76EB
118 696E185F4141990A2B154A6122A76EB
119 696E185F4141990A2B154A6122A76EB
120 696E185F4141990A2B154A6122A76EB
121 696E185F4141990A2B154A6122A76EB
122 696E185F4141990A2B154A6122A76EB
123 696E185F4141990A2B154A6122A76EB
124 696E185F4141990A2B154A6122A76EB
125 696E185F4141990A2B154A6122A76EB
126 696E185F4141990A2B154A6122A76EB
127 696E185F4141990A2B154A6122A76EB
128 696E185F4141990A2B154A6122A76EB
129 696E185F4141990A2B154A6122A76EB
130 696E185F4141990A2B154A6122A76EB
131 696E185F4141990A2B154A6122A76EB
132 696E185F4141990A2B154A6122A76EB
133 696E185F4141990A2B154A6122A76EB
134 696E185F4141990A2B154A6122A76EB
135 696E185F4141990A2B154A6122A76EB
136 696E185F4141990A2B154A6122A76EB
137 696E185F4141990A2B154A6122A76EB
138 696E185F4141990A2B154A6122A76EB
139 696E185F4141990A2B154A6122A76EB
140 696E185F4141990A2B154A6122A76EB
141 696E185F4141990A2B154A6122A76EB
142 696E185F4141990A2B154A6122A76EB
143 696E185F4141990A2B154A6122A76EB
144 696E185F4141990A2B154A6122A76EB
145 696E185F4141990A2B154A6122A76EB
146 696E185F4141990A2B154A6122A76EB
147 696E185F4141990A2B154A6122A76EB
148 696E185F4141990A2B154A6122A76EB
149 696E185F4141990A2B154A6122A76EB
150 696E185F4141990A2B154A6122A76EB
151 696E185F4141990A2B154A6122A76EB
152 696E185F4141990A2B154A6122A76EB
153 696E185F4141990A2B154A6122A76EB
154 696E185F4141990A2B154A6122A76EB
155 696E185F4141990A2B154A6122A76EB
156 696E185F4141990A2B154A6122A76EB
157 696E185F4141990A2B154A6122A76EB
158 696E185F4141990A2B154A6122A76EB
159 696E185F4141990A2B154A6122A76EB
160 696E185F4141990A2B154A6122A76EB
161 696E185F4141990A2B154A6122A76EB
162 696E185F4141990A2B154A6122A76EB
163 696E185F4141990A2B154A6122A76EB
164 696E185F4141990A2B154A6122A76EB
165 696E185F4141990A2B154A6122A76EB
166 696E185F4141990A2B154A6122A76EB
167 696E185F4141990A2B154A6122A76EB
168 696E185F4141990A2B154A6122A76EB
169 696E185F4141990A2B154A6122A76EB
170 696E185F4141990A2B154A6122A76EB
171 696E185F4141990A2B154A6122A76EB
172 696E185F4141990A2B154A6122A76EB
173 696E185F4141990A2B154A6122A76EB
174 696E185F4141990A2B154A6122A76EB
175 696E185F4141990A2B154A6122A76EB
176 696E185F4141990A2B154A6122A76EB
177 696E185F4141990A2B154A6122A76EB
178 696E185F4141990A2B154A6122A76EB
179 696E185F4141990A2B154A6122A76EB
180 696E185F4141990A2B154A6122A76EB
181 696E185F4141990A2B154A6122A76EB
182 696E185F4141990A2B154A6122A76EB
183 696E185F4141990A2B154A6122A76EB
184 696E185F4141990A2B154A6122A76EB
185 696E185F4141990A2B154A6122A76EB
186 696E185F4141990A2B154A6122A76EB
187 696E185F4141990A2B154A6122A76EB
188 696E185F4141990A2B154A6122A76EB
189 696E185F4141990A2B154A6122A76EB
190 696E185F4141990A2B154A6122A76EB
191 696E185F4141990A2B154A6122A76EB
192 696E185F4141990A2B154A6122A76EB

……

(5) monitordev

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/monitordev$ make
rm -f monitordev
g++  -o monitordev main.o /home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/monitordev$ ls
libFingerPopUi.so  main.cpp  Makefile      monitordev
libgm3000.1.0.so   main.o    makefile_mac
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/monitordev$ ./monitordev 
SKF_WaitForDevEvent


(6) signature

过程

zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/signature$ make
rm -f signatureTest
g++  -o signatureTest main.o /home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/signature$ ls
libFingerPopUi.so  main.cpp  Makefile      signatureTest
libgm3000.1.0.so   main.o    makefile_mac
zxh@zxh-VirtualBox:~/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/signature$ ./signatureTest 
Signature successful.
Verify signature successful.

3.出现问题并解决

  1. 在运行代码时,找不到可make的文件,需要将makefile_linux文件重命名为Makefile,即可进行make
  2. 在运行代码时,找不到.so文件,需要在/longmaiskf0016-stu/skf/linux/x64中找到.so文件,粘贴过去即可
  3. 在运行代码时,make后提示报错:
zxh@zxh-VirtualBox:~/zxh/longmaiskf0016-stu/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ make
g++  -c -o main.o main.cpp 
main.cpp: In function ‘int main()’:
main.cpp:24:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   24 |         char    *pUserPin = "123456";
      |                             ^~~~~~~~
main.cpp:30:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   30 |         char    *pData = "1234567812345678";
      |                          ^~~~~~~~~~~~~~~~~~
rm -f encryptTest
g++  -o encryptTest main.o ../lib/linux/x86/libgm3000.1.0.so
/usr/bin/ld: 找不到 ../lib/linux/x86/libgm3000.1.0.so: 没有那个文件或目录
collect2: error: ld returned 1 exit status
make: *** [Makefile:30:encryptTest] 错误 1

找不到libgm3000.1.0.so文件
需要在makefile里面更改地址,

zxh@zxh-VirtualBox:~/zxh/longmaiskf0016-stu/longmaiskf0016-stu/samples/skf/linux_mac/encrypt$ sudo find / -name libgm3000.1.0.so
[sudo] zxh 的密码: 
find: ‘/run/user/1000/doc’: 权限不够
find: ‘/run/user/1000/gvfs’: 权限不够
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/龙芯/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/申威/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/飞腾/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/海光/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/海光/x86/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/鲲鹏/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/兆芯/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/信创/兆芯/x86/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/skf/linux/x86/libgm3000.1.0.so
/home/zxh/zxh/longmaiskf0016-stu/longmaiskf0016-stu/samples/skf/linux_mac/encrypt/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/龙芯/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/申威/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/飞腾/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/海光/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/海光/x86/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/鲲鹏/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/兆芯/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/信创/兆芯/x86/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x86/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/encrypt/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/FingerMgrDemo/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/interruptTest/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/signature/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/enumdevinfo/libgm3000.1.0.so
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/samples/skf/linux_mac/monitordev/libgm3000.1.0.so
/home/zxh/.local/share/Trash/files/libgm3000.1.0.so
find: ‘/proc/2942/task/2942/net’: 无效的参数
find: ‘/proc/2942/net’: 无效的参数

找到绝对地址
/home/zxh/bestidiocs2024/ch06/longmaiskf0016-stu/skf/linux/x64/libgm3000.1.0.so
在makefile中进行更改:

在这里插入图片描述
即可成功运行代码

;