Can glyphy be made to run on Windows (for instance using Mingw?)

162 views
Skip to first unread message

Dann Corbit

unread,
Jan 30, 2016, 4:06:11 AM1/30/16
to GLyphy
I can build the freetype library and other prerequisites.
But the glyphy project itself I am not sure about.

I have GPUs on all the machines I use.
I have AMD and NVIDIA GPUs.  Does it matter which kind is used?

Behdad Esfahbod

unread,
Feb 1, 2016, 7:56:10 AM2/1/16
to gly...@googlegroups.com
Hi,

See:
https://github.com/behdad/glyphy/pull/12

behdad
> --
> You received this message because you are subscribed to the Google Groups
> "GLyphy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to glyphy+un...@googlegroups.com
> <mailto:glyphy+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Dann Corbit

unread,
Feb 2, 2016, 4:13:48 PM2/2/16
to GLyphy
Unfortunately, there appear to be two header files that are missing.  I cannot find them in the main tree or in the forked repository:

1>------ Build started: Project: glyphy, Configuration: Release x64 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5): warning MSB8028: The intermediate directory (x64\Release\) contains files shared from another project (glyphy-demo.vcxproj).  This can lead to incorrect clean and rebuild behavior.
1>  glyphy-shaders.cc
1>..\src\glyphy-shaders.cc(32): fatal error C1083: Cannot open include file: 'glyphy-common-glsl.h': No such file or directory
2>------ Build started: Project: glyphy-demo, Configuration: Release x64 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5): warning MSB8028: The intermediate directory (x64\Release\) contains files shared from another project (glyphy.vcxproj).  This can lead to incorrect clean and rebuild behavior.
2>  demo-shader.cc
2>..\demo\demo-shader.cc(25): fatal error C1083: Cannot open include file: 'demo-atlas-glsl.h': No such file or directory
2>  demo-view.cc
2>..\demo\demo-view.cc(126): warning C4305: '=': truncation from 'double' to 'float'
2>..\demo\demo-view.cc(190): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(191): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(199): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(200): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(559): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(570): warning C4244: '=': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(635): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
2>..\demo\demo-view.cc(639): warning C4244: 'argument': conversion from 'double' to 'float', possible loss of data
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========


Behdad Esfahbod

unread,
Feb 4, 2016, 1:45:03 AM2/4/16
to gly...@googlegroups.com, dannc...@gmail.com
Those files are built using the autotools-based build system. I've attached
them for you.

On 16-02-03 05:13 AM, Dann Corbit wrote:
> Unfortunately, there appear to be two header files that are missing. I cannot
> find them in the main tree or in the forked repository:
>
> 1>------ Build started: Project: glyphy, Configuration: Release x64 ------
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5):
> warning MSB8028: The intermediate directory (x64\Release\) contains files
> shared from another project (glyphy-demo.vcxproj). This can lead to incorrect
> clean and rebuild behavior.
> 1> glyphy-shaders.cc
> *1>..\src\glyphy-shaders.cc(32): fatal error C1083: Cannot open include file:
> 'glyphy-common-glsl.h': No such file or directory*
> 2>------ Build started: Project: glyphy-demo, Configuration: Release x64 ------
> 2>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(392,5):
> warning MSB8028: The intermediate directory (x64\Release\) contains files
> shared from another project (glyphy.vcxproj). This can lead to incorrect
> clean and rebuild behavior.
> 2> demo-shader.cc
> *2>..\demo\demo-shader.cc(25): fatal error C1083: Cannot open include file:
> 'demo-atlas-glsl.h': No such file or directory*
> 2> demo-view.cc
> 2>..\demo\demo-view.cc(126): warning C4305: '=': truncation from 'double' to
> 'float'
> 2>..\demo\demo-view.cc(190): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(191): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(199): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(200): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(559): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(570): warning C4244: '=': conversion from 'double' to
> 'float', possible loss of data
> 2>..\demo\demo-view.cc(635): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> 2>..\demo\demo-view.cc(639): warning C4244: 'argument': conversion from
> 'double' to 'float', possible loss of data
> ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
>
>
glyphy-common-glsl.h
glyphy-sdf-glsl.h
demo-atlas-glsl.h
demo-fshader-glsl.h
demo-vshader-glsl.h

Dann Corbit

unread,
Feb 4, 2016, 3:17:25 PM2/4/16
to behdad....@gmail.com, gly...@googlegroups.com

Awesome, I have it working on Windows 64 bit now.  I was able to spin the block of text around, just like in your video.  It is completely clear to me that this is the correct way to process text in OpenGL and that the formation of texture blocks for characters is not the right way.

 

I really have to say something about how helpful you have been.

 

It is a little unusual for really intelligent people to be ultra-helpful (though that is an ideal combination).

By watching your video and explanations, it is clear to me that you are very smart.

And you are also incredibly helpful.  It is a rare combination (like professor William Kahan of Berkeley as another example) to find someone with both admirable qualities.

 

If everyone was as helpful as you are, the world would be a better place.

Thanks again.

 

From: Dann Corbit [mailto:dannc...@gmail.com]
Sent: Thursday, February 4, 2016 10:03 AM
To: Dann Corbit <DCo...@connx.com>
Subject: Fwd: Can glyphy be made to run on Windows (for instance using Mingw?)

Dann Corbit

unread,
Feb 4, 2016, 3:41:02 PM2/4/16
to GLyphy, behdad....@gmail.com, DCo...@connx.com
Here is a link to a working package for Windows 64 bit, if other people want to experiment:
https://www.dropbox.com/s/drfi9hcv9xqb3bp/windows-glyphy-package.7z?dl=0

In order to make it work on your system, you will need to make the following changes:

1.  Change PKGDATADIR to match your system.  On mine, I set it like this in two places:
#define PKGDATADIR "F:\\project\\dcorbit\\glyphy-master\\src"

2.  The library paths for linking freeglut and glew will need to be corrected for your system

It could be made a lot simpler and more automatic, if someone wants to bother with that.  I guess that MSYS2 could be used to automate for the Mingw environment it just like on Posix systems.  I made a Microsoft Visual Studio version instead.
Reply all
Reply to author
Forward
0 new messages