Giter VIP home page Giter VIP logo

libyafaray's People

Contributors

boiko avatar darktide avatar davidbluecame avatar encukou avatar jonasstein avatar martijnberger avatar olafarnold avatar olafhering avatar povmaniaco avatar subcomandante avatar yurivict avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

libyafaray's Issues

[build] error: « numeric_limits » is not member of « std »

Mageia 9
gcc 12.3.0
CMake 3.26.4
Yafaray: v3.5.1

Yafaray/include/core_api/surface.h:118:26: error: « numeric_limits » is not member of « std »
      118 |         else return std::numeric_limits<float>::infinity();`

To fix it:
Add this two lines in the main CMakeLists.txt just before ####### Options ########

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

make error: ‘size_t’ does not name a type

Hello !

Thank you for the amazing work you do!

I ran into some error while compiling on Linux.

$ cmake CMakeLists.txt
# goes fine
$ make
[  1%] Building CXX object src/CMakeFiles/libyafaray4.dir/color/color_layers.cc.o
In file included from /home/user/Downloads/YafaRay/libYafaRay/include/common/layers.h:25,
                 from /home/user/Downloads/YafaRay/libYafaRay/include/color/color_layers.h:24,
                 from /home/user/Downloads/YafaRay/libYafaRay/src/color/color_layers.cc:19:
/home/user/Downloads/YafaRay/libYafaRay/include/common/collection.h:34:17: error: ‘size_t’ does not name a type
   34 |                 size_t size() const { return items_.size(); }
      |                 ^~~~~~
/home/user/Downloads/YafaRay/libYafaRay/include/common/collection.h:27:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   26 | #include <map>
  +++ |+#include <cstddef>
   27 | 
make[2]: *** [src/CMakeFiles/libyafaray4.dir/build.make:244: src/CMakeFiles/libyafaray4.dir/color/color_layers.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:694: src/CMakeFiles/libyafaray4.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Here are my installed packages :

$ pacman -Q | grep "gcc\|opencv\|zlib\|freetype\|tiff\|jpeg\|libpng\|ilmbase\|openexr"
freetype2 2.11.1-1
gcc 11.2.0-4
gcc-libs 11.2.0-4
gcc-objc 11.2.0-4
jpegoptim 1.4.6-2
lib32-freetype2 2.11.1-1
lib32-gcc-libs 11.2.0-4
lib32-libjpeg-turbo 2.1.3-1
lib32-libpng 1.6.37-3
lib32-libpng12 1.2.59-2
lib32-libtiff 4.3.0-1
lib32-zlib 1.2.11-3
libjpeg-turbo 2.1.3-1
libpng 1.6.37-3
libpng12 1.2.59-2
libtiff 4.3.0-1
opencv 4.5.5-3
openexr 3.1.4-1
openjpeg 1.5.2-3
openjpeg2 2.4.0-1
zlib 1:1.2.11-5

Hopefully I was able to solve the problem following the compiler's advice.

I am opening this issue in case someone else gets the same problem.

New test build

Hi David. As I see new commits is it still in progress or can we test a new build in coming near times?

Regards,
Odilkhan.

Website

It seems that the YafaRay website is down, the domain has expired.

Documentation needed

Earlier versions use to have the documentation on yafaray.org. I can't see them now. Can anyone please let me know if they are somewhere out there?

About resampled floor

Hi David
I have a question about resampled floor. As I understand it, it decreases thresold when pixels to resample go below a % of total pixels of the image, so in practice it decreases thresold only one time regardless of passes once the % is reached. Also decreased thresold amount follows to the precomputed curve. Am I right?
The idea I had about this algorithm was setting relately high % levels, for instance a 95%, so the thresold is constantly moving down in each pass with low percentages of pixels solved, which is always the case, but for this to work pixels percentage should go against pixels pixels sampled in the previous pass, instead of total pixels in the image. Am I getting it right ?

Issue building with clang

I received a report from our testing team with an issue building libYafaRay v3.5.1 with clang (possibly using libcxx from clang instead of standard c++ library from gcc) on Gentoo Linux.

The error is

/var/tmp/portage/media-gfx/yafaray-3.5.1-r1/work/libYafaRay-3.5.1/include/core_api/surface.h:118:19: error: no member named 'numeric_limits' in namespace 'std'

A full build log can be seen with the bug report at https://bugs.gentoo.org/830949

I'm the maintainer of the package in Gentoo. Don't hesitate to request any more input from me, if needed or if I can be of support in resolving this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.