Kodi 17 compiling error
#1
Hello,

I'm new here,
When I try to compile under openSuse kodi I get an Error 2 at 42%

I had follow the readme:


Create and change to build directory
$ mkdir kodi-build-3 && cd kodi-build-3
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local
$ cmake --build . -- VERBOSE=1

Tip: By adding -j<number> to the make command, you describe how many
concurrent jobs will be used, it will speed up the build process.
So for quadcore the command is:

$ cmake --build . -- VERBOSE=1 -j4


I had also try this guid:

http://kodi.wiki/view/HOW-TO:Compile_Kod...SUSE_Linux

But this does not work.

Do someone have an Idea and could me help?

Best Thanks,
Dan
Reply
#2
you have to post the error before anyone can help you do anything. build without threads to make the log readable.
Reply
#3
And how I can build without threads?
And where will be the log stored ?
Reply
#4
do not pass -jx. there won't be a log stored, you have to make it yourself
cmake --build . &> something.log
Reply
#5
[ 43%] Linking CXX static library pvr.a
cd /home/sabrina/Downloads/compile/xbmc/kodi-build-3/build/pvr && /usr/bin/cmake -P CMakeFiles/pvr.dir/cmake_clean_target.cmake
cd /home/sabrina/Downloads/compile/xbmc/kodi-build-3/build/pvr && /usr/bin/cmake -E cmake_link_script CMakeFiles/pvr.dir/link.txt --verbose=1
/usr/bin/ccache /usr/bin/ar qc pvr.a CMakeFiles/pvr.dir/PVRActionListener.cpp.o CMakeFiles/pvr.dir/PVRGUIInfo.cpp.o CMakeFiles/pvr.dir/PVRManager.cpp.o CMakeFiles/pvr.dir/PVRDatabase.cpp.o CMakeFiles/pvr.dir/PVRSettings.cpp.o CMakeFiles/pvr.dir/PVRContextMenus.cpp.o CMakeFiles/pvr.dir/PVRGUIActions.cpp.o CMakeFiles/pvr.dir/PVRItem.cpp.o CMakeFiles/pvr.dir/PVRChannelNumberInputHandler.cpp.o CMakeFiles/pvr.dir/PVRJobs.cpp.o
/usr/bin/ccache /usr/bin/ranlib pvr.a
gmake[2]: Leaving directory '/home/sabrina/Downloads/compile/xbmc/kodi-build-3'
[ 43%] Built target pvr
[ 43%] Linking CXX static library pvr_dialogs.a
cd /home/sabrina/Downloads/compile/xbmc/kodi-build-3/build/pvr/dialogs && /usr/bin/cmake -P CMakeFiles/pvr_dialogs.dir/cmake_clean_target.cmake
cd /home/sabrina/Downloads/compile/xbmc/kodi-build-3/build/pvr/dialogs && /usr/bin/cmake -E cmake_link_script CMakeFiles/pvr_dialogs.dir/link.txt --verbose=1
/usr/bin/ccache /usr/bin/ar qc pvr_dialogs.a CMakeFiles/pvr_dialogs.dir/GUIDialogPVRChannelManager.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRChannelsOSD.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRGroupManager.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRGuideInfo.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRGuideOSD.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRGuideSearch.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRRadioRDSInfo.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRRecordingInfo.cpp.o CMakeFiles/pvr_dialogs.dir/GUIDialogPVRTimerSettings.cpp.o
/usr/bin/ccache /usr/bin/ranlib pvr_dialogs.a
gmake[2]: Leaving directory '/home/sabrina/Downloads/compile/xbmc/kodi-build-3'
[ 43%] Built target pvr_dialogs
gmake[1]: Leaving directory '/home/sabrina/Downloads/compile/xbmc/kodi-build-3'
Makefile:138: recipe for target 'all' failed
gmake: *** [all] Error 2
linux-d9r1:/home/sabrina/Downloads/compile/xbmc/kodi-build-3 # ^C
linux-d9r1:/home/sabrina/Downloads/compile/xbmc/kodi-build-3 #


-------------------

Here I have uploaded the log:

http://pastebin.com/mKTpitBS

I'm using opensue leap x64 42.2
Reply
#6
outdated libshairplay - call cmake with -DENABLE_AIRTUNES=0 to disable.
Reply
#7
very thanks to you, i had never found this alone, and it works!

Smile

greetings!
Reply
#8
I had upload a new error...

http://pastebin.com/G5AHMmjx


I had compile the wrong version... I don't want to use the alpha...
So I had bruch the krypto build..

By compiling I get this error..
And a second question I have.. after building how I can integrate the add on's?

after this I can build the add ons with:

make binary-addons

right?
Will the add ons be integrated after make install?

Best Regards,


===
I had solved the building..

But the question about the add-ons..

Do I need to build again kodi after compiling the add ons?
Reply
#9
no. you build add-ons just like any other software on a linux.

build and install kodi. this installs the addon development headers.

then for each addon:
- obtain the source
- obtain the dependencies
- cmake to generate buildsystem
- make to build it
- (sudo) make install to install it.

if that doesn't make sense, you are starting at the wrong end. learn the basics first.

the stuff in tools/depends is for platforms using embedded libraries, apple platforms, droid, rbpi, windows. it's not for normal linux platforms.
Reply
#10
Okay, it make sense,

I had build the addons but how I can integrate this after building?

where the path to the addon folder from Kodi on opensuse?

I had found more folders... eg. /usr/local/lib64
/usr/lib64 etc.

It would be great if you could help me.

So I understand that the addons are not be integrated to the kodi build?
is it possible to create a build with these addons ?
Reply
#11
the whole point is to NOT integrate add-ons in the build. the add-ons should be built as separate packages, that's the linux way of doing things. consider the ubuntu package manager entries;

Quote:kodi (arch independent files)
kodi-bin (arch dependent binaries)
kodi-pvr-mythtv
kodi-pvr-wmc
kodi-pvr-vuplus
kodi-audiodecoder-timidity
...
see, modularity. user can choose to install each add-on separately.

/usr and /usr/local are two examples of a 'prefix'.
- /usr is the prefix used by system packages.
- /usr/local is the prefix used (by default) for locally built software.

a prefix dir hold, among others, lib(64), share and bin folders.

you want to make sure you install kodi and the add-ons to the same prefix.
you specify this using -DCMAKE_INSTALL_PREFIX=[path] in the cmake call.
Reply
#12
Okay, I had try out
make binary-addons PREFIX=/usr/local -j4

without result...
could you give me an example to build the add-ons to the right path?
Reply
#13
Code:
git clone https://github.com/kodi-pvr/pvr.hts
cd pvr.hts
mkdir build
cd build
cmake ..- DCMAKE_INSTALL_PREFIX=/usr/local
make -j4
sudo make install
Reply

Logout Mark Read Team Forum Stats Members Help
Kodi 17 compiling error0