2015-11-14, 11:13
Our addon build system already supports creating addon zips:
cmake -DPACKAGE_ZIP=ON -DCMAKE_INSTALL_PREFIX=/tmp
make addon-package
cmake -DPACKAGE_ZIP=ON -DCMAKE_INSTALL_PREFIX=/tmp
make addon-package
(2015-11-14, 11:13)wsnipex Wrote: Our addon build system already supports creating addon zips:
cmake -DPACKAGE_ZIP=ON -DCMAKE_INSTALL_PREFIX=/tmp
make addon-package
(2015-11-20, 00:31)zag Wrote: Doesnt work on OpenELEC unfortunatleyNo idea yet :/
I saw something on Github recently about SOIL, is there any other way to get this working on OpenELEC?
(2015-11-20, 08:35)wisler Wrote: @tadlyUh, stb_image sound really interesting.
In my company we use this: https://github.com/nothings/stb, maybe you can look deeper into it. With that we can embed the image file parsers directly into your binary addon.
(2015-11-20, 10:44)TheNinja Wrote: Thanks, I got a working bin file now.
(I had to change the 6th line though, I tried it before there were the other comments on your code: cmake -DCMAKE_PREFIX_PATH=/usr/lib/kodi -DOVERRIDE_PATHS=1 ../)
Two feature requests
- Images are stretched to fit, which doesn't look good when using normal photos that don't have the right aspect ratio. Keep the ratio and show black stripes would be good.
- For a image slideshow, an interval < 1 minute would be good.
(2015-11-20, 10:37)Tadly Wrote: And all that's needed is the header file? For real? Sound way to awesome to be true
(2015-11-20, 11:20)Tadly Wrote: I never expected that people want a update interval < 1 min.
(2015-11-20, 13:33)wisler Wrote: Yeah the project is really nice. But I don't know how fast the parsers are.
No hurry, if you find the time it's great
(2015-11-20, 13:33)wisler Wrote: Just an idea you could provide a user interface (sorry currently I can't look if it is already there) for configuration and it is possible to define update intervals 0,1 ... mm sec.
project(PictureIt)
cmake_minimum_required(VERSION 2.6)
find_package(OpenGL)
if(OPENGL_FOUND)
list(APPEND INCLUDES ${OpenGL_INCLUDE_DIRS})
list(APPEND DEPLIBS ${OPENGL_LIBRARIES})
add_definitions(${OpenGL_DEFINITIONS})
else(OPENGL_FOUND)
message(FATAL_ERROR "No rendering API found. Bailing")
endif(OPENGL_FOUND)
include_directories(${INCLUDES})
set(PICTUREIT_SOURCES pictureit.cpp
background.cpp
effects.cpp
spectrum.cpp)
if(NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif(NOT WIN32)
add_library(PictureIt STATIC ${PICTUREIT_SOURCES})
set_property(TARGET PictureIt PROPERTY CXX_STANDARD 11)
project(visualization.pictureit)
cmake_minimum_required(VERSION 2.6)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
find_package(kodi REQUIRED)
find_package(OpenGL)
if(OPENGL_FOUND)
list(APPEND INCLUDES ${OpenGL_INCLUDE_DIR})
list(APPEND DEPLIBS ${OPENGL_LIBRARIES})
add_definitions(${OpenGL_DEFINITIONS})
else()
message(FATAL_ERROR "No rendering API found. Bailing")
endif()
include_directories(${INCLUDES}
${KODI_INCLUDE_DIR}
${PROJECT_SOURCE_DIR}/lib/pictureit
${CMAKE_INCLUDE_PATH})
add_subdirectory(lib/pictureit)
set(VIS_SOURCES src/pictureit_addon.cpp)
list(APPEND DEPLIBS PictureIt)
if(APPLE)
set(DEPLIBS ${DEPLIBS} "-framework CoreVideo")
endif(APPLE)
build_addon(visualization.pictureit PICTUREIT DEPLIBS)
include(CPack)
(2015-11-23, 16:31)ironic_monkey Wrote: i understand this can be a bit confusing.
if you look at what the build_addon() macro does, the second argument is a prefix to certain variables, the most important being the sources it should build. it will expect to find these sources in the PICTUREIT_SOURCES variable,
while you build a 'VIS_SOURCES' variable.
/usr/bin/ld: lib/pictureit/libPictureIt.a(pictureit.cpp.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
lib/pictureit/libPictureIt.a: error adding symbols: Bad value