Compiling mesa from git
Hi,
I just wanted to warn the Slack team that since the commit of the new GLSL compiler from Intel to mesa, there was a hard dependency introduced on the talloc library, which is right now provided in Slackware within the Samba package. However, I could only compile a recent mesa git pull by creating a "/usr/lib64/pkgconfig/talloc.pc" file, following the advice of nanonyme, on Phoronix. The file has been copied from Fedora : Code: Code:
prefix=/usr Since there's a fair chance that this is to stay, I thought that maybe the Slack team, and some others, could be interested in this trick. Best regards, |
Thanks for the info.
Irecently tried to do the same. But didn't figure out that this lib is already included with slackware. So i downloaded talloc 2.0.1, and installed it as a separate package. PS didn't have time yet to check. But isn't simple symlinking libtalloc.so-2.0.1 to libtalloc.so-2.0 should resolve this problem? |
On my system, there is no libtalloc.so-2.0 ;)
Code:
root@marcin:~# ls -la /usr/lib64/*talloc* |
Quote:
Code:
vladimir@darkstar:~$ ls -l /usr/lib64/*talloc* |
Almost surely some CFLAGS-fu and LDFLAGS-fu (and there might even be TALLOC_CFLAGS and TALLOC_LDFLAGS (or similar) variables that one can use to override pkg-config) would fix this without having a libtalloc.pc file, but this is handy to know nonetheless. Assuming samba will use an external libtalloc if it's present, and the ABI is stable, and so on, then probably the best option will be to split libtalloc out of the samba package when the time comes. We'll see. :-) Thanks for the heads-up.
|
I think, that best way is just add "-ltalloc" to LDFLAGS (-L flag is already set with --libdir switch of configure script). This is most secure way IMHO, if You don't want to add libtalloc.pc file ;) I don't know, if changing CFLAGS has something to do with this problem ;)
Please, let us know, it this solved the problem - I don't want to utilize my CPU for useles for me compilation processes ;) |
Ok, I've downloaded current mesa git repository to checkout, and this should be added to ./configure command:
Code:
TALLOC_CFLAGS="-O2 -fPIC" TALLOC_LIBS="-ltalloc" Enjoy! |
Very nice; thanks!
|
All times are GMT -5. The time now is 10:38 AM. |