SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Greetings
After successfully installing all the mentioned dependencies at Slackbuilds.org I get a fatal error running "sh ./kodi.Slackbuild" as follows:
I've checked and "png.h" does exist but it was installed as "/usr/include/libpng16/png.h". I have no idea why the kodi.Slackbuild can't find it or if also having installed "libpng-compat32" has affected anything.
FWIW 64bit "libpng-1.6.23-x86_64-1" was installed as part of Recommended Full Install. All Alien Bob's instructions were followed to create a Multilib system as well as to use the 32bit 14.2 same version libpng package for "convertpkg-compat32" resulting in
Code:
bash-4.3# ls /var/log/packages/ | grep libpng
libpng-1.6.23-x86_64-1
libpng-compat32-1.6.23-x86_64-1compat32
Any ideas on how to satisfy Kodi or get it to deal with this issue? Maybe I'm just tired but for now, I'm stopped.
Thank you, ponce, but the format in your [code] statement confuses me, and more importantly confuses bash. I didn't understand the line break nor the syntax as it posted. Consulting "man pkg-config" does not clear up how the "-I" option can be located after "libpng" nor lacking a space between it and "/usr/include/libpng16". It may simply be that I'm being particularly dense but I'd really like to solve this as I think you're on to an important piece of data here.
This is used to tell the compiler where to look for libpng's header files. If this outputs something other than -I/usr/include/libpng16, then it could mean something is screwed up with your system.
the command I suggested you to invoke from the same root login shell from which you are trying to build kodi is
Code:
pkg-config --cflags libpng
the other line is the output that you should have
Code:
-I/usr/include/libpng16
this tells to the software that uses libpng, between other informations, that its header files can be found in the path /usr/include/libpng16 and that for gcc to find them, you have to pass "-I/usr/include/libpng16" to the CFLAGS.
the pkg-config command just parses the corresponding file in /usr/lib64/pkgconfig (or whatever you got in your PKG_CONFIG_PATH)
just trying to have some more informations: can you please run the kodi.SlackBuild like this and then, when it has finished, post the resulting log file somewhere (like pastebin)
Code:
su -
cd /where/the/kodi.SlacBuild/is
./kodi.SlackBuild > /tmp/build.kodi.log 2>&1
please post there also the output of these commands after the SlackBuild has ended running
Thank you again, ponce for offering assistance. I tried pastebin but the free account has a max paste size of 500kB and the log is 800kB. So I'm going to attempt to use Dropbox and I say "attempt" because of their recent rule changes where they no longer offer a public url. I'm hoping using tinyurl will overcome that issue as I did put it in my "Shared" folder. At best, without your guidance it would have taken me days to find and utilize such structured troubleshooting. I'm humbled and grateful.
well, if it's like that I'm sorry but I sincerely cannot think of any reason why it doesn't find it: looking at the config.log it seems it's looking in the right place...
what I can see from your log is that your PATH variable seems to be non-standard, check the differences (ignore the jdk and qt5 paths)
mine
Code:
which: no JsonSchemaBuilder in (/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib64/java/bin:/usr/lib64/java/jre/bin:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin:/usr/share/texmf/bin:/tmp/sbopkg.lqxDDY/xbmc-17.3-Krypton/tools/depends/native/JsonSchemaBuilder/bin)
yours
Code:
which: no JsonSchemaBuilder in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/tmp/SBo/xbmc-17.3-Krypton/tools/depends/native/JsonSchemaBuilder/bin)
as you can see it seems to miss elements (qt4 and tetex ones, for example) and also /sbin comes before /usr/sbin, like /bin with /usr/bin.
from this I guess that your could not be a full install and/or you have manually changed the root PATH variable and/or you have not become root with "su -" (note the "-").
I have no idea how this can influence kodi's build, guaranteed to work only on a clean slackware full installation: I suggest you to try building it on such platform.
Thanks again, ponce. I will find out if this is the problem but more importantly fix PATH variables. Since v6 Slackware I ALWAYS do full recommended install (just makes good sense to me) but I rarely add the dash to "su" and almost never use "sudo" so using simple "su" could possibly be the cause. I will find out tonight.
My deep gratitude, ponce, though apparently my path envar was not a problem for kodi, it was your reminding me that Path statement items do have an order and for good reason. I fixed that order in Path but in considering how the system searches in an order to find things, I remembered that I'd wrestled with nasty png issues with Wine recently and for many weeks. So I decided to see if I'd left any "spaghetti code" or "orphans" lying around.
In all honesty after so many attempts to fix libpng with Wine, compat32, and expected versions I can't say whether a wrongly installed attempt did it on it's own or whether I tried to solve a "can't find" issue with a symlink but however they got there I found two symlinks to now empty directory versions of png.h in /usr/include/. My fix was dirty too since I didn't know for certain what had installed them so I just remade them to point to the proper /usr/include/libpng16/ files and Kodi installed.
That's the good news after all the bad I'd created but it wasn't over. I had installed all of the optional dependencies, foolishly and blindly including libcrystalhd for which there is no Slackbuild and upon the first launch, Kodi failed to find libcrystalhd and "whereis" revealed it was in /usr/lib which tells me that for some reason "./configure&&make&&make install" didn't make it x86_64. Since it wasn't installed as a package I didn't know how to properly remove it so I just added a line to kodi.Slackbuild to "--disable-libcrystalhd \ " rebuilt it (after uninstalling the broken attempt, of course) and it ran perfectly.
So it was a bit messy but Kodi is in and works very well so far. Nobody likes to hang dirty laundry but I figured I should possibly help others who might make similar dumbass mistakes and certainly you deserve to know what went wrong after all your efforts.
Thanks to you, I'm marking this happily and very successfully "Solved"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.