nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 153 forks source link

make build 编译的出现的问题 #218

Open xiaoGreaat opened 6 years ago

xiaoGreaat commented 6 years ago

cd cmd/neb; go build -ldflags "-X main.version=1.0.8 -X main.commit=2928567d2871e89e92930ad5c1a27b07905b03f6 -X main.branch=master -X main.compileAt=date +%s" -o ../../neb-2928567d2871e89e92930ad5c1a27b07905b03f6

github.com/nebulasio/go-nebulas/nf/nvm

../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Message::GetScriptOrigin() const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::String::NewFromUtf8(v8::Isolate, char const, v8::NewStringType, int)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Isolate::TerminateExecution()’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::ShutdownPlatform()’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Isolate::ThrowException(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Script::Run(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Object::SetInternalField(int, v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Message::GetEndColumn(v8::Local) const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Script::Compile(v8::Local, v8::Local, v8::ScriptOrigin)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Isolate::GetHeapStatistics(v8::HeapStatistics)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘memcpy@GLIBC_2.14’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::SetSnapshotDataBlob(v8::StartupData)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Message::GetStartColumn(v8::Local) const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Exception::Error(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Value::ToInt32(v8::Local) const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Object::DefineOwnProperty(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ObjectTemplate::New(v8::Isolate, v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Context::New(v8::Isolate, v8::ExtensionConfiguration, v8::MaybeLocal, v8::MaybeLocal, v8::DeserializeInternalFieldsCallback)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Isolate::New(v8::Isolate::CreateParams const&)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::JSON::Stringify(v8::Local, v8::Local, v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::HandleScope::HandleScope(v8::Isolate)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Integer::New(v8::Isolate, int)’未定义的引用 //usr/local/lib/libv8_libplatform.so:对‘std::detail::_Prime_rehash_policy::_M_next_bkt(unsigned long) const@GLIBCXX_3.4.18’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::HandleScope::CreateHandle(v8::internal::HeapObject, v8::internal::Object)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ArrayBuffer::Allocator::SetProtection(void, unsigned long, v8::ArrayBuffer::Allocator::Protection)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::TryCatch::StackTrace(v8::Local) const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘vtable for v8::ArrayBuffer::Allocator’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::FunctionTemplate::New(v8::Isolate, void (*)(v8::FunctionCallbackInfo const&), v8::Local, v8::Local, int, v8::ConstructorBehavior)’未定义的引用 //usr/local/lib/libv8_libplatform.so:对‘std::detail::_Prime_rehash_policy::_M_need_rehash(unsigned long, unsigned long, unsigned long) const@GLIBCXX_3.4.18’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::FunctionTemplate::SetClassName(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Number::New(v8::Isolate, double)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Locker::Initialize(v8::Isolate)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Object::SlowGetInternalField(int)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::String::NewFromUtf8(v8::Isolate, char const, v8::String::NewStringType, int)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::TryCatch::TryCatch(v8::Isolate)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ObjectTemplate::SetAccessor(v8::Local, void ()(v8::Local, v8::PropertyCallbackInfo const&), void ()(v8::Local, v8::Local, v8::PropertyCallbackInfo const&), v8::Local, v8::AccessControl, v8::PropertyAttribute, v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::External::New(v8::Isolate, void)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Value::ToString(v8::Local) const’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::InitializeICU(char const)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ArrayBuffer::Allocator::Free(void, unsigned long, v8::ArrayBuffer::Allocator::AllocationMode)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::String::Utf8Value::Utf8Value(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ObjectTemplate::NewInstance(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::SetNativesDataBlob(v8::StartupData)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Isolate::GetCurrentContext()’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::ArrayBuffer::Allocator::Reserve(unsigned long)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::InitializePlatform(v8::Platform*)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::Object::Get(v8::Local)’未定义的引用 ../../nf/nvm/native-lib/libnebulasv8.so:对‘v8::V8::ToLocalEmpty()’未定义的引用 collect2: error: ld returned 1 exit status make: *** [build] 错误 2

qywang2012 commented 6 years ago

需要系统先安装v8。 make deploy_lisbs

xiaoGreaat commented 6 years ago

[root@localhost go-nebulas]# .make deploy_lisbs bash: .make: command not found [root@localhost go-nebulas]# make deploy_lisbs make: *** 没有规则可以创建目标“deploy_lisbs”。 @qywang2012

xiaoGreaat commented 6 years ago

请问 有没有官方开发群 @qywang2012

xiaoGreaat commented 6 years ago

[root@localhost go-nebulas]# make deploy-v8 sudo install nf/nvm/native-lib/*.so /usr/local/lib/ sudo /sbin/ldconfig

weiht12 commented 6 years ago

你好,此版本为星云旧版wiki(后期逐步停止维护),欢迎将您的问题提交星云新版wiki,以便于获得及时解答。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English) ; https://wiki.nebulas.io/zh_CN/latest/ (Chinese)