I'm trying to build the jav8 project from source but it's failing when
including the v8 library.
The command is:
gcc -prebind -dynamiclib -o libjav8.dylib build/bin/release/jav8.o
build/bin/release/Wrapper.o build/bin/release/Utils.o -lstdc++
-L../../v8/v8/out/x64.release -lv8
The output generated is:
Undefined symbols for architecture x86_64:
"v8::internal::kMacTlsBaseOffset", referenced from:
v8::internal::Thread::GetExistingThreadLocal(v8::internal::Thread::LocalStorageKey)in
jav8.o
v8::internal::Thread::GetExistingThreadLocal(v8::internal::Thread::LocalStorageKey)in
Utils.o
"v8::internal::Heap::CollectAllAvailableGarbage(char const*)", referenced
from:
_Java_lu_flier_script_V8ScriptEngine_gc in jav8.o
"v8::internal::Isolate::isolate_key_", referenced from:
_Java_lu_flier_script_V8ScriptEngine_gc in jav8.o
jni::V8Isolate::ensureInIsolate() in Utils.o
"v8::internal::Isolate::InitializeLoggingAndCounters()", referenced from:
jni::V8Isolate::ensureInIsolate() in Utils.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
I've verified that all of the files in question are of the correct
architecture (x86_64), so I'm not really sure why this is failing.
Any input would be greatly appreciated.
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users