MacOS. Questions from noob

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

MacOS. Questions from noob

Postby achiv » Sat Feb 10, 2018 6:16 am

MacOs 10.13.3
XCODE 9.2
JAVA 8U121

1. I am compier JCEF.
https://bitbucket.org/chromiumembedded/ ... ndBuilding
Code: Select all
# Open jcef.xcodeproj in Xcode
# - Select Scheme > Edit Scheme and change the "Build Configuration" to "Release"
# - Select Product > Build.

Success. But i see warning "ld: warning: -pie being ignored. It is only used when linking a main executable". Isn' it critical?
------------------------------------------------------
2.
Code: Select all
cd /path/to/java-cef/src/jcef_build/native/Release
open jcef_app.app

I see error in console
Code: Select all
Offscreen rendering disabled
WARNING: GL pipe is running in software mode (Renderer ID=0x1020400)
Using:
JCEF Version = 3.3239.171
CEF Version = 3.3239.1716
Chromium Version = 63.0.3239.109
CefApp: INITIALIZING
initialize on Thread[AWT-EventQueue-0,6,main] with library path /Users/admin/Desktop/jcef/src/jcef_build/native/Release/jcef_app.app/Contents/Java/
Added scheme search://
Added scheme client://
CefApp: INITIALIZED
Assertion failed: (![self _isLayerBacked]), function -[NSView _updateLayerBackedness], file /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1561.20.106/AppKit.subproj/NSView.m, line 3244.
Abort trap: 6

I find patch, but i don't how apply it. Help me please, please tell me, what do I have to do? https://bitbucket.org/chromiumembedded/ ... ierra-1013
--------------------------------------------------------------------------
3. I have JCEF project, which success work on windows.
But run this project on macOS with JCEF macOS jar files give me error
Code: Select all
WARNING: GL pipe is running in software mode (Renderer ID=0x1020400)
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/admin/Desktop/jcef/src/jcef_build/native/Release/libjcef.dylib: dlopen(/Users/admin/Desktop/jcef/src/jcef_build/native/Release/libjcef.dylib, 1): Library not loaded: @rpath/Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework
  Referenced from: /Users/admin/Desktop/jcef/src/jcef_build/native/Release/libjcef.dylib
  Reason: image not found

I seach solution https://bitbucket.org/chromiumembedded/ ... t-35461901
But I am not undestand, what do with that.

Please, any information and advice.
I am first time work with macOS :oops:
achiv
Newbie
 
Posts: 2
Joined: Thu Feb 08, 2018 5:48 pm

Re: MacOS. Questions from noob

Postby Czarek » Mon Feb 19, 2018 8:37 am

1) Not sure about JCEF, but building CEF from sources requires XCode 8.3, see requirements here: https://bitbucket.org/chromiumembedded/ ... ndBuilding
2) Seems like the patch needs to be applied to JCEF sources. You then need to rebuild JCEF.
3) Currently JCEF requires that you put CEF binary files in the same directory in which java binaries reside.
Maintainer of the CEF Python, PHP Desktop and CEF2go projects. Programmer for hire, see my Resume.
User avatar
Czarek
Genius
 
Posts: 1229
Joined: Sun Nov 06, 2011 2:12 am
Location: Poland


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 1 guest