Skip to content

Instantly share code, notes, and snippets.

@xiongjia
Last active March 23, 2021 15:21
Show Gist options
  • Select an option

  • Save xiongjia/5f0c461dd4ff4984426026e9c0cb0649 to your computer and use it in GitHub Desktop.

Select an option

Save xiongjia/5f0c461dd4ff4984426026e9c0cb0649 to your computer and use it in GitHub Desktop.

Revisions

  1. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -20,6 +20,6 @@ The default VS solution and source code are created for static library. We need
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
    * The default output folder is "/objs/win32/vc2010"

    # Reference
    # References
    * [Compiling FreeType to DLL (as opposed to static library)](https://stackoverflow.com/questions/6207176/compiling-freetype-to-dll-as-opposed-to-static-library)
    * [Build freetype and harfbuzz as Windows DLLs](http://www.gregwessels.com/dev/2017/05/02/freetype-harfbuzz.html)
  2. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # Purpose
    Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compiling.
    Building the freetype Windows 32 DLL & LIB for the Windows OpenJDK Compiling.

    # Get the freetype source code
    * Download it from https://www.freetype.org/
  3. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,4 @@ The default VS solution and source code are created for static library. We need

    # Reference
    * [Compiling FreeType to DLL (as opposed to static library)](https://stackoverflow.com/questions/6207176/compiling-freetype-to-dll-as-opposed-to-static-library)
    * [Build freetype and harfbuzz as Windows DLLs](http://www.gregwessels.com/dev/2017/05/02/freetype-harfbuzz.html)
  4. xiongjia revised this gist Sep 14, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * Or sourceforge http://sourceforge.net/projects/freetype/files/
    * freetype-2.3.5 at least

    # Updating the Freetype VS solution settings
    The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015).
    # Updating the Freetype Visual Studio solution settings
    The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via Visual Studio 2015).
    The default VS solution and source code are created for static library. We need update below 2 items for change it to .DLL:
    - The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
  5. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ The default VS solution and source code are created for static library. We need
    * Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    * Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    # Building the freetype
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
    * The default output folder is "/objs/win32/vc2010"

  6. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * freetype-2.3.5 at least

    # Updating the Freetype VS solution settings
    The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015).
    The default VS solution and source code are created for static library. We need update below 2 items for change it to .DLL:
    - The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
  7. xiongjia revised this gist Sep 14, 2017. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -7,9 +7,8 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * freetype-2.3.5 at least

    # Updating the Freetype VS solution settings
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    The default VS solution and source code are created for static library. We need update below 2 items for change it to .DLL:
    - The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    - The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
  8. xiongjia revised this gist Sep 14, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    # Updating the Freetype VS solution settings
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    We need update below 2 items for change it to .DLL:
    - The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    - The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
  9. xiongjia revised this gist Sep 14, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,12 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    + The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    - The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    + The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    - The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    - Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    - Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`
    * Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    * Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
  10. xiongjia revised this gist Sep 14, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,12 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    + The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    + The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`
    - Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    - Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
  11. xiongjia revised this gist Sep 14, 2017. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,12 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
  12. xiongjia revised this gist Sep 14, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -10,12 +10,12 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    > The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    > The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
  13. xiongjia revised this gist Sep 14, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions building-freetype2.md
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,9 @@ Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compi
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    > The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    > The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`
  14. xiongjia renamed this gist Sep 14, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  15. xiongjia created this gist Sep 14, 2017.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    # Purpose
    Building the freetype DLL & LIB Windows 32 version for the Windows OpenJDK Compiling.

    # Get the freetype source code
    * Download it from https://www.freetype.org/
    * Or sourceforge http://sourceforge.net/projects/freetype/files/
    * freetype-2.3.5 at least

    # Updating the Freetype VS solution settings
    * The default Windows building VS solution is "/builds/windows/vc2010/freetype.sln" (I built it via VS 2015)
    * The default VS solution and source code are created for static library.
    We need update below 2 items for change it to .DLL:
    ** The project config and the General tab, change configuration type to "Dynamic Library (.dll)".
    NOTES: Select your configuration to "Release Multithread" + "Windows 32" first.
    ** The default freetype Windows code is created for static library. We need change the dll export declare macro in the .h file.
    For freetype-2.3.5: The file is "ftconfig.h". Below items need to update:
    *** Change `FT_EXPORT` to `#define FT_EXPORT(x) __declspec(dllexport) x`
    *** Change `FT_BASE` to `#define FT_BASE(x) __declspec(dllexport) x`

    # Building the freetypes
    * Select the "Release Multithread" + "Windows 32" configuration and build it.
    * The default output folder is "/objs/win32/vc2010"

    # Reference
    * [Compiling FreeType to DLL (as opposed to static library)](https://stackoverflow.com/questions/6207176/compiling-freetype-to-dll-as-opposed-to-static-library)