mmp / pbrt-v3

Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
http://pbrt.org
BSD 2-Clause "Simplified" License
4.92k stars 1.2k forks source link

Compilation error on Raspbian #86

Closed koiava closed 8 years ago

koiava commented 8 years ago

Compilation failed in imageio.cpp with message "Can't detect machine endian-ness at compile-time."

define LITTLE_ENDIAN solves that locally(which isn't a solution of course) and rest of the compilation is successful.

mmp commented 8 years ago

Thanks for reporting this. I believe that I've fixed it in top of tree, but please confirm.

Note that your renders will be quite slow on that target. :-)

koiava commented 8 years ago

Now It compiles. It also gives warning in memory.h everywhere, where it's included direcly or indirectly

pbrt-v3/src/core/memory.h:59:5: warning: requested alignment 128 is larger than 64 [-Wattributes] MemoryArena { ^

Note that your renders will be quite slow on that target. :-)

:D Fast enough to have fun. dining-room from Benedikt's repository with 1spp took 71sec. (It's raspberry pi3)