Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevIL: add new recipe #25720

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

n-morales
Copy link
Contributor

@n-morales n-morales commented Oct 25, 2024

Summary

Changes to recipe: devil/1.8.0

Motivation

DevIL (Developer's Image Library) is an open source image loading library https://github.com/DentonW/DevIL

Details

Adds the devil library version 1.8.0


@CLAassistant
Copy link

CLAassistant commented Oct 25, 2024

CLA assistant check
All committers have signed the CLA.

@n-morales
Copy link
Contributor Author

Do I still need to include a v1 tester?

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@AbrilRBS AbrilRBS self-assigned this Oct 28, 2024
@conan-center-bot

This comment has been minimized.

@AbrilRBS
Copy link
Member

Hi @n-morales thanks a lot for taking the time to add this recipe, we appreciate it. I've submited some changes to your branch, feel free to take a look. They resolve the compilation issues we were seeing on static builds, and add lcms support, as the upstream cmakelists is looking for it and we would have to explicitly disable it otherwise.

I've removed the LIB set from the generate function, which afaik had no effect and Conan was already handling correctly on its own. Let me know if you see anything else, happy to help :)

@conan-center-bot

This comment has been minimized.

- "https://github.com/DentonW/DevIL/archive/refs/tags/v1.8.0.tar.gz"
sha256: "52129f247b26fcb5554643c9e6bbee75c4b9717735fdbf3c6ebff08cee38ad37"
patches:
"1.8.0":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any extra insight as to where these patches come from? Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

patches/1.8.0-jp2_fix.patch is similar to other fixes I found while searching for this issue including:
https://github.com/DentonW/DevIL/pull/102/files
https://gitlab.archlinux.org/archlinux/packaging/packages/devil/-/blob/main/jasper.patch?ref_type=heads

The jpeg fix and the remove register I came up with, but it looks like someone else did the same (for register fix) in https://github.com/DentonW/DevIL/pull/109/files

@conan-center-bot

This comment has been minimized.

@n-morales
Copy link
Contributor Author

Hi @n-morales thanks a lot for taking the time to add this recipe, we appreciate it. I've submited some changes to your branch, feel free to take a look. They resolve the compilation issues we were seeing on static builds, and add lcms support, as the upstream cmakelists is looking for it and we would have to explicitly disable it otherwise.

I've removed the LIB set from the generate function, which afaik had no effect and Conan was already handling correctly on its own. Let me know if you see anything else, happy to help :)

Thanks for adjusting it! I don't have a mac os machine to test on so I was relying on the conan ci. It looks like there are some windows issues; I do have access to a windows machine but likely won't have the time to patch until the weekend.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Warning

Conan Center will stop receiving updates for Conan 1.x packages soon - please see announcement.

Failure in build 13 (97e3008137d9bb4cd0fc1fa0b69fba9da69ace99):

  • devil/1.8.0:
    CI failed to create some packages (All logs)

    Logs for packageID 7f1034e4d2a893003727cdfb35ecd77fa13472b7:
    [settings]
    arch=armv8
    build_type=Debug
    compiler=apple-clang
    compiler.libcxx=libc++
    compiler.version=13.0
    os=Macos
    [options]
    devil:shared=True
    
    [...]
      "_jbg_strerror", referenced from:
          _JBIGDecode in libtiff.a(tif_jbig.c.o)
      "_libdeflate_alloc_compressor", referenced from:
          _ZIPEncode in libtiff.a(tif_zip.c.o)
      "_libdeflate_alloc_decompressor", referenced from:
          _ZIPDecode in libtiff.a(tif_zip.c.o)
      "_libdeflate_free_compressor", referenced from:
          _ZIPVSetField in libtiff.a(tif_zip.c.o)
          _ZIPCleanup in libtiff.a(tif_zip.c.o)
      "_libdeflate_free_decompressor", referenced from:
          _ZIPCleanup in libtiff.a(tif_zip.c.o)
      "_libdeflate_zlib_compress", referenced from:
          _ZIPEncode in libtiff.a(tif_zip.c.o)
      "_libdeflate_zlib_compress_bound", referenced from:
          _ZIPEncode in libtiff.a(tif_zip.c.o)
      "_libdeflate_zlib_decompress", referenced from:
          _ZIPDecode in libtiff.a(tif_zip.c.o)
      "_lzma_code", referenced from:
          _LZMADecode in libtiff.a(tif_lzma.c.o)
          _LZMAPostEncode in libtiff.a(tif_lzma.c.o)
          _LZMAEncode in libtiff.a(tif_lzma.c.o)
      "_lzma_end", referenced from:
          _LZMASetupDecode in libtiff.a(tif_lzma.c.o)
          _LZMASetupEncode in libtiff.a(tif_lzma.c.o)
          _LZMACleanup in libtiff.a(tif_lzma.c.o)
      "_lzma_lzma_preset", referenced from:
          _TIFFInitLZMA in libtiff.a(tif_lzma.c.o)
          _LZMAVSetField in libtiff.a(tif_lzma.c.o)
      "_lzma_memusage", referenced from:
          _LZMADecode in libtiff.a(tif_lzma.c.o)
      "_lzma_stream_decoder", referenced from:
          _LZMAPreDecode in libtiff.a(tif_lzma.c.o)
          _LZMADecode in libtiff.a(tif_lzma.c.o)
      "_lzma_stream_encoder", referenced from:
          _LZMAVSetField in libtiff.a(tif_lzma.c.o)
          _LZMAPreEncode in libtiff.a(tif_lzma.c.o)
    ld: symbol(s) not found for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [lib/x64/libIL.dylib] Error 1
    make[1]: *** [src-IL/CMakeFiles/IL.dir/all] Error 2
    make: *** [all] Error 2
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    devil/1.8.0: ERROR: Package '7f1034e4d2a893003727cdfb35ecd77fa13472b7' build failed
    devil/1.8.0: WARN: Build folder /Users/jenkins/workspace/prod-v1/bsr/116561/accee/.conan/data/devil/1.8.0/_/_/build/7f1034e4d2a893003727cdfb35ecd77fa13472b7/build/Debug
    ERROR: devil/1.8.0: Error in build() method, line 99
    	cmake.build()
    	ConanException: Error 2 while executing cmake --build "/Users/jenkins/workspace/prod-v1/bsr/116561/accee/.conan/data/devil/1.8.0/_/_/build/7f1034e4d2a893003727cdfb35ecd77fa13472b7/build/Debug" '--' '-j8'
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 13 (97e3008137d9bb4cd0fc1fa0b69fba9da69ace99):

  • devil/1.8.0:
    All packages built successfully! (All logs)

@AbrilRBS
Copy link
Member

AbrilRBS commented Nov 4, 2024

I've launched the CI with the new piepeline, let's see how it it goes (results now go into the checks tab of the PR!)

@jcar87
Copy link
Contributor

jcar87 commented Nov 4, 2024

I've launched the CI with the new piepeline, let's see how it it goes (results now go into the checks tab of the PR!)

mmm this hook warning would need to be addressed:

install_name dir of these shared libs is not @rpath: libIL.dylib, libILU.dylib, libILUT.dylib

(unless they're runtime-loaded plugins or something)

@n-morales
Copy link
Contributor Author

I've launched the CI with the new piepeline, let's see how it it goes (results now go into the checks tab of the PR!)

mmm this hook warning would need to be addressed:

install_name dir of these shared libs is not @rpath: libIL.dylib, libILU.dylib, libILUT.dylib

(unless they're runtime-loaded plugins or something)

I'm not really familiar with mac os development -- how should these be addressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants