How to compile V8 using Visual Studio 2008 IDE

142 views
Skip to first unread message

SMA

unread,
Feb 25, 2010, 2:36:50 PM2/25/10
to v8-users
Dear All,

How can I compile V8 using Visual Studio 2008 IDE, so that I can
understand, update, debug and add V8 engine in my existing solutions.

I have tried to create a Static Library Project is Visual Studio
2008,but failed to build solution in Visual Studio 2008 IDE.


Thanks and regards.

Søren Gjesse

unread,
Feb 25, 2010, 5:38:03 PM2/25/10
to v8-u...@googlegroups.com
In the directory tools/visual_studio there are Visual Studio 2005 project files, and a readme for how to use them. They should convert to Visual Studion 2008.

Regards,
Søren

SMA

unread,
Feb 25, 2010, 10:47:44 PM2/25/10
to v8-users
Dear Søren

Thanks for the response, I have done that, however after conversion
when I build solution I get following errors, please let me know how
to resolve these errors

Warning 1 warning LNK4221: no public symbols found; archive
member
will be inaccessible regexp-macro-assembler-irregexp.obj
v8_base
Error 2 Error result 1 returned from 'C:\WINDOWS
\system32\cmd.exe'.
Project v8
Error 3 fatal error LNK1104: cannot open file '.\debug\lib
\v8.lib'
v8_mksnapshot v8_mksnapshot
Error 4 error PRJ0019: A tool returned an error code from
"Building
snapshot..." v8_snapshot_cc v8_snapshot_cc
Error 5 fatal error C1083: Cannot open source file: '.\Debug
\obj
\v8\DerivedSources\natives-empty.cc': No such file or directory c1xx
v8_snapshot
Error 6 fatal error C1083: Cannot open source file: '.\Debug
\obj
\v8_snapshot_cc\DerivedSources\snapshot.cc': No such file or directory
c1xx v8_snapshot
Error 7 Error result 1 returned from 'C:\WINDOWS
\system32\cmd.exe'.
Project d8
Error 8 fatal error LNK1104: cannot open file '.\debug\lib
\v8_snapshot.lib' v8_shell_sample v8_shell_sample
Error 9 fatal error LNK1104: cannot open file '.\debug\lib
\v8_snapshot.lib' v8_process_sample v8_process_sample
Error 10 fatal error LNK1104: cannot open file '.\debug\lib
\v8_snapshot.lib' v8_cctest v8_cctest

Søren Gjesse

unread,
Feb 26, 2010, 3:01:27 AM2/26/10
to v8-u...@googlegroups.com
Hi,

Could you provide some more details? When I have a clean checkout, open v8.sln, let VS 2008 convert it and build v8_shell (In both Release and Debug) I get no errors.

Regards,
Søren


--

sm a

unread,
Feb 28, 2010, 1:52:16 PM2/28/10
to v8-u...@googlegroups.com
Yeah, when I tried it on my office PC  the v8.sln  complied without any errors, however when I try it at home I get errors as mentioned in my previous post.



2010/2/26 Søren Gjesse <sgj...@chromium.org>
Reply all
Reply to author
Forward
0 new messages