b3j0f / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 1 forks source link

Error Compiling #214

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. pip install -v pyv8
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Debian Wheezy 7.1 x64
Python 2.7

Please provide any additional information below.
Hi. i get this error while installing pyv8. What's wrong ? 

src/Engine.cpp:357:43: error: cannot convert 
‘v8::ResourceConstraints*’ to ‘v8::Isolate*’ for 
argument ‘1’ to ‘bool 
v8::SetResourceConstraints(v8::Isolate*, v8::ResourceConstraints*)’

Original issue reported on code.google.com by carp...@gmail.com on 21 Nov 2013 at 3:29

Attachments:

GoogleCodeExporter commented 8 years ago
I am building in Windows8 using VS2012.  I have a similar problem.

The compiler gives this error:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.exe /c /nologo 
/Ox /MD /W3 /GS- /DNDEBUG -DBOOST_PYTHON_ST
ATIC_LIB -DV8_NATIVE_REGEXP -DENABLE_DEBUGGER_SUPPORT -DV8_TARGET_ARCH_IA32 
-DWIN32 -D_USE_32BIT_TIME_T -IC:\Users\acver
bec\Documents\PyV8_bld\v8\include -IC:\Users\acverbec\Documents\PyV8_bld\v8 
-IC:\Users\acverbec\Documents\PyV8_bld\v8\sr
c "-IC:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\INCLUDE" 
"-IC:\Program Files (x86)\Microsoft Visual Studio 1
1.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows 
Kits\8.0\include\shared" "-IC:\Program Files (x86)\Windows Kits
\8.0\include\um" "-IC:\Program Files (x86)\Windows Kits\8.0\include\winrt" 
-IC:\Users\acverbec\Documents\PyV8_bld\boost_
1_55_0 -IC:\Python27\include -Ic:\python27\include -Ic:\python27\PC 
/Tpsrc\Engine.cpp /Fobuild\temp.win32-2.7\Release\sr
c\Engine.obj /O2 /GL /MT /EHsc /Gy /Zi
cl : Command line warning D9025 : overriding '/MD' with '/MT'
Engine.cpp
src\Engine.cpp(357) : error C2660: 'v8::SetResourceConstraints' : function does 
not take 1 arguments
error: command '"C:\Program Files (x86)\Microsoft Visual Studio 
11.0\VC\BIN\cl.exe"' failed with exit status 2

I look at the code and engine.cpp looks like this:
bool CEngine::SetMemoryLimit(int max_young_space_size, int max_old_space_size, 
int max_executable_size)
{
  v8::ResourceConstraints limit;

  limit.set_max_young_space_size(max_young_space_size);
  limit.set_max_old_space_size(max_old_space_size);
  limit.set_max_executable_size(max_executable_size);

  return v8::SetResourceConstraints(&limit);
}

I look at v8.h -- and it looks like this:
/**
 * Sets the given ResourceConstraints on the given Isolate.
 */
bool V8_EXPORT SetResourceConstraints(Isolate* isolate,
                                      ResourceConstraints* constraints);

It looks like the parameter count for this function has changed.

ACV

Original comment by ac.verb...@gmail.com on 22 Nov 2013 at 12:48

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 25 Nov 2013 at 7:06