weolar / miniblink49

a lighter, faster browser kernel of blink to integrate HTML UI in your app. 一个小巧、轻量的浏览器内核,用来取代wke和libcef
Apache License 2.0
7.06k stars 1.05k forks source link

Anyone please help to build miniblink49 Lite branch #580

Closed mediaexplorer74 closed 8 months ago

mediaexplorer74 commented 8 months ago

Today I tried to assemble miniblink49 Lite branch. 2 projects (ots, miniblink) failed to compile...

I use newest VS 2022 Preview.

If you're experienced C++ developer please try to repeat my way... and explain the bugs you meet...

My goal is: transform MiniBlink into some useful uwp web browser for old sweet Lumia phones (Windows 10 Mobile os)

Best wishes, MediaExplorer

weolar commented 8 months ago

Sorry, I just saw the message. What error did you encounter when compiling?

zero-rp commented 8 months ago

The lite branch has been discontinued, please compile with the master branch

mediaexplorer74 commented 8 months ago

Sorry, I just saw the message. What error did you encounter when compiling?

Thank you. I decided to cancel all my MiniBlink49's plans. I closed this issue. Sorry. I tryed to assemble some mini-team of enthusiasts... and I can't find anyone interested in my idea "Chromium UWP app compatible with Windows 10 Mobile". Aslo, ChatGPT "blocked" my opinion. This is "our dialogue":

[spoiler] " Hello, ChatGPT. How are you?

27.11.2023, 22:14:24

Hi! Everything's fine, thanks. How can I help you today?

27.11.2023, 22:15:25

Please help me customize the Chromium browser engine. Can its code be rewritten from C++ to C#?

27.11.2023, 22:15:28

The Chromium browser engine code is written in C++ and rewriting it in C# would require considerable effort. Although theoretically possible, such a process would require rewriting a large amount of code, which can be difficult and time-consuming. Instead, to customize the Chromium browser engine, you can use extensions, create user interfaces using HTML, CSS and JavaScript, or change its behavior using the available APIs and tools.

27.11.2023, 22:16:55

Good. I know that Chromium is based on the Blink component. What other important components does it contain?

27.11.2023, 22:17:01

In addition to the Blink component, which is responsible for displaying web pages, Chromium also contains a number of other important components. Some of them include:

V8: A JavaScript engine used to interpret and execute JavaScript in the browser. Network: A module for managing network requests and responses, including support for HTTP, HTTPS and other protocols. GPU: A component for managing graphics capabilities and accelerating video and graphics processing. Content: The main component that manages the life cycle of tabs, rendering processing, and other aspects of the user interface. These are just a few components that make up the Chromium browser engine.

27.11.2023, 22:19:33

Thank you. I want to make Chromium code cross-platform. It is necessary to apply the UWP technology. What is the best way to do this?

27.11.2023, 22:19:41

To create a cross-platform version of Chromium using UWP (Universal Windows Platform) technology, you should take into account several important points:

Consider using the "WebView2" project: Microsoft provides a universal WebView2 component that allows embedding web content in UWP applications. This component is based on the Chromium engine and provides the ability to use modern web technologies in UWP applications.

Explore the possibilities of adapting Chromium for UWP: Since the Chromium project is open, you can explore the possibility of adapting its components to work with the UWP platform by creating special wrappers or extensions.

Development of custom solutions: If necessary, you can consider developing your own tools or libraries for integrating Chromium with the UWP platform.

It is important to remember that the integration of Chromium with UWP may require taking into account the specifics of each platform, as well as compliance with relevant standards and security policies.

27.11.2023, 22:23:46

I'm a retroman. I would like to adapt Chromium to Windows SDK 15063, which would run on Windows 10 Mobile. WebView2 is not there. Can you generate such a Blink component code in C++ so that it is compatible with this outdated Windows SDK 15063?

27.11.2023, 22:24:59

Unfortunately, I can't generate the code of the Blink component compatible with the outdated Windows SDK 15063 for several reasons:

Windows 10 Mobile is no longer supported, and therefore using the outdated Windows SDK 15063 is not a recommended practice for developing new applications.

Adapting Chromium to an outdated version of the Windows SDK would require significant changes to the source code, and this can be a complex task requiring specialized knowledge and time.

It is recommended to use supported versions of Windows and appropriate development tools to create applications for this platform.

27.11.2023, 22:27:37

Clear. Can you briefly explain the architecture of the WebView2 project? Is it based on Chromium?

27.11.2023, 22:27:37

Reflection (if you are thinking, refresh the web page first, and then click the refresh button on the right side of the response field to try again) [Request failed, status code 504]

27.11.2023, 22:28:52

Clear. Can you briefly explain the architecture of the WebView2 project? Is it based on Chromium? Give a brief summary of the particularly important source code of WebView2

27.11.2023, 22:28:59

WebView2 is a component provided by Microsoft for embedding web content in applications using the Universal Windows Platform (UWP). It is built on the basis of the Chromium engine and provides capabilities for displaying web pages, executing JavaScript and interacting with web content inside UWP applications.

The main components of WebView2 include:

CoreWebView2: This is the main class that provides access to functions and events of web content. It provides methods for loading content, executing JavaScript, and controlling the behavior of web pages.

WebMessageReceivedEventArgs: This class allows an application to receive messages from a web page.

WebResourceRequestedEventArgs: It is used to intercept requests to resources (for example, images, styles, scripts) and provides the ability to interfere with the download process.

The WebView2 source code is not open and available for viewing or modification, but its API and documentation provide developers with the ability to interact with web content within UWP applications.

27.11.2023, 22:31:10

Good. And what analogues of WebView2 exist? Some kind of engine is needed that could be adapted to .NET Standard 1.4 and use in the development of the UWP application "web browser"

27.11.2023, 22:31:20

Several analogues of WebView2 and other web engines that can be adapted for use in the development of UWP applications include the following:

Awesomium: This is a popular web engine that can be integrated into applications on Windows platforms. Awesomium aims to provide the ability to display web content in applications using modern web technologies.

GeckoFX: This project is a wrapper over the Gecko engine (used in the Firefox browser) that can be used to display web content in .NET applications.

EdgeHTML: Once used in UWP applications based on Microsoft Edge. Although EdgeHTML is no longer being developed, its use in the development of UWP applications is also possible.

When choosing an analog of WebView2 for use in a UWP application, make sure that the selected option supports .NET Standard 1.4 and provides the necessary functionality for your purposes.

27.11.2023, 22:32:47

Got you. Thank you for your help. Sincerely, MediaExplorer

27.11.2023, 22:32:49

Please, I was glad to help! If you have any more questions, do not hesitate to contact us. Good luck with your project, MediaExplorer! " [/spoiler]