owt-server
owt-server copied to clipboard
Packing built components error, rtcadapter.so => not found
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.
- nvm list
- nvm use v10.21.0
- 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.
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.
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.
hwo to fix at master branch
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.