yueying0083 / javachromiumembedded

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

Problem with creating build #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
According to wiki page: 
https://code.google.com/p/javachromiumembedded/wiki/BranchesAndBuilding

I'm unable to create build in this part of wiki:

cd /path/to/jcef/src/tools
./build.sh Release

Running that command return:
LINK(target) out/Debug/jcef_helper
/usr/bin/ld: unrecognized option '--threads'
/usr/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
make: *** [out/Debug/jcef_helper] Error 1

I'm using Ubuntu 64b 14.04.

I'm using biniaries cef_binary_3.1750.1738_linux64 from cefbuilds.com

Original issue reported on code.google.com by robert.k...@gmail.com on 30 Oct 2014 at 7:37

GoogleCodeExporter commented 8 years ago
You need to use the gold linker instead of the default ld. See 
http://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience
/3476562#3476562.

Original comment by magreenb...@gmail.com on 30 Oct 2014 at 2:57

GoogleCodeExporter commented 8 years ago
That solve problem, thanx but another show :).

  CXX(target) out/Release/obj.target/jcef/native/CefClientHandler.o
native/CefBrowser_N.cpp: In function ‘jboolean {anonymous}::create(JNIEnv*, 
jobject, jobject, jobject, jlong, jstring, jboolean, jobject, jobject)’:
native/CefBrowser_N.cpp:186:52: error: no matching function for call to 
‘CefBrowserHost::ShowDevTools(CefWindowInfo&, ClientHandler*, 
CefBrowserSettings&)’
                                            settings);
                                                    ^
native/CefBrowser_N.cpp:186:52: note: candidate is:
In file included from native/CefBrowser_N.cpp:7:0:
third_party/cef/linux64/include/cef_browser.h:385:16: note: virtual void 
CefBrowserHost::ShowDevTools(const CefWindowInfo&, CefRefPtr<CefClient>, const 
CefBrowserSettings&, const CefPoint&)
   virtual void ShowDevTools(const CefWindowInfo& windowInfo,
                ^
third_party/cef/linux64/include/cef_browser.h:385:16: note:   candidate expects 
4 arguments, 3 provided
native/CefBrowser_N.cpp: In function ‘jlong 
Java_org_cef_browser_CefBrowser_1N_N_1GetWindowHandle(JNIEnv*, jobject, 
jlong)’:
native/CefBrowser_N.cpp:241:34: error: converting to non-pointer type ‘long 
unsigned int’ from NULL [-Werror=conversion-null]
   CefWindowHandle windowHandle = NULL;
                                  ^
native/CefBrowser_N.cpp: In function ‘void 
Java_org_cef_browser_CefBrowser_1N_N_1Invalidate(JNIEnv*, jobject, jobject)’:
native/CefBrowser_N.cpp:542:53: error: no matching function for call to 
‘CefBrowserHost::Invalidate(CefRect&, cef_paint_element_type_t)’
   browser->GetHost()->Invalidate(dirtyRect, PET_VIEW);
                                                     ^
native/CefBrowser_N.cpp:542:53: note: candidate is:
In file included from native/CefBrowser_N.cpp:7:0:
third_party/cef/linux64/include/cef_browser.h:462:16: note: virtual void 
CefBrowserHost::Invalidate(CefBrowserHost::PaintElementType)
   virtual void Invalidate(PaintElementType type) =0;
                ^
third_party/cef/linux64/include/cef_browser.h:462:16: note:   candidate expects 
1 argument, 2 provided
  CXX(target) out/Release/obj.target/jcef/native/CefContextMenuParams_N.o
  CXX(target) out/Release/obj.target/jcef/native/CefCookieManager_N.o
  CXX(target) out/Release/obj.target/jcef/native/CefDownloadItemCallback_N.o
cc1plus: all warnings being treated as errors
  CXX(target) out/Release/obj.target/jcef/native/CefDownloadItem_N.o
make: *** [out/Release/obj.target/jcef/native/CefBrowser_N.o] Błąd 1

Original comment by robert.k...@gmail.com on 30 Oct 2014 at 3:15

GoogleCodeExporter commented 8 years ago
@#2: It looks like you're using the wrong version of CEF. See 
third_party/cef/README.jcef for the correct version.

Original comment by magreenb...@gmail.com on 30 Oct 2014 at 3:20

GoogleCodeExporter commented 8 years ago
Great, with correct version everythink is working.
Thanks

Original comment by robert.k...@gmail.com on 30 Oct 2014 at 6:29

GoogleCodeExporter commented 8 years ago
Hi, I'm almost done :).
I started app with test with MainFrame.java from simple tests.

When I run program I get that error:

/usr/lib/jvm/java-8-oracle/bin/java 
-Djava.library.path=/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/lib/lin
ux64 -Didea.launcher.port=7543 
-Didea.launcher.bin.path=/home/inweo/Private/idea-IU/bin -Dfile.encoding=UTF-8 
-classpath 
/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar:/usr/lib/jvm/java-8-oracle/jre/lib/m
anagement-agent.jar:/usr/lib/jvm/java-8-oracle/jre/lib/javaws.jar:/usr/lib/jvm/j
ava-8-oracle/jre/lib/jfr.jar:/usr/lib/jvm/java-8-oracle/jre/lib/deploy.jar:/usr/
lib/jvm/java-8-oracle/jre/lib/charsets.jar:/usr/lib/jvm/java-8-oracle/jre/lib/rt
.jar:/usr/lib/jvm/java-8-oracle/jre/lib/jfxswt.jar:/usr/lib/jvm/java-8-oracle/jr
e/lib/jce.jar:/usr/lib/jvm/java-8-oracle/jre/lib/resources.jar:/usr/lib/jvm/java
-8-oracle/jre/lib/plugin.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/zipfs.jar:/u
sr/lib/jvm/java-8-oracle/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-8-ora
cle/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/jfxrt.jar:/usr/
lib/jvm/java-8-oracle/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-8-oracle/jre/lib
/ext/cldrdata.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/localedata.jar:/usr/lib
/jvm/java-8-oracle/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-8-oracle/jre/lib/ext/
sunpkcs11.jar:/home/inweo/IdeaProjects/Browser/out/production/Browser:/home/inwe
o/Apps/jcef/src/binary_distrib/linux64/bin/jcef.jar:/home/inweo/Apps/jcef/src/bi
nary_distrib/linux64/bin/jogl-all.jar:/home/inweo/Apps/jcef/src/binary_distrib/l
inux64/bin/gluegen-rt.jar:/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/j
cef-tests.jar:/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/jogl-all-nati
ves-linux-amd64.jar:/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/gluegen
-rt-natives-linux-amd64.jar:/home/inweo/Private/idea-IU/lib/idea_rt.jar 
com.intellij.rt.execution.application.AppMain Main
initialize on Thread[AWT-EventQueue-0,6,main] with library path 
/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/lib/linux64
/home/inweo/Apps/jcef/src/binary_distrib/linux64/bin/lib/linux64/jcef_helper: 
error while loading shared libraries: libcef.so: cannot open shared object 
file: No such file or directory
libEGL warning: DRI2: failed to authenticate
[1031/001112:ERROR:child_process_launcher.cc(328)] Failed to launch child 
process
[1031/001115:ERROR:child_process_launcher.cc(328)] Failed to launch child 
process

Before that I copied file icudtl.dat to /usr/lib/jvm/java-8-oracle/bin/ because 
get another error but I found solution. 

Generally after running that app window appeard but only address bar is 
displayed. Rest of window is empty.
Of course in the same directory where is jcef_helper there is libcef.so

Original comment by robert.k...@gmail.com on 30 Oct 2014 at 11:16