v17 Cannot compile on RPi2 due to libcrossguid errors - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Raspberry Pi (https://forum.kodi.tv/forumdisplay.php?fid=166) +---- Thread: v17 Cannot compile on RPi2 due to libcrossguid errors (/showthread.php?tid=320398) |
Cannot compile on RPi2 due to libcrossguid errors - graysky - 2017-08-23 Using Arch ARM, I am unable to build 17.4 due to the following error near the very end of the build (shown below). I have been building kodi on the RPi2 like this since version 17 without problems... I am even able to build 17.4rc1 without issue. It is just 17.4 (final) that causes this problem. Note that I rebuilt the system's libcrossguid with the -fPIC switch before I starting the kodi build, but it still errors out as shown. Am I misinterpreting the error? Is the error telling me I need to add -fPIC to my CFLAGS/CXXFLAGS when building kodi not libcrossguid? Thanks for any insights. Code: _CPU=cortex-a7 RE: Cannot compile on RPi2 due to libcrossguid errors - graysky - 2017-08-23 Ah, I see now the error means that the kodi build itself requires the -fPIC switch (successfully built it without modifying the system's libcrossguid package... what changed between 17.4rc1 and 17.4 (final) that requires -fPIC and is it expected? RE: Cannot compile on RPi2 due to libcrossguid errors - rascas - 2017-08-23 Not sure what that error is about, but for Raspbian, I do not compile/make a separate package for libcrossguid anymore, I use this cmake flag to build it, it works for 17.4 final: -DENABLE_INTERNAL_CROSSGUID=ON See if that works for you. RE: Cannot compile on RPi2 due to libcrossguid errors - graysky - 2017-08-24 @rascas - I get the same error strangely with your switch and without the libcross package installed: Code: ... My complete build stanza: Code: _CPU=cortex-a7 RE: Cannot compile on RPi2 due to libcrossguid errors - rascas - 2017-08-24 Which gcc version are you using ? If 7.X it might be the problem, but I am not an expert on that so I am afraid I can help you much more. RE: Cannot compile on RPi2 due to libcrossguid errors - graysky - 2017-08-24 Yes, Arch ARM uses a pretty packages including gcc (currently 7.1.1 I believe). RE: Cannot compile on RPi2 due to libcrossguid errors - KlotX - 2017-08-24 Delete the build dir before rebuilding. It seems to have found a previously compiled version of that lib, so it won't be compiling it again. RE: Cannot compile on RPi2 due to libcrossguid errors - graysky - 2017-08-24 (2017-08-24, 08:53)KlotX Wrote: Delete the build dir before rebuilding. It seems to have found a previously compiled version of that lib, so it won't be compiling it again. I did but it is still there suggesting it's getting build by the package. The solution for building with the internal version is to add -fPIC to the CFLAGS and CXXFLAGS before building: Code: CFLAGS+=" -fPIC" Now I can remove the dependency of the external libcrossguid altogether. Thank you for the suggestion. |