FAILED: lib/libnode.so lib/libnode.so.TOC while building node step

72 views
Skip to first unread message

ajey.cha...@gmail.com

unread,
Jul 21, 2017, 5:19:15 AM7/21/17
to nw.js
Hi,

I am trying to build nwjs from source and on the step "Build Node", after running the ninja -C out/Release node command I am getting the following error -

ninja: Entering directory `out/Release'
[1/1] SOLINK lib/libnode.so
FAILED: lib/libnode.so lib/libnode.so.TOC
if [ ! -e lib/libnode.so -o ! -e lib/libnode.so.TOC ]; then c++ -shared -pthread -rdynamic -L../nw/lib/ -lnw -Wl,--whole-archive ../nw/obj/v8/libv8_libbase.a ../nw/obj/v8/libv8_libplatform.a -Wl,--no-whole-archive -pthread -o lib/libnode.so -Wl,-soname=libnode.so @lib/libnode.so.rsp && { readelf -d lib/libnode.so | grep SONAME ; nm -gD -f p lib/libnode.so | cut -f1-2 -d' '; } > lib/libnode.so.TOC; else c++ -shared -pthread -rdynamic -L../nw/lib/ -lnw -Wl,--whole-archive ../nw/obj/v8/libv8_libbase.a ../nw/obj/v8/libv8_libplatform.a -Wl,--no-whole-archive -pthread -o lib/libnode.so -Wl,-soname=libnode.so @lib/libnode.so.rsp && { readelf -d lib/libnode.so | grep SONAME ; nm -gD -f p lib/libnode.so | cut -f1-2 -d' '; } > lib/libnode.so.tmp && if ! cmp -s lib/libnode.so.tmp lib/libnode.so.TOC; then mv lib/libnode.so.tmp lib/libnode.so.TOC ; fi; fi
/usr/bin/ld: cannot find -lnw
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.


Please advice on how do I resolve this.

My OS - Ubuntu 14.04 LTS


Ayushman Chhabra

unread,
Mar 5, 2023, 3:13:38 PM3/5/23
to nw.js
I am currently encountering this. Were you able to resolve this?

Ayushman Chhabra

unread,
Mar 15, 2023, 2:23:22 AM3/15/23
to nw.js
I was building debug version of NW.js and release version of Node.js which is why I was getting this error. Once I built the debug version of Node.js, it worked for me.
Reply all
Reply to author
Forward
0 new messages