Summary: | media-libs/oyranos-0.9.6-r1 - .../work/oyranos-0.9.6/src/examples/image_display/Oy_Fl_Shader_Box.h:71:5: error: ‘glGetObjectParameterivARB’ was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | creative.centre.of.excellence, ka.nick, pageexec, sarnex, ted |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=686532 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 media-libs:oyranos-0.9.6-r1:20181126-031851.log temp.tbz2 /etc/portage/patches/media-libs/oyranos-0.9.6-r1/fix-image_display-build.patch |
Description
Toralf Förster
2018-11-26 17:27:56 UTC
Created attachment 556328 [details]
emerge-info.txt
Created attachment 556330 [details]
emerge-history.txt
Created attachment 556332 [details]
environment
Created attachment 556334 [details]
etc.portage.tbz2
Created attachment 556336 [details]
logs.tbz2
Created attachment 556338 [details]
media-libs:oyranos-0.9.6-r1:20181126-031851.log
Created attachment 556340 [details]
temp.tbz2
oyranos-0.9.6.ebuild worked ok, but has been deleted, there is only broken oyranos-0.9.6-r1.ebuild in portage Created attachment 558608 [details, diff]
/etc/portage/patches/media-libs/oyranos-0.9.6-r1/fix-image_display-build.patch
This replaces the use of GLee.h with GL/glew.h in image_display.cpp
and Oy_Fl_Shader_Box.h.
Unfortunately cmake defeats me. How can we tell cmake to link
image_display.cpp with libGLEW.so?
However, running
ebuild oyranos-0.9.6-r1.ebuild unpack prepare configure
then hacking
oyranos-0.9.6_build/src/examples/CMakeFiles/oyranos-image-display.dir/link.txt
to add /usr/lib64/libGLEW.so just before -lGL on the link line, then running
ebuild oyranos-0.9.6-r1.ebuild merge
oyranos-0.9.6-r1 seems to successfully merge.
The resulting oyranos-image-display program seems to run, with a few warnings.
Do you want to proxy maintain this package? https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers You can link target with some lib but not single object target_link_libraries( target_name ${GLEW_LIBRARIES}) target_include_directiories( target_name ${GLEW_INCLUDE_DIRS} ) and first praprae to find lib you want to link with by using find_package(GLEW) for ex: find_package(GLEW) if( GLEW_FOUND ) add_excecutable(target_name source1.cpp soure2.cpp) target_link_libraries( target_name ${GLEW_LIBRARIES}) target_include_directiories( target_name ${GLEW_INCLUDE_DIRS} ) endif() And second this ebuild is broken as having -examples in USE flags dosn't disable building examplaes It looks like by default examples are ON option(ENABLE_EXAMPLES "Build example applications" ON) and this ebuild line doesnt generate OFF with -examples -DENABLE_EXAMPLES=$(usex examples) cmake -C /home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6_build/gentoo_toolchain.cmake /home/portage/portage/media-libs/oyranos-0.9.6-r1/work/oyranos-0.9.6 it can be fixed changing function name in ebuild multilib_src_configure() to src_configure() (In reply to Pacho Ramos from comment #10) > Do you want to proxy maintain this package? > https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers No. Sorry. I try to help, but the responsibility would be more than I could cope with. i am running into the same issue, and i got it to compile with this little patch: --- oyranos-0.9.6/CMakeLists.txt.orig 2019-01-23 02:07:40.435532775 +0800 +++ oyranos-0.9.6/CMakeLists.txt 2019-01-23 02:08:54.967934455 +0800 @@ -54,8 +54,8 @@ # if our static code lands inside a shared lib, we need -fPIC IF(UNIX) IF(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) - SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") - SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -DGL_GLEXT_PROTOTYPES") + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -DGL_GLEXT_PROTOTYPES") # coverage testing IF(USE_GCOV AND CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage") (taken from https://aur.archlinux.org/packages/electricsheep/) i have no idea if this is a proper fix or just a hack, though. ron widler's patch is so much simpler and doesn't suffer the linking problem that mine did. I confirm that it works here too. If somone needs to build _examples_, and for -examples in USE we still need something like this (which worked for me) - multilib_src_configure() + src_configure() There is oyranos-0.9.6.ebuild in calculate overlay that still builds. However, it still doesn't work properly in my setup, trying to solve this. And -9999.ebuild is essentially broken. *** Bug 686532 has been marked as a duplicate of this bug. *** The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26db062e7b8df1334a8deb33edb799cad97cff2b commit 26db062e7b8df1334a8deb33edb799cad97cff2b Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-12-26 23:42:26 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-12-26 23:51:01 +0000 media-libs/oyranos: Fix mesa build error, drop multilib remnant, use xdg Closes: https://bugs.gentoo.org/671996 Closes: https://bugs.gentoo.org/672004 Closes: https://bugs.gentoo.org/672006 Closes: https://bugs.gentoo.org/680324 Closes: https://bugs.gentoo.org/689686 Package-Manager: Portage-2.3.83, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../oyranos/files/oyranos-0.9.6-mesa-18.3.1.patch | 24 ++++++++++++++++++++++ .../oyranos/files/oyranos-0.9.6-underlinking.patch | 16 +++++++++++++++ media-libs/oyranos/oyranos-0.9.6-r1.ebuild | 12 +++++++---- media-libs/oyranos/oyranos-9999.ebuild | 4 ++-- 4 files changed, 50 insertions(+), 6 deletions(-) |