michaelforney / swc

a library for making a simple Wayland compositor
MIT License
616 stars 52 forks source link

Path in makefile not /usr/local #26

Closed ii8 closed 9 years ago

ii8 commented 9 years ago

Not entirely sure if I'm missing something here, but should the default path prefix in the Makefile not be

PREFIX          ?= /usr/local

Instead of:

PREFIX          ?= /usr
pickfire commented 8 years ago

I seem to have some error similar to this, when I do make -j4:

Makefile:69: *** Could not find package wld.  Stop.
ii8 commented 8 years ago

That is probably unrelated, do you have wld installed? https://github.com/michaelforney/wld

pickfire commented 8 years ago

Yeah, I did have wld installed by:

make -j4
sudo make install -j4

And I only modify the DRM_BACKEND part in config.mk.

ii8 commented 8 years ago

Can your pkg-config find wld? If not, run

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

and try again.

[Edit] If the makefile runs a shell and somehow looses this variable when it checks for the package you can try putting the export in your .bashrc or .profile

pickfire commented 8 years ago

Thanks a lot. It works after I ran:

set -U PKG_CONFIG_PATH '/usr/local/lib/pkgconfig`
make -j4