weimingtom / angel-engine

Automatically exported from code.google.com/p/angel-engine
0 stars 0 forks source link

GLFW requires libxxf86vm-dev #88

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pull angel2D on fresh Ubuntu 12.04 LTS
2. Run nix-prereqs.sh
3. Attempt to build

It seems GLFW pulls in most of the needed packages, but not all of them.
To fix this, it would be sufficient to add a pull for libxxf86vm-dev during 
nix-prereqs, though this should really be done by GLFW.

Here is the exact error: The Xf86VidMode library and headers were not found

I like the new script, just found this very minor problem.

Original issue reported on code.google.com by LoveOver...@gmail.com on 25 Jan 2014 at 7:07

GoogleCodeExporter commented 8 years ago
So, having researched into this, it appears that for a fresh install with 
absolutely no special drivers (nvidia/ati/intel/etc), Unity will not pull in 
this library, despite apparently pulling in every other portion of xorg-dev 
required.

Angel2D already pulls in libglu1-mesa-dev, and I think pulling xorg-dev in its 
entirety is a bit over the top when only this package is needed on Ubuntu 12.04 
LTS. I suggest adding libxxf86vm-dev to the main apt-get pull for Ubuntu.

If the SWIG pull is added, as per 
https://code.google.com/p/angel-engine/issues/detail?id=84, a pull for 
libxxf86vm-dev could be added directly after the SWIG pulls, allowing for the 
smallest possible patch for this issue.

Otherwise, a full pull of xorg-dev will be required, which consumes 8 gigabytes 
of bandwidth and 3 gigabytes of space on a default Ubuntu 12.04 LTS install. 
While this is arguably less brittle, I think the possible implications are much 
larger than merely installing the single missing component.

Original comment by shieldho...@gmail.com on 26 Jan 2014 at 6:17

GoogleCodeExporter commented 8 years ago
It seems there are multiple base versions of 12.04 LTS (which seems to go 
against the whole point of LTS, but not really my concern). In particular, one 
of the things that changes across the course of those base versions is the xorg 
libraries. 

While libxxf86vm-dev does the job for *most* cases, it seems like the only way 
to make sure that it works across *all* cases of 12.04 is to do a full install 
of xorg-dev. In my tests that only adds between 10-100MB of disk space and less 
than 100MB of download, which doesn't seem all that bad a tradeoff for 
guaranteed functionality. 

xorg-dev has been added to the prereqs script in the mainline, so I think we 
should be able to call this done. 

Original comment by lieseg...@gmail.com on 7 Feb 2014 at 10:53