Cross Compile binary PVR addon on linux for Windows, Mac and Android
#1
Hello,

I am trying to compile my modified iptv simple pvr addon to windows, Mac and Android TV for the past few days.

I can compile the addon for linux without any problems (I am on Arch).

I had zero experience with cmake when I started, but I now learned what it is for and that I need toolchain file for targetting different platforms.

What I have done is
1.) http://forum.kodi.tv/showthread.php?tid=...pid1934940 according to this, created toolchain file - but I only got for x86_64-linux-gnu.

2.) From http://www.vtk.org/Wiki/CMake_Cross_Compiling found out that I needed to get toolchain files etc for Windows in order to compile for windows. So I installed mingw and MXE and built with everything (there were a couple of things that did not compile - vtk and wt, can this be a problem?).

3.) Created this script:

As you can see, I have simpleiptv stored in /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/ and am doing build into build directory. My kodi is cloned to /home/juraj/kodi/ and built in /usr/local.

Code:
#!/bin/sh
rm -rf /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build
mkdir /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build
cd /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build

if [ "$1" == "local" ]; then
    rm -rf /home/juraj/kodi/addons/pvr.iptvsimple/
    cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/juraj/kodiAddonsDevelopment -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/juraj/kodi/addons -DPACKAGE_ZIP=1 /home/juraj/kodi/cmake/addons;
    make;
elif [ "$1" == "windows" ]; then
    rm -rf /home/juraj/kodi_pvr_build/windows/
    mkdir /home/juraj/kodi_pvr_build/windows/
    i686-w64-mingw32.static-cmake -DARCH_DEFINES="-DTARGET_WINDOWS" -DCMAKE_USER_MAKE_RULES_OVERRIDE="/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake" -DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX="/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake" -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/juraj/kodiAddonsDevelopment -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/juraj/kodi_pvr_build/linux/ -DPACKAGE_ZIP=1 /home/juraj/kodi/cmake/addons;
    make;
elif [ "$1" == "linux" ]; then
    rm -rf /home/juraj/kodi_pvr_build/linux/
    mkdir /home/juraj/kodi_pvr_build/linux/
    cmake -DCMAKE_TOOLCHAIN_FILE=/opt/xbmc-depends/x86_64-linux-gnu/share/Toolchain.cmake -DADDONS_TO_BUILD=pvr.iptvsimple -DADDON_SRC_PREFIX=/home/juraj/kodiAddonsDevelopment -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/home/juraj/kodi_pvr_build/linux/ -DPACKAGE_ZIP=1 /home/juraj/kodi/cmake/addons;
    make;
else
    echo "Incorrect target platform selected.";
fi

Parts with linux and local work correctly (essentialy the same thing) but one for windows does not. First I had an error that said that there was a file missing from p8-platform/src/windows/ so I copied files from https://github.com/Pulse-Eight/platform/...rc/windows and put it in there. Now it compiles successfully, but hangs on kodi-platform.

This is a full log:

Code:
== Using MXE wrapper: /opt/mxe/usr/bin/i686-w64-mingw32.static-cmake
== Using MXE toolchain: /opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
== Using MXE runresult: /opt/mxe/usr/share/cmake/modules/TryRunResults.cmake
loading initial cache file /opt/mxe/usr/share/cmake/modules/TryRunResults.cmake
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Addon source tarball caching is enabled
-- ZIP packaging enabled (destination: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/zips)
-- Toolchain specified
-- -DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux-DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>-DPACKAGE_CONFIG_PATH=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/lib/pkgconfig-DADDON_DEPENDS_PATH=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOVERRIDE_PATHS=-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCORE_SYSTEM_NAME=windows-DBUILD_SHARED_LIBS=1-DCMAKE_C_FLAGS=-DCMAKE_CXX_FLAGS=-DPACKAGE_ZIP=ON-DPACKAGE_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/zips-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- Building following addons: pvr.iptvsimple
-- Overriding addon source directory prefix: /home/juraj/kodiAddonsDevelopment
-- Processing windows specific tool: patch
-- patch utility found at /usr/bin/patch
--
-- ---- Preparing general dependencies ----
-- Processing /home/juraj/kodi/cmake/addons/depends/windows/cmake/msys/msys.txt
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- Processing /home/juraj/kodi/cmake/addons/depends/windows/cmake/mingw/mingw.txt
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- Processing /home/juraj/kodi/cmake/addons/depends/common/kodi-platform/kodi-platform.txt
-- kodi-platform url: https://github.com/xbmc/kodi-platform
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- kodi-platform depends: tinyxml;p8-platform
-- Processing /home/juraj/kodi/cmake/addons/depends/common/p8-platform/p8-platform.txt
-- p8-platform url: https://github.com/Pulse-Eight/platform.git
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- Processing /home/juraj/kodi/cmake/addons/depends/common/tinyxml/tinyxml.txt
-- tinyxml url: http://mirrors.kodi.tv/build-deps/sources/tinyxml-2.6.2_2.tar.gz
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- Processing windows
--
-- ---- Configuring addon /home/juraj/kodi/cmake/addons/addons/pvr.iptvsimple/pvr.iptvsimple.txt ----
-- Processing /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/depends/common/zlib/zlib.txt
-- zlib url: http://mirrors.xbmc.org/build-deps/sources/zlib-1.2.7.tar.gz
toolchain specified
-DCMAKE_PREFIX_PATH=/opt/mxe/usr/i686-w64-mingw32.static/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/home/juraj/kodi_pvr_build/linux-DOUTPUT_DIR=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCMAKE_BUILD_TYPE=Release-DCMAKE_USER_MAKE_RULES_OVERRIDE=/home/juraj/kodi/cmake/scripts/windows/CFlagOverrides.cmake-DCMAKE_USER_MAKE_RULES_OVERRIDE_CXX=/home/juraj/kodi/cmake/scripts/windows/CXXFlagOverrides.cmake-DCMAKE_INSTALL_PREFIX=/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends-DCORE_SYSTEM_NAME=windows-DENABLE_STATIC=1-DBUILD_SHARED_LIBS=0-DCMAKE_TOOLCHAIN_FILE=/opt/mxe/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake
-- pvr.iptvsimple DEPENDENCIES: zlib
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build
Scanning dependencies of target zlib
[  1%] Creating directories for 'zlib'
[  3%] Performing download step (download, verify and extract) for 'zlib'
-- downloading...
     src='http://mirrors.xbmc.org/build-deps/sources/zlib-1.2.7.tar.gz'
     dst='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/zlib-1.2.7.tar.gz'
     timeout='none'
-- [download 0% complete]
-- [download 1% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 31% complete]
-- [download 34% complete]
-- [download 36% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 43% complete]
-- [download 45% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 57% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 64% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 75% complete]
-- [download 78% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 90% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 96% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/zlib-1.2.7.tar.gz'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/zlib-1.2.7.tar.gz'
     dst='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/zlib/src/zlib'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[  5%] Performing patch step for 'zlib'
[  7%] No update step for 'zlib'
[  8%] Performing configure step for 'zlib'
-- The C compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - done
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for unistd.h
-- Looking for unistd.h - found
-- Renaming
--     /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/zlib/src/zlib/zconf.h
-- to 'zconf.h.included' because this file is included with zlib
-- but CMake generates it automatically in the build directory.
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_USER_MAKE_RULES_OVERRIDE_CXX
    CORE_SYSTEM_NAME
    ENABLE_STATIC
    OUTPUT_DIR


-- Build files have been written to: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/zlib/src/zlib-build
[ 10%] Performing build step for 'zlib'
[  4%] Generating zlib1rc.obj
Scanning dependencies of target zlib
[  8%] Building C object CMakeFiles/zlib.dir/adler32.obj
[ 12%] Building C object CMakeFiles/zlib.dir/compress.obj
[ 16%] Building C object CMakeFiles/zlib.dir/crc32.obj
[ 20%] Building C object CMakeFiles/zlib.dir/deflate.obj
[ 24%] Building C object CMakeFiles/zlib.dir/gzclose.obj
[ 28%] Building C object CMakeFiles/zlib.dir/gzlib.obj
[ 32%] Building C object CMakeFiles/zlib.dir/gzread.obj
[ 36%] Building C object CMakeFiles/zlib.dir/gzwrite.obj
[ 40%] Building C object CMakeFiles/zlib.dir/inflate.obj
[ 44%] Building C object CMakeFiles/zlib.dir/infback.obj
[ 48%] Building C object CMakeFiles/zlib.dir/inftrees.obj
[ 52%] Building C object CMakeFiles/zlib.dir/inffast.obj
[ 56%] Building C object CMakeFiles/zlib.dir/trees.obj
[ 60%] Building C object CMakeFiles/zlib.dir/uncompr.obj
[ 64%] Building C object CMakeFiles/zlib.dir/zutil.obj
[ 68%] Linking C static library libzlib.a
[ 68%] Built target zlib
Scanning dependencies of target example64
[ 72%] Building C object CMakeFiles/example64.dir/test/example.obj
[ 76%] Linking C executable example64.exe
[ 76%] Built target example64
Scanning dependencies of target minigzip
[ 80%] Building C object CMakeFiles/minigzip.dir/test/minigzip.obj
[ 84%] Linking C executable minigzip.exe
[ 84%] Built target minigzip
Scanning dependencies of target example
[ 88%] Building C object CMakeFiles/example.dir/test/example.obj
[ 92%] Linking C executable example.exe
[ 92%] Built target example
Scanning dependencies of target minigzip64
[ 96%] Building C object CMakeFiles/minigzip64.dir/test/minigzip.obj
[100%] Linking C executable minigzip64.exe
[100%] Built target minigzip64
[ 12%] Performing install step for 'zlib'
[ 68%] Built target zlib
[ 76%] Built target example64
[ 84%] Built target minigzip
[ 92%] Built target example
[100%] Built target minigzip64
Install the project...
-- Install configuration: "Release"
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/lib/libzlib.a
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/zconf.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/zlib.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/share/man/man3/zlib.3
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/share/pkgconfig/zlib.pc
[ 14%] Completed 'zlib'
[ 14%] Built target zlib
Scanning dependencies of target p8-platform
[ 15%] Creating directories for 'p8-platform'
[ 17%] Performing download step (git clone) for 'p8-platform'
Cloning into 'p8-platform'...
Note: checking out '38343e0acd6a636ac46139aa666aee4a8d1f13db'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 38343e0... bump to 2.0.1
[ 19%] No patch step for 'p8-platform'
[ 21%] Performing update step for 'p8-platform'
[ 22%] Performing configure step for 'p8-platform'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - found
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC
    OUTPUT_DIR


-- Build files have been written to: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/p8-platform/src/p8-platform-build
[ 24%] Performing build step for 'p8-platform'
Scanning dependencies of target p8-platform
[ 25%] Building CXX object CMakeFiles/p8-platform.dir/src/util/StringUtils.cpp.obj
[ 50%] Building CXX object CMakeFiles/p8-platform.dir/src/windows/dlfcn-win32.cpp.obj
[ 75%] Building CXX object CMakeFiles/p8-platform.dir/src/windows/os-threads.cpp.obj
In file included from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/p8-platform/src/p8-platform/src/windows/../windows/os-types.h:61:0,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/p8-platform/src/p8-platform/src/windows/../os.h:35,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/p8-platform/src/p8-platform/src/windows/os-threads.cpp:33:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
  ^
[100%] Linking CXX static library libp8-platform.a
[100%] Built target p8-platform
[ 26%] Performing install step for 'p8-platform'
[100%] Built target p8-platform
Install the project...
-- Install configuration: "Release"
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/lib/libp8-platform.a
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/os.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/windows/dlfcn-win32.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/windows/os-socket.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/windows/os-threads.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/windows/os-types.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/sockets/cdevsocket.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/sockets/socket.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/sockets/tcp.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/threads/atomics.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/threads/mutex.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/threads/threads.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/atomic.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/buffer.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/StringUtils.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/StdString.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/timeutils.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/p8-platform/util/util.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/lib/p8-platform/p8-platform-config.cmake
[ 28%] Completed 'p8-platform'
[ 28%] Built target p8-platform
Scanning dependencies of target tinyxml
[ 29%] Creating directories for 'tinyxml'
[ 31%] Performing download step (download, verify and extract) for 'tinyxml'
-- downloading...
     src='http://mirrors.kodi.tv/build-deps/sources/tinyxml-2.6.2_2.tar.gz'
     dst='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/tinyxml-2.6.2_2.tar.gz'
     timeout='none'
-- [download 1% complete]
-- [download 3% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 15% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 23% complete]
-- [download 27% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 33% complete]
-- [download 37% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 55% complete]
-- [download 63% complete]
-- [download 65% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 77% complete]
-- [download 80% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 89% complete]
-- [download 91% complete]
-- [download 93% complete]
-- [download 97% complete]
-- [download 99% complete]
-- [download 100% complete]
-- downloading... done
-- verifying file...
     file='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/tinyxml-2.6.2_2.tar.gz'
-- verifying file... warning: did not verify file - no URL_HASH specified?
-- extracting...
     src='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/download/tinyxml-2.6.2_2.tar.gz'
     dst='/home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/tinyxml/src/tinyxml'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] Performing patch step for 'tinyxml'
[ 35%] No update step for 'tinyxml'
[ 36%] Performing configure step for 'tinyxml'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CORE_SYSTEM_NAME
    ENABLE_STATIC
    OUTPUT_DIR


-- Build files have been written to: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/tinyxml/src/tinyxml-build
[ 38%] Performing build step for 'tinyxml'
Scanning dependencies of target tinyxml
[ 20%] Building CXX object CMakeFiles/tinyxml.dir/src/tinystr.cpp.obj
[ 40%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxml.cpp.obj
[ 60%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxmlerror.cpp.obj
[ 80%] Building CXX object CMakeFiles/tinyxml.dir/src/tinyxmlparser.cpp.obj
[100%] Linking CXX static library libtinyxml.a
[100%] Built target tinyxml
[ 40%] Performing install step for 'tinyxml'
[100%] Built target tinyxml
Install the project...
-- Install configuration: "Release"
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/tinystr.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/include/tinyxml.h
-- Installing: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/depends/lib/libtinyxml.a
[ 42%] Completed 'tinyxml'
[ 42%] Built target tinyxml
Scanning dependencies of target kodi-platform
[ 43%] Creating directories for 'kodi-platform'
[ 45%] Performing download step (git clone) for 'kodi-platform'
Cloning into 'kodi-platform'...
Note: checking out 'c8188d82678fec6b784597db69a68e74ff4986b5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at c8188d8... Merge pull request #25 from hudokkow/find_package_Kodi
[ 47%] No patch step for 'kodi-platform'
[ 49%] Performing update step for 'kodi-platform'
[ 50%] Performing configure step for 'kodi-platform'
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc
-- Check for working C compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++
-- Check for working CXX compiler: /opt/mxe/usr/bin/i686-w64-mingw32.static-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Checking to see if CXX compiler accepts flag -flto
-- Checking to see if CXX compiler accepts flag -flto - yes
-- Found TinyXML: /opt/mxe/usr/i686-w64-mingw32.static/include  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for __atomic_fetch_add_4 in atomic
-- Looking for __atomic_fetch_add_4 in atomic - found
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_ADD_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH
-- Performing Test HAS_BUILTIN_SYNC_SUB_AND_FETCH - Success
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAS_BUILTIN_SYNC_VAL_COMPARE_AND_SWAP - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_STATIC
    OUTPUT_DIR


-- Build files have been written to: /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform-build
[ 52%] Performing build step for 'kodi-platform'
Scanning dependencies of target kodiplatform
[ 50%] Building CXX object CMakeFiles/kodiplatform.dir/src/util/XMLUtils.cpp.obj
In file included from /usr/include/p8-platform/util/../windows/os-types.h:61:0,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
#warning Please include winsock2.h before windows.h
  ^
In file included from /usr/include/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 from /usr/include/p8-platform/util/../windows/os-types.h:66,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/sys/select.h:80:0: warning: "FD_SETSIZE" redefined
#define FD_SETSIZE  __FD_SETSIZE
^
In file included from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:56:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:61,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/psdk_inc/_fd_types.h:13:0: note: this is the location of the previous definition
#define FD_SETSIZE 64
^
In file included from /usr/include/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 from /usr/include/p8-platform/util/../windows/os-types.h:66,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/sys/select.h:92:0: warning: "FD_SET" redefined
#define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp)
^
In file included from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:56:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:61,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/psdk_inc/_fd_types.h:73:0: note: this is the location of the previous definition
#define FD_SET(fd,set)       \
^
In file included from /usr/include/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 from /usr/include/p8-platform/util/../windows/os-types.h:66,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/sys/select.h:93:0: warning: "FD_CLR" redefined
#define FD_CLR(fd, fdsetp) __FD_CLR (fd, fdsetp)
^
In file included from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:56:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:61,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/psdk_inc/_fd_types.h:38:0: note: this is the location of the previous definition
#define FD_CLR(fd,set)       \
^
In file included from /usr/include/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 from /usr/include/p8-platform/util/../windows/os-types.h:66,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/sys/select.h:94:0: warning: "FD_ISSET" redefined
#define FD_ISSET(fd, fdsetp) __FD_ISSET (fd, fdsetp)
^
In file included from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:56:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:61,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/psdk_inc/_fd_types.h:60:0: note: this is the location of the previous definition
#define FD_ISSET(fd,set) __WSAFDIsSet((SOCKET)(fd),(fd_set *)(set))
^
In file included from /usr/include/sys/types.h:219:0,
                 from /usr/include/stdlib.h:275,
                 from /usr/include/p8-platform/util/../windows/os-types.h:66,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/sys/select.h:95:0: warning: "FD_ZERO" redefined
#define FD_ZERO(fdsetp)  __FD_ZERO (fdsetp)
^
In file included from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winsock2.h:56:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:61,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/psdk_inc/_fd_types.h:56:0: note: this is the location of the previous definition
#define FD_ZERO(set)  (((fd_set *)(set))->fd_count = 0)
^
In file included from /usr/include/errno.h:35:0,
                 from /usr/include/p8-platform/util/../windows/os-types.h:67,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/bits/errno.h:54:0: warning: "errno" redefined
#   define errno (*__errno_location ())
^
In file included from /home/juraj/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0/include/stddef.h:1:0,
                 from /usr/include/string.h:32,
                 from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/guiddef.h:148,
                 from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/winnt.h:628,
                 from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/minwindef.h:163,
                 from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/windef.h:8,
                 from /home/juraj/mxe/usr/i686-w64-mingw32.static/include/windows.h:69,
                 from /usr/include/p8-platform/util/../windows/os-types.h:46,
                 from /usr/include/p8-platform/util/../os.h:35,
                 from /usr/include/p8-platform/util/StdString.h:2,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/home/juraj/mxe/usr/i686-w64-mingw32.static/include/stddef.h:19:0: note: this is the location of the previous definition
#define errno (*_errno())
^
In file included from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.h:24:0,
                 from /home/juraj/kodiAddonsDevelopment/pvr.iptvsimple/build/build/kodi-platform/src/kodi-platform/src/util/XMLUtils.cpp:22:
/usr/include/p8-platform/util/StdString.h:637:23: fatal error: TCHAR.H: No such file or directory
compilation terminated.
make[5]: *** [CMakeFiles/kodiplatform.dir/build.make:64: CMakeFiles/kodiplatform.dir/src/util/XMLUtils.cpp.obj] Error 1
make[4]: *** [CMakeFiles/Makefile2:100: CMakeFiles/kodiplatform.dir/all] Error 2
make[3]: *** [Makefile:128: all] Error 2
make[2]: *** [depends/CMakeFiles/kodi-platform.dir/build.make:111: build/kodi-platform/src/kodi-platform-stamp/kodi-platform-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:411: depends/CMakeFiles/kodi-platform.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

So basically, TCHAR.H can't be found and included. From google I learned that this is windows only library file. Is there some way how to solve this error?

Am I overthinking it and is there an easier way how to compile binary addons for windows or android at linux? There must be right?

Also is there a simple way how to directly create zip file?

I am really lost now, I have been searching for a solution for so long and I can feel that I am really close... Confused So if anyone could help me, I would be really glad.

Thanks a lot!
Reply
#2
you cannot cross-compile for windows or OSX from linux. You need a windows and OSX machine(VMs work)
Reply
#3
Thanks for the response! That will save me time trying to do something that is not possible.

Is there a way how I can generate ZIP file for this addon that could be installed on Android TV (or any android device?).

Currently when I compile on linux, put it into the zip and try to install on android it says error without specifying more.

So basically 2 questions left:
1.) How to create zip file automatically?
2.) How to create a zip file that could be installed on android?

Should I try and use the guide that is here? https://github.com/xbmc/xbmc/blob/master...ME.android Or it will also not work? Should I follow this guide but before compiling binary addons and getting the final apk modify the source files of simple iptv PVR?
Reply
#4
(2017-02-17, 15:57)max007 Wrote: Thanks for the response! That will save me time trying to do something that is not possible.

Is there a way how I can generate ZIP file for this addon that could be installed on Android TV (or any android device?).

Currently when I compile on linux, put it into the zip and try to install on android it says error without specifying more.

So basically 2 questions left:
1.) How to create zip file automatically?
2.) How to create a zip file that could be installed on android?

Should I try and use the guide that is here? https://github.com/xbmc/xbmc/blob/master...ME.android Or it will also not work? Should I follow this guide but before compiling binary addons and getting the final apk modify the source files of simple iptv PVR?
max007 did you manage? 

I have exactly the same problem. I managed to compile a modified pvr client for android but the zip file created has the wrong structure. I have to unzip the file, mv things around and repack to make it usable (https://forum.kodi.tv/showthread.php?tid=353412).

Perhaps my post is in the wrong section.

I am looking for a way to create directly the right zip as done for linux with cmake / make package-pvr.name.
Reply

Logout Mark Read Team Forum Stats Members Help
Cross Compile binary PVR addon on linux for Windows, Mac and Android0