In order to build the shared library configuration on Mac (actually, any
platform expect linux with make), you need to manually set up the path to
find intermediate shared library results (thanks for Jochen Eisinger for
pointing this out).

This:

build/gyp_v8 -Dtarget_arch=x64 -Dcomponent=shared_library
export DYLD_LIBRARY_PATH=$(pwd)/xcodebuild/Debug
xcodebuild -project tools/gyp/v8.xcodeproj -target v8

worked just fine for me on Mac with today's bleeding_edge V8.

Note that only the core V8 shared library and related bits are supported
are meant to work for direct embedding in this config, none of the samples
or the d8 shell are are supported in the shared library build.

Danno



On Thu, Oct 10, 2013 at 1:02 PM, Ulan Degenbaev <[email protected]> wrote:

> I just landed a fix in r17131 (which reverts r16729 becase usage of Maybe
> struct has changed). Jim, could you update to that revision and see if it
> is fixed for you?
>
> I was getting the following error with component=shared_library (but
> didn't get any preparser related errors):
>
> f:\src\v8\include\v8.h(856): error C2220: warning treated as error - no
> 'object' file generated
> 6>          ..\..\src\code-stubs.cc(242) : see reference to class template
> instantiation 'v8::Maybe<T>' being compiled
> 6>          with
> 6>          [
> 6>              T=v8::internal::Handle<v8::internal::Object>
> 6>          ]
> 6>f:\src\v8\include\v8.h(856): warning C4251: 'v8::Maybe<T>::value' :
> class 'v8::internal::Handle<T>' needs to have dll-interface to be used by
> clients of struct 'v8::Maybe<T>'
> 6>          with
> 6>          [
> 6>              T=v8::internal::Handle<v8::internal::Object>
> 6>          ]
> 6>          and
> 6>          [
> 6>              T=v8::internal::Object
> 6>          ]
> 6>          and
> 6>          [
> 6>              T=v8::internal::Handle<v8::internal::Object>
> 6>          ]
>
> --
> --
> v8-users mailing list
> [email protected]
> http://groups.google.com/group/v8-users
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to