make CxImage Kodi 16 fail
#1
Lightbulb 
Hi; I try compile Kodi 16 for Fedora 24 (alpha) exist a way to exclude CxImage; is it necessary ..? because CxImage build failed. Fedora migrated to gcc6; in Fedora 23 compile fine...


make -C lib/cximage-6.0
make[1]: Entering directory '/builddir/build/BUILD/xbmc/lib/cximage-6.0'
make -C CxImage ARCH=x86_64-linux
make[2]: Entering directory '/builddir/build/BUILD/xbmc/lib/cximage-6.0/CxImage'
CPP lib/cximage-6.0/CxImage/DllInterface.o
CPP lib/cximage-6.0/CxImage/ximadsp.o
In file included from /usr/include/c++/6.0.0/deque:60:0,
from /usr/include/c++/6.0.0/queue:60,
from ximadsp.cpp:3480:
/usr/include/c++/6.0.0/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/6.0.0/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
In file included from xfile.h:51:0,
from ximage.h:62,
from ximadsp.cpp:6:
/usr/include/c++/6.0.0/bits/stl_algobase.h:195:5: error: expected unqualified-id before 'const'
min(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6.0.0/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:195:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:195:5: error: expected initializer before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:219:5: error: expected unqualified-id before 'const'
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/6.0.0/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:219:5: error: expected ')' before 'const'
/usr/include/c++/6.0.0/bits/stl_algobase.h:219:5: error: expected initializer before 'const'
In file included from /usr/include/c++/6.0.0/deque:60:0,
from /usr/include/c++/6.0.0/queue:60,
from ximadsp.cpp:3480:
/usr/include/c++/6.0.0/bits/stl_algobase.h:243:5: error: 'std::min' declared as an 'inline' variable
min(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6.0.0/bits/stl_algobase.h:246:7: error: expected primary-expression before 'if'
if (__comp(__b, __a))
^~
/usr/include/c++/6.0.0/bits/stl_algobase.h:246:7: error: expected '}' before 'if'
/usr/include/c++/6.0.0/bits/stl_algobase.h:246:7: error: expected ';' before 'if'
/usr/include/c++/6.0.0/bits/stl_algobase.h:248:7: error: expected unqualified-id before 'return'
return __a;
^~~~~~
/usr/include/c++/6.0.0/bits/stl_algobase.h:265:5: error: 'max' declared as an 'inline' variable
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^~~
/usr/include/c++/6.0.0/bits/stl_algobase.h:268:7: error: expected primary-expression before 'if'
if (__comp(__a, __b))
^~
/usr/include/c++/6.0.0/bits/stl_algobase.h:268:7: error: expected '}' before 'if'
/usr/include/c++/6.0.0/bits/stl_algobase.h:268:7: error: expected ';' before 'if'
/usr/include/c++/6.0.0/bits/stl_algobase.h:270:7: error: expected unqualified-id before 'return'
return __a;
^~~~~~
/usr/include/c++/6.0.0/bits/stl_algobase.h:271:5: error: expected declaration before '}' token
}
^
../../../Makefile.include:97: recipe for target 'ximadsp.o' failed
make[2]: *** [ximadsp.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/xbmc/lib/cximage-6.0/CxImage'
Makefile:30: recipe for target 'CxImage/cximage.a' failed
make[1]: *** [CxImage/cximage.a] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/xbmc/lib/cximage-6.0'
Makefile:362: recipe for target 'imagelib' failed
make: *** [imagelib] Error 2
make: *** Waiting for unfinished jobs....
CPP xbmc/guilib/GUIControlGroup.o
CPP xbmc/guilib/GUIControlGroupList.o
CPP xbmc/guilib/GUIControlProfiler.o
CPP xbmc/guilib/GUIDialog.o
CPP xbmc/guilib/GUIEditControl.o
CPP xbmc/guilib/GUIFadeLabelControl.o
CPP xbmc/guilib/GUIFixedListContainer.o
CPP xbmc/guilib/GUIFont.o
CPP xbmc/guilib/GUIFontCache.o
CPP xbmc/guilib/GUIFontManager.o
CPP xbmc/guilib/GUIFontTTF.o
CPP xbmc/guilib/GUIImage.o
CPP xbmc/guilib/GUIIncludes.o
CPP xbmc/guilib/GUIInfoTypes.o
CPP xbmc/guilib/GUIKeyboardFactory.o
CPP xbmc/guilib/GUILabel.o
CPP xbmc/guilib/GUILabelControl.o
CPP xbmc/guilib/GUIListContainer.o
CPP xbmc/guilib/GUIListGroup.o
CPP xbmc/guilib/GUIListItem.o
CPP xbmc/guilib/GUIListItemLayout.o
CPP xbmc/guilib/GUIListLabel.o
CPP xbmc/guilib/GUIMessage.o
CPP xbmc/guilib/GUIMoverControl.o
CPP xbmc/guilib/GUIMultiImage.o
CPP xbmc/guilib/GUIMultiSelectText.o
CPP xbmc/guilib/GUIPanelContainer.o
CPP xbmc/guilib/GUIProgressControl.o
CPP xbmc/guilib/GUIRadioButtonControl.o
CPP xbmc/guilib/GUIResizeControl.o
CPP xbmc/guilib/GUIRenderingControl.o
CPP xbmc/guilib/GUIRSSControl.o
CPP xbmc/guilib/GUIScrollBarControl.o
CPP xbmc/guilib/GUISelectButtonControl.o
CPP xbmc/guilib/GUISettingsSliderControl.o
CPP xbmc/guilib/GUISliderControl.o
CPP xbmc/guilib/GUISpinControl.o
CPP xbmc/guilib/GUISpinControlEx.o
CPP xbmc/guilib/GUIStaticItem.o
CPP xbmc/guilib/GUITextBox.o
CPP xbmc/guilib/GUITextLayout.o
CPP xbmc/guilib/GUITexture.o
CPP xbmc/guilib/GUIToggleButtonControl.o
CPP xbmc/guilib/GUIVideoControl.o
CPP xbmc/guilib/GUIVisualisationControl.o
CPP xbmc/guilib/GUIWindow.o
CPP xbmc/guilib/GUIWindowManager.o
CPP xbmc/guilib/GUIWrappingListContainer.o
CPP xbmc/guilib/imagefactory.o
CPP xbmc/guilib/IWindowManagerCallback.o
CPP xbmc/guilib/JpegIO.o
CPP xbmc/guilib/LocalizeStrings.o
CPP xbmc/guilib/Shader.o
CPP xbmc/guilib/StereoscopicsManager.o
CPP xbmc/guilib/Texture.o
CPP xbmc/guilib/TextureBundleXPR.o
CPP xbmc/guilib/TextureBundleXBT.o
CPP xbmc/guilib/TextureBundle.o
CPP xbmc/guilib/TextureManager.o
CPP xbmc/guilib/VisibleEffect.o
CPP xbmc/guilib/XBTF.o
CPP xbmc/guilib/XBTFReader.o
CPP xbmc/guilib/Gif.o
CPP xbmc/guilib/TextureGL.o
CPP xbmc/guilib/GUIFontTTFGL.o
CPP xbmc/guilib/GUITextureGL.o
CPP xbmc/guilib/MatrixGLES.o
AR xbmc/guilib/guilib.a

**********************

Complete log (1.25 mb): https://www.dropbox.com/s/njq3cgu692ppu1...d.log?dl=0
Reply
#2
Use kodi 17 master. There cximage is removed.

Other than that: kodi 16 depends on cximage, as that is the major lib used for images ...

Edit: As you run latest and greatest unstable gcc compiler, you should consider to fix the compile error - as you will run into even more breakage ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#3
Thanks for answerSmile. The problem is if I change to Kodi 17, I need rebuilt all, example update 'platform', libcec with "p8"; or it possible use the version without p8? because also I need kodi-pvr addons. I can include the log file; but tomorrow; I need sleep:/

I deleted cximage and compiled now, but I need test the result, a simple
sed -i '/\<cximage\>/d' Makefile.in
Reply
#4
That won't work ... how about posting the compile error. Fixing it should be no biggy ...
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Reply
#5
Sad 
(2016-03-11, 10:42)fritsch Wrote: That won't work ... how about posting the compile error. Fixing it should be no biggy ...

Tomorrow; I need compile again, and reproduce the issue. 3:31 o'clock
Reply
#6
Photo 
@fritsch the complete log (very large):

1 attempt (fail make CxImage)
https://www.dropbox.com/s/njq3cgu692ppu1...d.log?dl=0

2 attempt
I applyed a patch deleted "CxImage" ..xbmc/lib/cximage-6.0/Makefile.in ; but it a bad idea the shadows and divisors lines in theme does't exist; the cursor doesn't show.

Image
Reply
#7
seems gcc6 changed some macros.
Code:
In file included from /usr/include/c++/6.0.0/deque:60:0,
                 from /usr/include/c++/6.0.0/queue:60,
                 from ximadsp.cpp:3480:
/usr/include/c++/6.0.0/bits/stl_algobase.h:243:56: error: macro "min" passed 3 arguments, but takes just 2
     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
                                                        ^
/usr/include/c++/6.0.0/bits/stl_algobase.h:265:56: error: macro "max" passed 3 arguments, but takes just 2
     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
                                                        ^
In file included from xfile.h:51:0,
                 from ximage.h:62,
                 from ximadsp.cpp:6:
You'll need to look at your included files and fix cximage
Or use v17
Reply
#8
Hi, I solved the problem; I made my own gcc 5.3.0; I exported paths and compiled fine Wink but now I have other issue with all pvr-addons; I will open other question here. https://copr.fedorainfracloud.org/coprs/davidva/gcc53/
Reply
#9
Please try this PR: https://github.com/xbmc/xbmc/pull/9703
Kodi 19.5-Matrix/OpenGLES/gbm (+ PR19558 ) - Linux kernel 5.14.21 x86_64 - ffmpeg 4.4-git (+ patch )
Mesa 22.3.7 with iris driver - VA-API version 1.16.0 + Intel iHD driver version 22.6.3 - libdrm 2.4.116 - libcec 6.0.2
Intel i9-11900T - ASRock Z590 Extreme - BIOS version 2.20
Reply
#10
Thanks for the patch @bkuhls ! now compiles with gcc6 without problem!
Reply

Logout Mark Read Team Forum Stats Members Help
make CxImage Kodi 16 fail1