LayoutFarm / HtmlRenderer

C# HTML Layout and HTML Rendering Engine
http://layoutfarm.github.io/HtmlRenderer/
Other
185 stars 40 forks source link

Build problems #17

Closed GustavoHennig closed 5 years ago

GustavoHennig commented 6 years ago

Hi, I am trying to build the project and I have many broken references and there are several projects unavailable. Is this guide still valid? https://github.com/LayoutFarm/HtmlRenderer/wiki/3.-Build-The-Project

prepare commented 6 years ago

@GustavoHennig

Thank you for your interest. That guide is too old. I will revise it again later.

at this moment, I provide an early help first.


How to Build the HtmlRenderer

2018, June

OS: Win10 Visual Studio: 2017

Screenshot step-by-step is here :)


1. Clone I start with a folder name 'd:\projects'

We need 2 projects

1) HtmlRenderer (https://github.com/LayoutFarm/HtmlRenderer, master branch) 2) PixelFarm (https://github.com/PaintLab/PixelFarm, master branch)

clone it into the d:\projects folder

01_started_with_proje_cts_folder

pic 1: the 2 projects must be placed in the same level like this picture, there are cross-references between them


2. Build PixelFarm

02_open_pixelfarm_minidev_sln pic 2: VS2017, Open that MiniDev.sln in that folder


03_build_pixelfarm pic 3: Solution Explorer, Build All


04_pixelfarm_succeeded

pic 4: Succeeded!


3. Build HtmlRenderer

05_build_html_renderer

pic 5: Open that solution


06_build_html_renderer

pic 6: Solution Explorer, Build All


07_html_renderer_succeeded

pic 7: Succeeded!


4. Test It

08_test3_mixhtml

_pic 8: F5 on Test3MixHtml project, click the example in the RedBox


09_acid1_sample

pic 9: Acid1 test page


GustavoHennig commented 6 years ago

Thank you, it worked!

I had to do 2 small changes to run:

prepare commented 6 years ago

If you want that data ... "d:/test/icu60/brkitr_src/dictionaries" =>

It is 'raw' Icu data for text-break

It try to look for this ... https://github.com/PaintLab/PixelFarm/tree/dev/src/PixelFarm/Typography/Typography.TextBreak/icu61/brkitr/dictionaries

or download the original Icu data (http://cldr.unicode.org/)

prepare commented 6 years ago

More info about HtmlRenderer ... see https://github.com/LayoutFarm/HtmlRenderer/issues/15

prepare commented 6 years ago

This guide has been changed again.

Previously, the Typography lib is embeded in the PixelFarm.

Now, I spin off the Typography, and remove it from PixelFarm.


When one build the PixelFarm. You need to clone the Typography into the folder (Typography) at the same level as PixelFarm. (like the HtmlRenderer need the PixelFarm on the same level)

jingyiliu commented 5 years ago

Failed to build the Typography! The error is found at: BitmapFontMx->ReadGlyphImages method. It seems that a GetBuffer method is missing in type PixelFarm.CpuBlit.ActualBitmap.

prepare commented 5 years ago

Hello @jingyiliu

I forget to upload latest Typography.

The error should be fixed with this https://github.com/LayoutFarm/Typography/commit/3b990f0057ff1901d10abde38a0ef15b8efa63a7

jingyiliu commented 5 years ago

It works now. Thank you for your quick response.

prepare commented 4 years ago

Latest all-in-one build, see=> https://github.com/LayoutFarm/HtmlRenderer.Build