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

Embree 3.12.0 recipe #354

Merged
merged 5 commits into from
Oct 23, 2020
Merged

Embree 3.12.0 recipe #354

merged 5 commits into from
Oct 23, 2020

Conversation

KaoCC
Copy link
Contributor

@KaoCC KaoCC commented Nov 18, 2019

Specify library name and version: embree/3.12.0

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

Note:
closes #343
tested on local machine with the following compiler: GCC 5.5.0 , Apple Clang 12.0.0

@CLAassistant
Copy link

CLAassistant commented Nov 18, 2019

CLA assistant check
All committers have signed the CLA.

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
@uilianries
Copy link
Member

Hi @KaoCC !

Thanks for your PR! Please, take a look on my comments/review.

@KaoCC
Copy link
Contributor Author

KaoCC commented Nov 19, 2019

thanks all, I will address these comments in the following commit

@conan-center-bot
Copy link
Collaborator

Sorry, the build is only launched for Early Access Program users. You can request access writing in this issue.

@KaoCC KaoCC requested a review from uilianries November 19, 2019 20:45
Copy link
Contributor Author

@KaoCC KaoCC left a comment

Choose a reason for hiding this comment

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

thank you very much ! I addressed them in the following commit.

@conan-center-bot
Copy link
Collaborator

All green! 😊

"backface_culling": False,
"ignore_invalid_rays": False,
"ray_masking": False,
"tbb:tbbmalloc": True,
Copy link
Member

Choose a reason for hiding this comment

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

As Embree requires this specific option and currently we don't have this package available, we will or remove this option, or provide such configuration as pre-built package.

Copy link
Contributor Author

@KaoCC KaoCC Nov 20, 2019

Choose a reason for hiding this comment

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

How would you suggest to do that ? Wouldn't that cause the Embree build to fail if that option is required but removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@uilianries Thanks for your comment, would you please provide any guidance of how this PR could proceed ? Is there any change could be made on my side ? 😃

Copy link
Member

Choose a reason for hiding this comment

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

It's a good question. We have similar situation for header-only recipes. We need to provide some option for these cases. @danimtb WDYT ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well I thought if the tbb package with that specific option is missing one can simply build it with --build missing setting. That's how I did on my dev machine.

Copy link
Member

Choose a reason for hiding this comment

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

@KaoCC does this package really need that option of tbb activated? Can you try removing "tbb:tbbmalloc": True, and see what happens? 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.

@danimtb ... strange. I just tested it on two distinct machines and it seems like it will also compiled without the flag. I recalled the flag was a requirement. Anyway I removed it and pushed the commit again.

@KaoCC KaoCC requested a review from uilianries November 21, 2019 13:38
@conan-center-bot
Copy link
Collaborator

Some configurations of 'embree/3.6.1' have failed:

@KaoCC
Copy link
Contributor Author

KaoCC commented Nov 25, 2019

Now it says : ERROR: Missing prebuilt package for 'tbb/2019_u9'
Try to build it from sources with "--build tbb"

@danimtb
Copy link
Member

danimtb commented Nov 26, 2019

Yes, sorry about that.

I don't know why the error did not show up before. This is the expected behavior for a requirement that has a missing package.

Unfortunately, the feature to support specific options will not be immediate but we will prioritize it

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

in terms of quality the recipe looks good, but the ci is failing

@danimtb
Copy link
Member

danimtb commented Dec 13, 2019

Seems the tbb option is required for Mac at least:

embree/3.6.1: Calling build()
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- 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: /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode-9.4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Conan: called by CMake conan helper
-- Conan: called inside local cache
-- Conan: Adjusting output directories
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
-- Conan: Adjusting fPIC flag (ON)
-- Conan: C++ stdlib: libc++
CMake Error at /usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):  ​Could NOT find TBB (missing: TBB_LIBRARY TBB_LIBRARY_MALLOC)
Call Stack (most recent call first):  ​/usr/local/Cellar/cmake/3.14.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)  ​source_subfolder/common/cmake/FindTBB.cmake:140 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)  ​source_subfolder/CMakeLists.txt:468 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!

@conan-center-bot
Copy link
Collaborator

Some configurations of 'embree/3.6.1' have failed:

@conan-center-bot
Copy link
Collaborator

Some configurations of 'embree/3.6.1' have failed:

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

These changes will fix the MacOS error, I checked on apple-clang 11

recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree/all/conanfile.py Outdated Show resolved Hide resolved
@conan-center-bot
Copy link
Collaborator

Some configurations of 'embree/3.6.1' have failed:

@uilianries uilianries mentioned this pull request Dec 24, 2019
4 tasks
@uilianries
Copy link
Member

I just pushed a fix for TBB, which should solve this current error: #536

@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@KaoCC KaoCC closed this Sep 30, 2020
@KaoCC KaoCC reopened this Sep 30, 2020
@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@uilianries uilianries closed this Oct 1, 2020
@uilianries uilianries reopened this Oct 1, 2020
@conan-center-bot
Copy link
Collaborator

All green in build 35 (4a4af147cf8dd5ecd0ffbbdcb3031cf1a0c806dd)! 😊

recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree3/all/conanfile.py Show resolved Hide resolved
recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree3/all/test_package/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/embree3/all/test_package/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
recipes/embree3/all/conanfile.py Outdated Show resolved Hide resolved
cmake.install()
self.copy("LICENSE.txt", src=self._source_folder, dst="licenses")
tools.rmdir(os.path.join(self.package_folder, "share"))
tools.rmdir(os.path.join(self.package_folder, 'lib', 'cmake'))
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the config filename, and imported target if any?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

which config ?

Copy link
Contributor

Choose a reason for hiding this comment

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

the CMake config file generated in os.path.join(self.package_folder, 'lib', 'cmake')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh there are lots of them if I remember correctly. I can check it perhaps later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

/lib/cmake/embree-3.12.0/embree-config.cmake
/lib/cmake/embree-3.12.0/embree-config-version.cmake
/lib/cmake/embree-3.12.0/sys-targets.cmake
/lib/cmake/embree-3.12.0/sys-targets-release.cmake
/lib/cmake/embree-3.12.0/math-targets.cmake
/lib/cmake/embree-3.12.0/math-targets-release.cmake
/lib/cmake/embree-3.12.0/simd-targets.cmake
/lib/cmake/embree-3.12.0/simd-targets-release.cmake
/lib/cmake/embree-3.12.0/lexers-targets.cmake
/lib/cmake/embree-3.12.0/lexers-targets-release.cmake
/lib/cmake/embree-3.12.0/tasking-targets.cmake
/lib/cmake/embree-3.12.0/tasking-targets-release.cmake
/lib/cmake/embree-3.12.0/embree_sse42-targets.cmake
/lib/cmake/embree-3.12.0/embree_sse42-targets-release.cmake
/lib/cmake/embree-3.12.0/embree_avx-targets.cmake
/lib/cmake/embree-3.12.0/embree_avx-targets-release.cmake
/lib/cmake/embree-3.12.0/embree_avx2-targets.cmake
/lib/cmake/embree-3.12.0/embree_avx2-targets-release.cmake
/lib/cmake/embree-3.12.0/embree_avx512skx-targets.cmake
/lib/cmake/embree-3.12.0/embree_avx512skx-targets-release.cmake
/lib/cmake/embree-3.12.0/embree-targets.cmake
/lib/cmake/embree-3.12.0/embree-targets-release.cmake

Copy link
Contributor

Choose a reason for hiding this comment

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

so self.cpp_info.names["cmake_find_package"] and self.cpp_info.names["cmake_find_package_multi"] should be embree. What are the imported targets in *-targets files?

KaoCC and others added 3 commits October 2, 2020 01:27
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@jgsogo
Copy link
Contributor

jgsogo commented Oct 5, 2020

An unexpected error happened and has been reported. Help is on its way! 🏇

I've just triggered it manually, I'll monitor it until it finishes... not sure what happened with the previous job.

@conan-center-bot
Copy link
Collaborator

An unexpected error happened and has been reported. Help is on its way! 🏇

@conan-center-bot
Copy link
Collaborator

All green in build 41 (147957164bb008f656754d523e4cc82ec17563f0)! 😊

@danimtb danimtb requested a review from SSE4 October 6, 2020 12:20
tools.rmdir(os.path.join(self.package_folder, "bin"))

def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
Copy link
Contributor

Choose a reason for hiding this comment

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

From the documentation

EMBREE_STATIC_LIB: Builds Embree as a static library (OFF by default). Further multiple static libraries are generated for the different ISAs selected (e.g. embree3.a, embree3_sse42.a, embree3_avx.a, embree3_avx2.a, embree3_avx512knl.a, embree3_avx512skx.a). You have to link these libraries in exactly this order of increasing ISA.

So you can't simply collect libs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you very much. I can fix that later, or in a followup patch, when I'm available.

@prince-chrismc
Copy link
Contributor

I am all for this being merged but there's two comments which might be worth doing in the future #354 (comment) and #354 (comment)

There are 3 approvals but the CCI bot has not merged this one in a few days

@danimtb
Copy link
Member

danimtb commented Oct 19, 2020

@prince-chrismc indeed, this seems to be a bug in the automatic merge of the bot. Basically, a lot of reviews in this PR that got "hidden" by the github pagination. We are already working on a fix for it. Thank you!

@conan-center-bot conan-center-bot merged commit cc30da9 into conan-io:master Oct 23, 2020
@prince-chrismc
Copy link
Contributor

Bug fixed! Awesome work 🚀

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

Successfully merging this pull request may close these issues.

[request] embree/3.12.0