aktau / hhpc

A small utility to hide the mouse pointer with X.org (X11)
76 stars 15 forks source link

How to compile for Ubuntu 12.04 #1

Closed ghost closed 10 years ago

ghost commented 11 years ago

This looks like an useful utility. How do I compile for ubuntu 12.04. I am not familiar with C and make. Could you provide (relatively) detailed instructions?

(I tried installing xorg-dev and running make. Errors about unsupported flag -std=c11 and not able to find XOpenDisplay and like)

Thanks

aktau commented 11 years ago

Hey @ghost,

I have no idea why I don't receive any mail for issues for my own project, but there you have it, I hadn't received any notification about this. At any rate I clarified the process just a little.

I think for -std=c11 to work you would need gcc 4.7 or higher, which one does ubuntu 12.04 have? Maybe 4.6? Could you get a 4.7 somewhere? Alternatively, I'm sure that if you remove the -std=c11 from the makefile it works just fine :)

Btw, as for the XOpenDisplay issue, I updated the README which mentions the apt-get line that will solve that.

EDIT: It might be best if you change -std=c11 with -std=c99

aktau commented 10 years ago

I've done this for the standard makefile now. Should compile with many more compilers (at least GCC and clang) and also 32-bit systems if required.