../../../arm-poky-linux-gnueabi/bin/ld: cannot find -ldbmanager

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

../../../arm-poky-linux-gnueabi/bin/ld: cannot find -ldbmanager

跳至解决方案
3,346 次查看
zafersen
Contributor III

Hi. I use to imx6ulmg som module.

IMX6ULMG_IDEX_V1.3.0.1 / Gateway / Native Source Code As I mentioned in Build.pdf, I try to compile the project in ~ / IDEx_Demo / ThreadControl / on the gateway, but I get the following error.

^
cc -DSW_VERSION=\"1.7.26\" -g -O3 -Wall -Wno-unused-function -I=/usr/include/hsdk/physical/BT -I=/usr/include/hsdk/protocol/HCI -I=/usr/include/hsdk/protocol -I=/usr/include/hsdk/physical -I=/usr/include/hsdk/sys -I=/usr/include/hsdk/physical/UART -I=/usr/include/hsdk/physical/PCAP -I=/usr/include/hsdk/physical/SPI -I=/usr/include/hsdk/protocol/FSCI -I=/usr/include/dbmanager/ -c jsmn.c -o /home/root/IDEx_Demo/ThreadControl/build/jsmn.o
cc /home/root/IDEx_Demo/ThreadControl/build/thread_device_mngr.o /home/root/IDEx_Demo/ThreadControl/build/jsmn.o -o /home/root/IDEx_Demo/ThreadControl/bin/ThreadDeviceMgr -lframer -lfsci -lphysical -luart -lsys -lpthread -ldbmanager -lsqlite3 -lpthread -lrt
/usr/lib/gcc/arm-poky-linux-gnueabi/5.3.0/../../../../arm-poky-linux-gnueabi/bin/ld: cannot find -ldbmanager
collect2: error: ld returned 1 exit status
Makefile:72: recipe for target 'ThreadDeviceMgr' failed
make: *** [ThreadDeviceMgr] Error 1

I use make while compiling the source code as described in pdf. 

• Follow section 4.3.1 for CloudREG, DBManager, DeviceControl, LedControl, ZigbeeControl, DiagnosticRead, nfcreg, wificommission.
• Follow section 4.3.2 for ThreadControl and ota-update.

As mentioned on page 9, it says that I need to compile ThreadControl and ota-update using make.

but failed. (Note: I have successfully compiled the CloudREG source code.)

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
2,785 次查看
zafersen
Contributor III

Hi everyone.  I missed a little detail, so I figured I got this error.

As noted in the note below. To solve the problem, you must first compile DBManeger according to the automake method. Then you must compile the source code of ThreadControl.

Note: Make sure to backup all artifacts from the affected location before start build process because artifacts will be overridden by the build process (Follow section 5 for the reference). Please build the DBManager first as other Application source depends on the DBManager.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
2,785 次查看
diegoadrian
NXP Employee
NXP Employee

Hello Zafer

Thank you for post your solution.

Best Regards,

Diego.

0 项奖励
回复
2,786 次查看
zafersen
Contributor III

Hi everyone.  I missed a little detail, so I figured I got this error.

As noted in the note below. To solve the problem, you must first compile DBManeger according to the automake method. Then you must compile the source code of ThreadControl.

Note: Make sure to backup all artifacts from the affected location before start build process because artifacts will be overridden by the build process (Follow section 5 for the reference). Please build the DBManager first as other Application source depends on the DBManager.

0 项奖励
回复