Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
i want to link
nano-node
against shared libraries, to speed up the build processso effectively, i have reverted #4030 (and some other commits)
this PR should not be merged in its current form
because most package managers dont allow pinning dependencies like nix or guix
ideally, there should be a build option like
USE_SHARED_LIBS
and the
CMakeLists.txt
should have separate branches for static or shared buildError: logging should be initialized before creating a logger
fixed: runtime error: Error: logging should be initialized before creating a logger
the build is passing, but now i get this error on runtime... ideas?
it works as expected with the nano-node with gitmodules build
(nixpkgs has only
nano-wallet
but not the fullnano-node
, dont ask me why)my build script is nano-node.nix
you will need nix to run that build script
it seems like
nano::logger::initialize
is not callednano::logger
was added in #4375 by @pwojcikdevnano/lib/logging.cpp
so
nano::logger::logger
failsbut
nano::logger::initialize
should be called fromnano/nano_wallet/entry.cpp
backtrace
so
nano::logger::logger
is called bynano/nano_wallet/entry.cpp
im surprised that this works in the original version (does it?)
ldd
backport to V26.0
i tried to backport this patch to V26.0 as a workaround for #4680 (comment)
but this fails to build with dynamic boost libraries
see also #269
boost::log
was removed in #4030 = V26.1and without
boost::log
the build just works with dynamic boost libraries