Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build problems #17

Closed
GustavoHennig opened this issue Jun 4, 2018 · 9 comments
Closed

Build problems #17

GustavoHennig opened this issue Jun 4, 2018 · 9 comments

Comments

@GustavoHennig
Copy link

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
Copy link
Member

prepare commented Jun 7, 2018

@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 Test3_MixHtml project, click the example in the RedBox


09_acid1_sample

pic 9: Acid1 test page


@GustavoHennig
Copy link
Author

Thank you, it worked!

I had to do 2 small changes to run:

  • Comment the line: CommonTextServiceSetup.cs:58 (I don't have the file: "d:/test/icu60/brkitr_src/dictionaries")
  • I had to put this line in the main, due an exception in the float.parse. (In my location settings "," is the decimal separator).
    Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-US");

@prepare
Copy link
Member

prepare commented Jun 7, 2018

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 prepare closed this as completed Jun 8, 2018
@prepare
Copy link
Member

prepare commented Jun 14, 2018

More info about HtmlRenderer ...
see #15

@prepare
Copy link
Member

prepare commented Jul 3, 2018

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
Copy link

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
Copy link
Member

prepare commented Sep 1, 2018

Hello @jingyiliu

I forget to upload latest Typography.

The error should be fixed with this LayoutFarm/Typography@3b990f0

@prepare prepare reopened this Sep 1, 2018
@jingyiliu
Copy link

It works now.
Thank you for your quick response.

@prepare prepare closed this as completed Sep 2, 2018
@prepare
Copy link
Member

prepare commented Mar 2, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants