pdfium Linux 64-bit build fails

232 views
Skip to first unread message

D. Groth

unread,
Oct 16, 2014, 7:33:37 AM10/16/14
to pdf...@googlegroups.com
Hello,

See the comments at the bottom of the wiki page:

https://code.google.com/p/pdfium/wiki/Build

me@pc(2:1122):pdfium$ make CXXFLAGS="-std=c++11"
  CXX(host) out/Debug/obj.host/v8_base/v8/src/accessors.o
In file included from v8/src/allocation.h:8:0,
                 from v8/src/v8.h:32,
                 from v8/src/accessors.cc:5:
v8/src/globals.h: In function ‘bool v8::internal::IsValidFunctionKind(v8::internal::FunctionKind)’:
v8/src/globals.h:784:18: error: ‘FunctionKind’ is not a class or namespace
   return kind == FunctionKind::kNormalFunction ||

...                  ^
v8/src/globals.h: In function ‘bool v8::internal::IsConciseMethod(v8::internal::FunctionKind)’:
v8/src/globals.h:806:17: error: ‘FunctionKind’ is not a class or namespace
   return kind & FunctionKind::kConciseMethod;
                 ^
make: *** [out/Debug/obj.host/v8_base/v8/src/accessors.o] Error 1

gcc 4.8.3, fedora 64-bit.

may be the CXXFLAGS argument for make is not passed to the v8 build?
V8 alone builds fine.

regards,
Detlef

D. Groth

unread,
Oct 23, 2014, 6:00:43 AM10/23/14
to pdf...@googlegroups.com
Hello the build is fixed now. Thanks for Tthis.

my build procedure was:

$ git clone https://pdfium.googlesource.com/pdfium.git
$ ls
$ pwd
$ cd pdfium
/
$ svn co http
://gyp.googlecode.com/svn/trunk build/gyp
$ svn co http
://v8.googlecode.com/svn/trunk v8
$ svn co https
://src.chromium.org/chrome/trunk/deps/third_party/icu46 v8/third_party/icu
$ build
/gyp_pdfium
$ make
$ make BUILDTYPE
=Release

There is a static build only. Is it share build possible as well?regards,
regards,
Detlef

Reply all
Reply to author
Forward
0 new messages