- How did you build V8?
- Which version of V8 did you build?
- I think your -L path may be wrong, at least on Linux libv8.so is in
out/x64.release/lib.target/, not sure about Mac but the situation is
probably similar.
- I also think this may be a question for the jav8 project rather than
upstream V8.


On Tue, Dec 11, 2012 at 11:12 PM, Emil Berglind <[email protected]> wrote:

> Note: If I use scons to build v8 everything works fine.
>
>
> On Tuesday, December 11, 2012 4:12:06 PM UTC-5, Emil Berglind wrote:
>>
>> 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
>

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to