error while debug with ninja

Having problems with building or using the JCEF Java binding? Ask your questions here.

error while debug with ninja

Postby yosep331 » Fri Jul 03, 2015 6:06 am

i'm follow this tutorial
https://code.google.com/p/javacef/wiki/CEF3Instructions

i have error when debug with ninja
this an error, i don't know what files does it mean

C:\Users\IBEN\git\javacef\cef3>ninja -C out\Debug
ninja: Entering directory `out\Debug'
[84/120] ACTION build_java_sources: build_java_files_d6bae5dd645014a09caaa43c5dbaf169
FAILED: C:\Python27\python.exe gyp-win-tool action-wrapper environment.x86 build_java_sources_target_build_java_files_d6
bae5dd645014a09caaa43c5dbaf169..rsp ..\..\java
The system cannot find the path specified.
[84/120] CXX obj\chromium_loader\libcef_dll\ctocpp\libcef_dll_wrapper.xml_reader_ctocpp.obj
ninja: build stopped: subcommand failed.


i'm build with windows 7, java 7

can i build with java 6 ?? thanks
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Re: error while debug with ninja

Postby magreenblatt » Mon Jul 06, 2015 12:28 pm

The JCEF project is hosted at https://bitbucket.org/chromiumembedded/java-cef. You can find build instructions at https://bitbucket.org/chromiumembedded/ ... uilding.md.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: error while debug with ninja

Postby yosep331 » Mon Jul 06, 2015 9:15 pm

thanks for reply..

but i'm confuse about step
6. Set up the required gyp environment variables.

GYP_DEFINES:
Set jcef_platform to the desired build ("win32", "win64", "linux32", "linux64", “macosx64”).
Set jdk_directory to the full path to the currently installed JDK7 root directory.
Set target_arch to x64 for the 64-bit Mac OS X build.
GYP_GENERATORS:
Ninja is not yet supported.

how do i set those variable??
thanks..
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Re: error while debug with ninja

Postby edominic » Tue Jul 07, 2015 3:00 am

Are you reading the instructions???

Code: Select all
# Windows 64-bit
set GYP_GENERATORS=msvs
set GYP_DEFINES=jcef_platform=win64 jdk_directory="C:\Program Files\Java\jdk1.7.0_25"

# Linux 64-bit
export GYP_GENERATORS=make
export GYP_DEFINES="jcef_platform=linux64 jdk_directory=/usr/lib/jvm/java-7-oracle"

# Mac OS X 64-bit
export GYP_GENERATORS=xcode
export GYP_DEFINES="jcef_platform=macosx64 jdk_directory=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home target_arch=x64"
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: error while debug with ninja

Postby yosep331 » Tue Jul 07, 2015 4:01 am

edominic wrote:Are you reading the instructions???

Code: Select all
# Windows 64-bit
set GYP_GENERATORS=msvs
set GYP_DEFINES=jcef_platform=win64 jdk_directory="C:\Program Files\Java\jdk1.7.0_25"

# Linux 64-bit
export GYP_GENERATORS=make
export GYP_DEFINES="jcef_platform=linux64 jdk_directory=/usr/lib/jvm/java-7-oracle"

# Mac OS X 64-bit
export GYP_GENERATORS=xcode
export GYP_DEFINES="jcef_platform=macosx64 jdk_directory=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home target_arch=x64"



is that type at command line??
any folder??

another question
after run gclient runhooks

Code: Select all
________ running 'C:\Users\IBEN\Documents\GitHub\depot_tools\python276_bin\python.exe src/tools/gyp_jcef src/jcef.gyp -I
 src/jcef.gypi' in 'C:\Users\IBEN\Documents\GitHub\java-cef'
['C:\\Users\\IBEN\\Documents\\GitHub\\java-cef\\src\\third_party\\gyp\\pylib', 'C:\\Users\\IBEN\\Documents\\GitHub\\java
-cef\\src\\tools', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\lib\\site-packages\\setuptools-1.3.2
-py2.7.egg', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\python27.zip', 'C:\\Users\\IBEN\\Documents
\\GitHub\\depot_tools\\python276_bin\\DLLs', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\lib', 'C:\
\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\lib\\plat-win', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_
tools\\python276_bin\\lib\\lib-tk', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin', 'C:\\Users\\IBEN\\
Documents\\GitHub\\depot_tools\\python276_bin\\lib\\site-packages', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\py
thon276_bin\\lib\\site-packages\\win32', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\lib\\site-pack
ages\\win32\\lib', 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\lib\\site-packages\\Pythonwin', 'C:\
\Users\\IBEN\\Documents\\GitHub\\depot_tools\\', 'C:\\Users\\IBEN\\Documents\\GitHub\\java-cef\\tools\\gyp']
Traceback (most recent call last):
  File "src/tools/gyp_jcef", line 34, in <module>
    import gyp
ImportError: No module named gyp
Error: Command 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\python.exe src/tools/gyp_jcef src/jcef.g
yp -I src/jcef.gypi' returned non-zero exit status 1 in C:\Users\IBEN\Documents\GitHub\java-cef


i'm already import 'C:\\Users\\IBEN\\Documents\\GitHub\\java-cef\\tools\\gyp but cannot find
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Re: error while debug with ninja

Postby yosep331 » Thu Jul 09, 2015 2:54 am

Code: Select all
C:\Users\IBEN\Documents\GitHub\java-cef>gclient runhooks

________ running 'C:\Users\IBEN\Documents\GitHub\depot_tools\python276_bin\python.exe src/tools/gyp_jcef src/jcef.gyp -I
 src/jcef.gypi' in 'C:\Users\IBEN\Documents\GitHub\java-cef'
Enabled Psyco JIT.

Generating JCEF version header file...

________ running 'C:\Users\IBEN\Documents\GitHub\depot_tools\python276_bin\python.exe tools/make_version_header.py --hea
der native/jcef_version.h' in 'C:\Users\IBEN\Documents\GitHub\java-cef\src'
File native/jcef_version.h updated.
Updating projects from gyp files...
Traceback (most recent call last):
  File "src/tools/gyp_jcef", line 145, in <module>
    result = gyp.main(args);
  File "C:\Users\IBEN\Documents\GitHub\java-cef\src\third_party\gyp\pylib\gyp\__init__.py", line 538, in main
    return gyp_main(args)
  File "C:\Users\IBEN\Documents\GitHub\java-cef\src\third_party\gyp\pylib\gyp\__init__.py", line 514, in gyp_main
    options.duplicate_basename_check)
  File "C:\Users\IBEN\Documents\GitHub\java-cef\src\third_party\gyp\pylib\gyp\__init__.py", line 92, in Load
    for (key, val) in generator.generator_default_variables.items():
AttributeError: 'module' object has no attribute 'generator_default_variables'
Error: Command 'C:\\Users\\IBEN\\Documents\\GitHub\\depot_tools\\python276_bin\\python.exe src/tools/gyp_jcef src/jcef.g
yp -I src/jcef.gypi' returned non-zero exit status 1 in C:\Users\IBEN\Documents\GitHub\java-cef

C:\Users\IBEN\Documents\GitHub\java-cef>


anyone know what happen with jcef??
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Re: error while debug with ninja

Postby magreenblatt » Thu Jul 09, 2015 2:15 pm

What GYP_GENERATORS value are you specifying?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: error while debug with ninja

Postby yosep331 » Tue Jul 14, 2015 2:26 am

sorry i'm build with wrong cef...

and finally i'm made it through build without problem..
then i try debug mode.. the app running with little problem when download and sometime crash just need refresh it's run again..
but when i try release mode.. i've got error
Code: Select all
Added scheme search://
Added scheme client://
[0714/111437:FATAL:isolate_holder.cc(70)] Couldn't mmap v8 natives data file
Backtrace:
        cef_trace_event_instant [0x1543DF81+1729809]
        cef_trace_event_instant [0x1536136F+825599]
        cef_trace_event_instant [0x177E08E0+39095920]
        cef_trace_event_instant [0x177E0487+39094807]
        SetCrashKeyValueImpl [0x1A0DF55D+35372237]
        cef_string_list_value [0x150D5A8F+159951]
        cef_string_list_value [0x150D4F57+157079]
        cef_initialize [0x1500AC38+504]
        CefInitialize [0x2CD27142+322] (c:\users\iben\documents\github\java-cef\src\third_party\cef\win32\libcef_dll\wra
pper\libcef_dll_wrapper.cc:167)
        Java_org_cef_CefApp_N_1Initialize [0x2CCA084E+350] (c:\users\iben\documents\github\java-cef\src\native\cefapp.cp
p:79)



i'm already copy
* Java archives
jcef.jar
gluegen-rt.jar
gluegen-rt-natives-windows-i586.jar
jogl-all.jar
jogl-all-natives-windows-i586.jar

* CEF JNI library
jcef.dll

* CEF JNI process helper
jcef_helper.exe

* CEF core library
libcef.dll

* Unicode support
icudtl.dat

thank's for answer...
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Re: error while debug with ninja

Postby magreenblatt » Tue Jul 14, 2015 9:59 am

yosep331 wrote:[0714/111437:FATAL:isolate_holder.cc(70)] Couldn't mmap v8 natives data file

You need natives_blob.bin and snapshot_blob.bin.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: error while debug with ninja

Postby yosep331 » Thu Jul 23, 2015 2:57 am

magreenblatt wrote:
yosep331 wrote:[0714/111437:FATAL:isolate_holder.cc(70)] Couldn't mmap v8 natives data file

You need natives_blob.bin and snapshot_blob.bin.

thanks... it works

but when i'm run and close when web not fully load show this error
Code: Select all
CefApp: SHUTTING_DOWN
  shutdown on Thread[AWT-EventQueue-0,6,main]
[0723/142612:FATAL:browser_main.cc(165)] Check failed: 0 == CefURLRequestContext::DebugObjCt (0 vs. 1)
Backtrace:
        cef_trace_event_instant [0x1542DF81+1729809]
        cef_trace_event_instant [0x1535136F+825599]
        cef_time_to_timet [0x1525F449+1025913]
        SetCrashKeyValueImpl [0x184F9C55+6185925]
        SetCrashKeyValueImpl [0x184598E5+5529685]
        cef_time_to_timet [0x151A1B75+249509]
        cef_trace_event_instant [0x153EC2B5+1460293]
        cef_trace_event_instant [0x153733FB+965003]
        BaseThreadInitThunk [0x75A6ED6C+18]
        RtlInitializeExceptionChain [0x776E37EB+239]
        RtlInitializeExceptionChain [0x776E37BE+194]

i have another question.. can i make lib more compact??

thanks..
yosep331
Techie
 
Posts: 18
Joined: Tue May 19, 2015 3:28 am

Next

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 136 guests