Answers inline

On Tuesday, August 4, 2015 at 4:59:48 AM UTC+2, Jerrad Patch wrote:
>
> this version is the latest version, not sure how to check that with the 
> depot_tools program. I tried the help with fetch --help but it doesnt show 
> --version.
>

Getting Started is only compatible with the current Stable version. I am 
currently updating it to be compatible with version 4.4.

Try 'git checkout -b 4.3 -t branch-heads/4.3' and afterwards 'gclient sync' 
to get a version directly.
 

> I have updated the archive to use *externap_snapshot.a, but I still get 
> compile errors. I am using the x64.release, and the sample code from the 
> getting started website. Does anyone have some working sample code I can 
> compile with the latest version that "fetch v8" downloads. Thanks again for 
> all the replies.
>

On 'master' (and 'branch-heads/4.5') there is a directory called samples. 
The the compatible sample code can be found there (starting with version 
4.5).
 

>
> error I am getting
>
> jerrad@ubuntu:/host/v8/v8$ 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 -pthread -std=c++0x
>
> hello_world.cpp: In function ‘int main(int, char**)’:
> hello_world.cpp:14:35: error: no matching function for call to 
> ‘v8::Isolate::New()’
>    Isolate* isolate = Isolate::New();
>                                    ^
> hello_world.cpp:14:35: note: candidate is:
> In file included from hello_world.cpp:1:0:
> include/v8.h:5357:19: note: static v8::Isolate* v8::Isolate::New(const 
> v8::Isolate::CreateParams&)
>    static Isolate* New(const CreateParams& params);
>                    ^
> include/v8.h:5357:19: note:   candidate expects 1 argument, 0 provided
>
>
>
Please try the following steps:

   1. Goto v8/
   2. git checkout -b 4.5 -t branch-heads/4.5
   3. Copy samples/hello-world.cc to v8/
   4. git checkout -b 4.4 -t branch-heads/4.4
   5. gclient sync
   6. make x64.release snapshot=off
   7. g++ -I. hello-world.cc -o hello_world -Wl,--start-group 
   
out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,nosnapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a
 
   -Wl,--end-group -lrt -ldl -pthread -std=c++0x
   8. ./hello_world

 

> On Monday, August 3, 2015 at 4:02:30 AM UTC-4, Jakob Kummerow wrote:
>>
>> It appears that the file is now called libv8_external_snapshot.a. The 
>> Getting-Started doc needs updating.
>>
>> On Mon, Aug 3, 2015 at 9:53 AM, Michael Hablich <[email protected]> 
>> wrote:
>>
>>> Which V8 version are you trying to build? 4.3?
>>>
>>>
>>> On Monday, August 3, 2015 at 1:34:52 AM UTC+2, Jerrad Patch wrote:
>>>>
>>>> Nope, that wasn't it. It seems that I am missing the archive file 
>>>> *snapshot.a. It wasn't built during the make x64.release.
>>>>
>>>> I tried removing the snapshot archive but got compile errors for 
>>>> hello_world.cpp
>>>>
>>>> the following 
>>>> > jerrad@ubuntu:/V8/v8$ g++ -I. hello_world.cpp -o hello_world 
>>>> > -Wl,--start-group 
>>>> > out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,
>>>> snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a 
>>>> > -Wl,--end-group -lrt -pthread -std=c++0x 
>>>>
>>>> became
>>>> > jerrad@ubuntu:/V8/v8$ g++ -I. hello_world.cpp -o hello_world 
>>>> > -Wl,--start-group 
>>>> > out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase
>>>> ,libplatform},third_party/icu/libicu{uc,i18n,data}}.a 
>>>> > -Wl,--end-group -lrt -pthread -std=c++0x 
>>>>
>>>> I will try to use the a32.release and see if it builds correctly. Any 
>>>> ideas why *snapshot.a wouldnt exist after a build?
>>>>
>>>>
>>>> On Sunday, August 2, 2015 at 6:25:14 PM UTC-4, Ben Noordhuis wrote:
>>>>>
>>>>> On Sun, Aug 2, 2015 at 11:48 PM, Jerrad Patch <[email protected]> 
>>>>> wrote: 
>>>>> > Hey, Ben. Thanks for the reply. I have fixed that error 
>>>>> > 
>>>>> > here is the command: 
>>>>> > 
>>>>> > jerrad@ubuntu:/V8/v8$ g++ -I. hello_world.cpp -o hello_world 
>>>>> > -Wl,--start-group 
>>>>> > 
>>>>> out/x64.release/obj.target/{tools/gyp/libv8_{base,libbase,snapshot,libplatform},third_party/icu/libicu{uc,i18n,data}}.a
>>>>>  
>>>>>
>>>>> > -Wl,--end-group -lrt -pthread -std=c++0x 
>>>>> > 
>>>>> > here is the error:    g++: error: 
>>>>> > out/x64.release/obj.target/tools/gyp/libv8_snapshot.a: No such file 
>>>>> or 
>>>>> > directory 
>>>>> > 
>>>>> > and if I go to the /V8/v8/out/x64.release/obj.target/tools/gyp 
>>>>> directory the 
>>>>> > file does not exist, 
>>>>> > 
>>>>> > I did not receive any compilation errors when building V8, so I am 
>>>>> wondering 
>>>>> > if I should be using a different lib file in the */gyp folder? 
>>>>>
>>>>> Quite possibly.  `find out/ -name \*.a` should find all the archive 
>>>>> files, just update the paths accordingly. 
>>>>>
>>>> -- 
>>> -- 
>>> 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/d/optout.
>>>
>>
>>

-- 
-- 
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/d/optout.

Reply via email to