javacef icon indicating copy to clipboard operation
javacef copied to clipboard

Problems building linux64 version

Open rgansevles opened this issue 8 years ago • 3 comments

Hi,

I am trying to build this library on linux64 (Ubuntu 14.04) and am having some issues.

I checked out the git repository and unzipped cef_binary_3.2680.1395.g84fe790_linux64.7z into cef_runtime/linux64.

after GYP_GENERATORS=make tools/configure.sh linux64, make compiles a lot and fails with:

g++: error: /data/dev/javacef/cef3/cef_runtime/linux64/lib/libcef.so: No such file or directory

I modified chromium_loader/chromium_loader.gyp, replaced lib/libcef.so with Debug/libcef.so

Now make returns success, when running tools/run.sh linux64 I get error: Exception in thread "main" java.lang.UnsatisfiedLinkError: /data/dev/javacef/cef3/out/Debug/lib.target/libchromium_loader.so: libcef.so: cannot open shared object file: No such file or directory

Then I changed -Wl,-rpath,. to -Wl,-rpath,cef_runtime/linux64/Debug in chromium_loader/chromium_loader.gyp and rebuilt again.

Running now fails with:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /data/dev/javacef/cef3/out/Debug/lib.target/libchromium_loader.so: /data/dev/javacef/cef3/out/Debug/lib.target/libchromium_loader.so: undefined symbol: cef_end_tracing_async

How can I build and run javacef on linux64?

Thanks in advance,

Rob

rgansevles avatar Apr 15 '16 09:04 rgansevles

You should download 3.1750.1738 instead of 3.2680.1395.g84fe790 because the api does not match.

wjywbs avatar Apr 15 '16 20:04 wjywbs

Thanks for the quick reply.

I downloaded that version, still had to modify chromium_loader.gyp like in my previous post. I also added settings.no_sandbox = true; because of some errors with the sandbox.

Now the sample runs, I get a window which I can use to open a window with a browser.

When I switch tabs in the browser, I get a core dump:

rob:/data/dev/javacef/cef3$ ./tools/run.sh linux64 Running Debug build. LaunchProcess: failed to execvp: /data/dev/javacef/cef3/cef_runtime/linux64/cefclient [0419/082139:ERROR:child_process_launcher.cc(332)] Failed to launch child process [0419/082142:ERROR:child_process_launcher.cc(332)] Failed to launch child process [0419/082142:ERROR:child_process_launcher.cc(332)] Failed to launch child process [0419/082142:ERROR:child_process_launcher.cc(332)] Failed to launch child process [0419/082146:FATAL:browser_main_loop.cc(234)] GLib: Source ID 660 was not found when attempting to remove it [0x7f1d77ae04dc] base::debug::StackTrace::StackTrace() [0x7f1d77b481ef] logging::LogMessage::~LogMessage() [0x7f1d77cdf874] content::(anonymous namespace)::GLibLogHandler() [0x7f1d8975bae1] g_logv [0x7f1d8975bd72] g_log [0x7f1d89753c5c] g_source_remove [0x7f1dc8651b1e] Java_org_eclipse_swt_internal_gtk_OS__1g_1source_1remove [0x7f1dc9010eee]

./tools/run.sh: line 81: 4033 Aborted (core dumped) "$JAVA_HOME$JAVA_BIN" -cp "$PROJECT_DIR/java/lib/linux/swt64.jar:$BUILD_DIR/$JAR_NAME" -Djava.library.path="$BUILD_DIR/lib:$BUILD_DIR/lib.target" -Duser.dir="$PROJECT_DIR/java" org.embedded.browser.SampleBrowserSWT

Does anyone have an idea how to run this sample?

Rob

rgansevles avatar Apr 19 '16 15:04 rgansevles

Is there any permission issue with /data/dev/javacef/cef3/cef_runtime/linux64/cefclient? Or does it exist? The "failed to launch child process" error should be fixed first.

wjywbs avatar Apr 21 '16 17:04 wjywbs