If you use make for your development, it should work. Just building x64.release should create the hello_world binary.
The command line from the example is still linux specific (and predates the time we added hello_world to the "all" build target...) On Tue, Mar 8, 2016 at 12:14 PM Frank Lyder Bredland <[email protected]> wrote: > I'm not sure what you mean when you say "hello_world target"? or why this > shouldn't work on osx? > I'm not looking to create a xcode project, just to build it using clang on > the terminal. > > Is there any reason that "make x64.release" should not work on Mac? > > > On Tuesday, March 8, 2016 at 11:51:49 AM UTC+1, Jochen Eisinger wrote: > >> This example command line only works on 64bit Linux. >> >> On Mac, just build the hello_world target. I don't know off the top of my >> head what the corresponding command line would be for xcodebuild, sorry >> >> On Mon, Mar 7, 2016 at 5:59 PM Frank Lyder Bredland <[email protected]> >> wrote: >> > I tried to follow this guid: >>> https://github.com/v8/v8/wiki/Getting%20Started%20with%20Embedding >>> >>> Everything seem to work until I get to step 3 where I get the following: >>> >>> v8 git:(4.8) ✗ g++ -I. hello_world.cpp -o hello_world -Wl,--start-group >>> out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,external_snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a >>> -Wl,--end-group -lrt -ldl -pthread -std=c++0x >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/tools/gyp/libv8_base.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/tools/gyp/libv8_libbase.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/tools/gyp/libv8_external_snapshot.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/tools/gyp/libv8_libplatform.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/third_party/icu/libicuuc.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/third_party/icu/libicui18n.a' >>> clang: error: no such file or directory: >>> 'out/x64.release/obj.target/third_party/icu/libicudata.a' >>> >>> >>> Any idea how to get it to work? >>> >>> -- >>> -- >>> v8-dev mailing list >>> >> [email protected] >> >> >>> http://groups.google.com/group/v8-dev >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "v8-dev" 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/d/optout. >>> >> -- > -- > v8-dev mailing list > [email protected] > http://groups.google.com/group/v8-dev > --- > You received this message because you are subscribed to the Google Groups > "v8-dev" 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/d/optout. > -- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" 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/d/optout.
