owt-server icon indicating copy to clipboard operation
owt-server copied to clipboard

Packing built components error, rtcadapter.so => not found

Open JiangHao3 opened this issue 4 years ago • 5 comments

Hi, I successfully installed dependencies, and built the server without error, but failed packing built components and js files with the following error logs:

ERROR: library dependency not found for
  /home/hao/owt/owt-server/dist/webrtc_agent/rtcFrame/build/Release/rtcFrame.node:
	rtcadapter.so => not found
Something failed to build. Try nvm use v8.15.0 and rerun build.js. 

I tried nvm install 8.15.0 and built again, but could not fix the problem. I appreciate some help in advance.

JiangHao3 avatar Oct 05 '20 23:10 JiangHao3

  1. nvm list
  2. nvm use v10.21.0
  3. node-gyp -v

node-gyp should be v6.1.0, if not. uninstall it , and npm install -g --loglevel error [email protected] grunt-cli underscore jsdoc.

wuyongwen avatar Oct 20 '20 09:10 wuyongwen

1. nvm list

2. nvm use v10.21.0

3. node-gyp -v

node-gyp should be v6.1.0, if not. uninstall it , and npm install -g --loglevel error [email protected] grunt-cli underscore jsdoc.

@wuyongwen I'm also stuck at the same error. Tried this solution but it didn't help, changed node version to v10.21.0 and node-gyp version is v6.1.0. rebuilt and packed again resulted in the same error

ERROR: library dependency not found for
  ~/owt-server/dist/sip_agent/rtcFrame/build/Release/rtcFrame.node:
	rtcadapter.so => not found
Something failed to build. Try nvm use v8.15.0 and rerun build.js. 

anees264 avatar Nov 09 '20 18:11 anees264

1. nvm list

2. nvm use v10.21.0

3. node-gyp -v

node-gyp should be v6.1.0, if not. uninstall it , and npm install -g --loglevel error [email protected] grunt-cli underscore jsdoc.

@wuyongwen I'm also stuck at the same error. Tried this solution but it didn't help, changed node version to v10.21.0 and node-gyp version is v6.1.0. rebuilt and packed again resulted in the same error

ERROR: library dependency not found for
  ~/owt-server/dist/sip_agent/rtcFrame/build/Release/rtcFrame.node:
	rtcadapter.so => not found
Something failed to build. Try nvm use v8.15.0 and rerun build.js. 

Update: Seems like the issue is only in master branch, building and packing 4.3.x branch with node 10.21.0 worked!

Note: building and packing 4.3.x branch with node 8.15.0 will result in the same issue.

anees264 avatar Nov 10 '20 12:11 anees264

hwo to fix at master branch

hezhanbang avatar Jan 12 '21 06:01 hezhanbang

Prompt that the missing so actually already exists and can be found with the find command.

root@localhost:/owt-server# find . -name "rtcadapter.so"
./source/agent/webrtc/rtcFrame/build/Release/obj.target/rtcadapter.so
./source/agent/webrtc/rtcFrame/build/Release/lib.target/rtcadapter.so
./build/libdeps/build/lib/rtcadapter.so
./dist/sip_agent/lib/rtcadapter.so
./dist/webrtc_agent/lib/rtcadapter.so

The error can be temporarily resolved by manually copying to the specified path.

cp ./source/agent/webrtc/rtcFrame/build/Release/lib.target/rtcadapter.so ./build/libdeps/build/lib/rtcadapter.so

Anyone interested can try this workaround.

OfficialBoyfriend avatar Aug 28 '22 09:08 OfficialBoyfriend