-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing static library libc++.a
prevents building libnode.so
#156
Comments
libnode.so
libc++.a
prevents building libnode.so
@ayushmXn what is the exact use case of your App that you run in NWJS you should maybe switch today if possible to puppeteer and use the puppeteer launch option to start chromium you can then ask me for the right command line flags to get the window setup that you want to have. if you want to exchange data between the node and the main context use background we have thrown carlo into puppeteer that includes a JS based IPC binding to chromium without a websocket server via the devtools protocol https://github.com/GoogleChromeLabs/carlo/ page.evalFunction(()=>somethingInthePageDom) |
That didn't help but thanks for the info. |
ok then i want to answer that it says you got no build rule for cxx so your missing parameters maybe you did not use repo tools or something other wrong. example build rule you need to create one called cxx or get the product of cxx some how ExternalProject_Add(extProject
GIT_REPOSITORY <GIT_URL>
CMAKE_CACHE_ARGS "-
DCMAKE_INSTALL_PREFIX:STRING=${CMAKE_INSTALL_PREFIX}"
BUILD_BYPRODUCTS ${CMAKE_INSTALL_PREFIX}/lib/libext.so
)
add_library(extLib SHARED IMPORTED)
add_dependencies(extLib extProject)
set_target_properties(extLib
PROPERTIES IMPORTED_LOCATION ${CMAKE_INSTALL_PREFIX}/lib/libext.so
)
target_link_libraries(project extLib) |
Thanks! That gives an idea of where to look. |
From the commit history of |
@ayushmXn yes roger found the error |
but chromium was blocked last days anyway i am waiting for some commits to land since 2 weeks
but at present the bot status is open and we got a new commit hash so maybe maybe next week we get some cool stuff ;) |
Node compiles for me but fails at the SOLINK stage.
[1720/1720] SOLINK lib/libnode.so FAILED: lib/libnode.so lib/libnode.so.TOC if [ ! -e lib/libnode.so -o ! -e lib/libnode.so.TOC ]; then /home/ayushmxn/nw/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang++ -shared -pthread -rdynamic -m64 --sysroot=/home/ayushmxn/nw/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdlib++ -L../nw/lib/ -lnw -Wl,--whole-archive ../nw/obj/buildtools/third_party/libc++abi/libc++abi.a ../nw/obj/buildtools/third_party/libc++/libc++.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -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 /home/ayushmxn/nw/nwjs/src/third_party/llvm-build/Release+Asserts/bin/clang++ -shared -pthread -rdynamic -m64 --sysroot=/home/ayushmxn/nw/nwjs/src/build/linux/debian_sid_amd64-sysroot -nostdlib++ -L../nw/lib/ -lnw -Wl,--whole-archive ../nw/obj/buildtools/third_party/libc++abi/libc++abi.a ../nw/obj/buildtools/third_party/libc++/libc++.a -Wl,--no-whole-archive -Wl,-z,relro -Wl,-z,now -Wl,--gc-sections -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 clang: error: no such file or directory: '../nw/obj/buildtools/third_party/libc++/libc++.a' ninja: build stopped: subcommand failed.
According to the error message, the static library
libc++.a
is not being built. Directly trying to build it also does not work.That leads to me to conclude that there may be an error in the
BUILD.gn
file but I haven't been able to pinpoint it yet.UPDATE: also noticed that libcpp.lib is not being built which seems to be required for Node.
cc @rogerwang
The text was updated successfully, but these errors were encountered: