Add a New Comment (Rich Markup)
Hi, currently exrdisplay does not compile with g++ 4.3, as the declaration of the getenv() function is missing: <<<<< g++-4.3 -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/include/freetype2 -D_THREAD_SAFE -D_REENTRANT -I.. -DHAVE_CTL_INTERPRETER=0 -pthread -I/usr/include/OpenEXR -pipe -g -Wall -O2 -c -o applyCtl.o applyCtl.cpp applyCtl.cpp: In function ‘float displayVideoGamma()’: applyCtl.cpp:86: error: ‘getenv’ was not declared in this scope applyCtl.cpp: In function ‘Imf::Chromaticities<unnamed>::displayChromaticities()’: applyCtl.cpp:125: error: ‘getenv’ was not declared in this scope
>>>>>
Attached there is a patch for exrdisplay/applyCtl.cpp that solves the problem, just including <cstdlib> is enough. Please also note that a similar issue could be also in playexr/ctlToLut.cpp, and basically the same patch could be applied there too. (I miss the dependancies for compiling the CTL stuff, so I was not able to verify.)
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Follow 2 latest changes.
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11