Error building JCEF on Ubuntu - no Release folder or files

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

Error building JCEF on Ubuntu - no Release folder or files

Postby stevec » Wed Nov 23, 2016 7:46 pm

Hi
I am using Ubuntu and new to CEF and trying to follow the instructions building the JCEF project at https://bitbucket.org/chromiumembedded/ ... ndBuilding but when I get to the "sh run.sh linux64 Release detailed" command i get this error

Code: Select all
ERROR: ld.so: object '/home/steve/workspace/java-cef/src/jcef_build/native/Release/libcef.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Offscreen rendering enabled
Exception in thread "main" java.lang.UnsatisfiedLinkError: no cef in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
   at java.lang.Runtime.loadLibrary0(Runtime.java:870)
   at java.lang.System.loadLibrary(System.java:1122)
   at org.cef.CefApp.<init>(CefApp.java:155)
   at org.cef.CefApp.getInstance(CefApp.java:246)
   at tests.detailed.MainFrame.<init>(MainFrame.java:100)
   at tests.detailed.MainFrame.main(MainFrame.java:70)


I have run these commands and can't see any errors in the console
Code: Select all
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make -j4

However they do not seem the create the folder Release folder at "/src/jcef_build/native/Release/" which I have created manually then rerun but there are no files getting added to the Release folder after I have added it manually.

Any help will be appreciated.
stevec
Newbie
 
Posts: 2
Joined: Wed Nov 23, 2016 7:33 pm

Re: Error building JCEF on Ubuntu - no Release folder or fil

Postby magreenblatt » Wed Nov 23, 2016 8:09 pm

You created a Debug build but you're trying to run a Release build. Use the same build type for all commands.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Error building JCEF on Ubuntu - no Release folder or fil

Postby stevec » Sun Nov 27, 2016 11:21 pm

Hi - thanks for the help that sorted it.
stevec
Newbie
 
Posts: 2
Joined: Wed Nov 23, 2016 7:33 pm


Return to JCEF Forum

Who is online

Users browsing this forum: Google [Bot] and 24 guests