Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2015
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 KB | None | 0 0
  1. $ cmake -DCMAKE_BUILD_TYPE=RELEASE
  2.  
  3. -- The C compiler identification is GNU 4.9.2
  4. -- The CXX compiler identification is GNU 4.9.2
  5. -- Check for working C compiler: /usr/bin/cc
  6. -- Check for working C compiler: /usr/bin/cc -- works
  7. -- Detecting C compiler ABI info
  8. -- Detecting C compiler ABI info - done
  9. -- Detecting C compile features
  10. -- Detecting C compile features - done
  11. -- Check for working CXX compiler: /usr/bin/c++
  12. -- Check for working CXX compiler: /usr/bin/c++ -- works
  13. -- Detecting CXX compiler ABI info
  14. -- Detecting CXX compiler ABI info - done
  15. -- Detecting CXX compile features
  16. -- Detecting CXX compile features - done
  17. -- Checking to see if CXX compiler accepts flag -flto
  18. -- Checking to see if CXX compiler accepts flag -flto - yes
  19. -- HTS_VERSION=2.1.1
  20. -- Configuring done
  21. -- Generating done
  22. -- Build files have been written to: /tmp/pvr.hts-master
  23.  
  24. $ make
  25.  
  26. Scanning dependencies of target hts
  27. [ 7%] Building C object lib/libhts/CMakeFiles/hts.dir/htsbuf.c.o
  28. [ 15%] Building C object lib/libhts/CMakeFiles/hts.dir/htsmsg_binary.c.o
  29. [ 23%] Building C object lib/libhts/CMakeFiles/hts.dir/htsmsg.c.o
  30. [ 30%] Building C object lib/libhts/CMakeFiles/hts.dir/htsstr.c.o
  31. [ 38%] Building C object lib/libhts/CMakeFiles/hts.dir/sha1.c.o
  32. [ 46%] Building C object lib/libhts/CMakeFiles/hts.dir/net_posix.c.o
  33. Linking C static library libhts.a
  34. [ 46%] Built target hts
  35. Scanning dependencies of target pvr.hts
  36. [ 53%] Building CXX object CMakeFiles/pvr.hts.dir/src/AsyncState.cpp.o
  37. [ 61%] Building CXX object CMakeFiles/pvr.hts.dir/src/CircBuffer.cpp.o
  38. [ 69%] Building CXX object CMakeFiles/pvr.hts.dir/src/client.cpp.o
  39. [ 76%] Building CXX object CMakeFiles/pvr.hts.dir/src/HTSPConnection.cpp.o
  40. [ 84%] Building CXX object CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o
  41. In file included from /tmp/pvr.hts-master/src/HTSPDemuxer.cpp:35:0:
  42. /tmp/pvr.hts-master/src/xbmc_codec_descriptor.hpp:23:27: fatal error: libXBMC_codec.h: No such file or directory
  43. #include "libXBMC_codec.h"
  44. ^
  45. compilation terminated.
  46. CMakeFiles/pvr.hts.dir/build.make:146: recipe for target 'CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o' failed
  47. make[2]: *** [CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o] Error 1
  48. CMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/pvr.hts.dir/all' failed
  49. make[1]: *** [CMakeFiles/pvr.hts.dir/all] Error 2
  50. Makefile:137: recipe for target 'all' failed
  51. make: *** [all] Error 2
  52.  
  53. ------------------------------------------------------------------------------
  54. Let's try setting CMAKE_CXX_FLAGS (on clean source tree):
  55.  
  56. $ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-I/usr/share/kodi/addons/library.xbmc.codec -I/usr/include/kodi"
  57.  
  58. -- The C compiler identification is GNU 4.9.2
  59. -- The CXX compiler identification is GNU 4.9.2
  60. -- Check for working C compiler: /usr/bin/cc
  61. -- Check for working C compiler: /usr/bin/cc -- works
  62. -- Detecting C compiler ABI info
  63. -- Detecting C compiler ABI info - done
  64. -- Detecting C compile features
  65. -- Detecting C compile features - done
  66. -- Check for working CXX compiler: /usr/bin/c++
  67. -- Check for working CXX compiler: /usr/bin/c++ -- works
  68. -- Detecting CXX compiler ABI info
  69. -- Detecting CXX compiler ABI info - done
  70. -- Detecting CXX compile features
  71. -- Detecting CXX compile features - done
  72. -- Checking to see if CXX compiler accepts flag -flto
  73. -- Checking to see if CXX compiler accepts flag -flto - yes
  74. -- HTS_VERSION=2.1.1
  75. -- Configuring done
  76. -- Generating done
  77. -- Build files have been written to: /tmp/pvr.hts-master
  78.  
  79. $ make
  80.  
  81. Scanning dependencies of target hts
  82. [ 7%] Building C object lib/libhts/CMakeFiles/hts.dir/htsbuf.c.o
  83. [ 15%] Building C object lib/libhts/CMakeFiles/hts.dir/htsmsg_binary.c.o
  84. [ 23%] Building C object lib/libhts/CMakeFiles/hts.dir/htsmsg.c.o
  85. [ 30%] Building C object lib/libhts/CMakeFiles/hts.dir/htsstr.c.o
  86. [ 38%] Building C object lib/libhts/CMakeFiles/hts.dir/sha1.c.o
  87. [ 46%] Building C object lib/libhts/CMakeFiles/hts.dir/net_posix.c.o
  88. Linking C static library libhts.a
  89. [ 46%] Built target hts
  90. Scanning dependencies of target pvr.hts
  91. [ 53%] Building CXX object CMakeFiles/pvr.hts.dir/src/AsyncState.cpp.o
  92. [ 61%] Building CXX object CMakeFiles/pvr.hts.dir/src/CircBuffer.cpp.o
  93. [ 69%] Building CXX object CMakeFiles/pvr.hts.dir/src/client.cpp.o
  94. [ 76%] Building CXX object CMakeFiles/pvr.hts.dir/src/HTSPConnection.cpp.o
  95. [ 84%] Building CXX object CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o
  96. In file included from /tmp/pvr.hts-master/src/xbmc_codec_descriptor.hpp:23:0,
  97. from /tmp/pvr.hts-master/src/HTSPDemuxer.cpp:35:
  98. /usr/share/kodi/addons/library.xbmc.codec/libXBMC_codec.h:37:7: error: redefinition of ‘class CHelper_libXBMC_codec’
  99. class CHelper_libXBMC_codec
  100. ^
  101. In file included from /tmp/pvr.hts-master/src/client.h:28:0,
  102. from /tmp/pvr.hts-master/src/Tvheadend.h:24,
  103. from /tmp/pvr.hts-master/src/HTSPDemuxer.cpp:22:
  104. /usr/include/kodi/libXBMC_codec.h:37:7: error: previous definition of ‘class CHelper_libXBMC_codec’
  105. class CHelper_libXBMC_codec
  106. ^
  107. CMakeFiles/pvr.hts.dir/build.make:146: recipe for target 'CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o' failed
  108. make[2]: *** [CMakeFiles/pvr.hts.dir/src/HTSPDemuxer.cpp.o] Error 1
  109. CMakeFiles/Makefile2:91: recipe for target 'CMakeFiles/pvr.hts.dir/all' failed
  110. make[1]: *** [CMakeFiles/pvr.hts.dir/all] Error 2
  111. Makefile:137: recipe for target 'all' failed
  112. make: *** [all] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement