Comments (10)
Thanks for the bug report.
As you don't say what platform or tool you are using, I'm assuming it is macOS. The reasong the bundle is so big is because it copies the CEF framework 5 times. I changed the CMake script so it removes 4 of the copies and points the executables to the remaining copy, bringing the size down to about 200MB. I don't know how to instruct Xcode to do it automatically, but either adding a post-build script or doing it manually aftewards should work.
The changed CMakeLists.txt is already published, just update your local copy and run make again.
If it is another platform, tell me which, and also which tool you're using to build.
from cef3simplesample.
Thank you for answering my questions during your busy schedule! I used Xcode to build the macos environment, and then used your latest CMakeList.txt script, recompiled under the new folder build, and found a new error, Error copying directory from "/Volumes/data/ TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample Helper.app" to "/Volumes/data/TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample.app/Contents/Frameworks/CEF3SimpleSample Helper.app".
Command PhaseScriptExecution failed with a nonzero exit code
How should I deal with it?
from cef3simplesample.
from cef3simplesample.
/Volumes/data/ TestSimple/CEF3SimpleSample-master/build/CEF3SimpleSample Helper.app. This file exists after recompiling cmakelist.txt. Xcode prompts this error
from cef3simplesample.
Can you tell me how to manually remove the cef framework included in xcode 4 times?
from cef3simplesample.
Inside CEF3SimpleSample.app (right-click and select Show Package Contents) there is a folder Contents/Frameworks with 4 helper apps. You have to open them and remove their Contents/Frameworks folder. After that you have to run
install_name_tool -change "@executable_path/../Frameworks/Chromium Embedded Framework.framework/Chromium Embedded Framework" "@executable_path/../../../Chromium Embedded Framework.framework/Chromium Embedded Framework" EXEC_PATH
for each of the helper app's executable (inside Contents/MacOS - replace EXEC_PATH with the actual executable path)
from cef3simplesample.
Ok. Thank you very much! I will use your method to study this one. Thank you
from cef3simplesample.
I just pushed an update to the Xcode project that should correctly pack by default. It runs those commands for you and does not embed the extra copies.
The copy not working error, however, is kinda linked to your setup. I believe your data drive is not APFS nor HPFS+, and that may be what is causing problems. Try creating the build folder in an APFS driver to see if that is it. Hope it is, as I have no idea what else might be going on there.
from cef3simplesample.
thank you very much! Let me try
from cef3simplesample.
Already, thank you very much!
from cef3simplesample.
Related Issues (20)
- Error when build for MacOS HOT 2
- [suggestion] Support CMake HOT 2
- [suggestion] Support Travis HOT 1
- Problems when run on Windows HOT 2
- Problems with VS2017 and Win10 HOT 5
- Problems with CMake on Win10 and VS 2017 HOT 4
- Visual Studio 2019 & Windows 10, Couldn't mmap icu data file
- Help GPUCache folder and Process running HOT 6
- Win: Visual Studio 2019 Unresolved external symbols HOT 12
- CEF dll crashes at CefInitialize HOT 4
- Missing header files in source? HOT 3
- URL Request with a Callback HOT 1
- CEF90.6.5 crash in macos HOT 4
- Enter the password every time you re-run the app HOT 3
- About ClientV8ExtensionHandler file HOT 6
- abcout dispatch_get_main_queue HOT 1
- How to add CefDragHandler? HOT 1
- Any chance of getting this building on Mac arm64
- Question HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cef3simplesample.