Giter Club home page Giter Club logo

Comments (10)

meshula avatar meshula commented on May 28, 2024 2

@ZeroCrunch @francis-brissette This fix is on the develop branch, thanks Jamie!

from openexr.

 avatar commented on May 28, 2024

Is there a way to manually generate all the needed files?

from openexr.

 avatar commented on May 28, 2024

I figure it out. Still a workaround, though.

cd IlmBase/Half/
g++ eLut.cpp -o eLut && ./eLut > eLut.h
g++ toFloat.cpp -o toFloat && ./toFloat > toFloat.h
*compile IlmBase*
cd OpenEXR/IlmImf/
g++ b44ExpLogTable.cpp -o b44ExpLogTable -pthread -I../../IlmBase/Half/ ../../IlmBase/Half/libHalf.a ../../IlmBase/Iex/libIex-2_1.a ../../IlmBase/IlmThread/libIlmThread-2_1.a
./b44ExpLogTable > b44ExpLogTable.h
./b44ExpLogTable > ../b44ExpLogTable.h

from openexr.

francis-brissette avatar francis-brissette commented on May 28, 2024

I have the same issue with Ninja on Window:

cd openexr\IlmBase
mkdir build
cd build
cmake .. -G Ninja
cmake --build .

Output:
ninja: error: 'Half/toFloat.h', needed by 'Half/CMakeFiles/Half.dir/half.cpp.obj', missing and no known rule to make it

Anyone have a fix?

from openexr.

TheRealJokerMan avatar TheRealJokerMan commented on May 28, 2024

Anyone managed to get this working?

from openexr.

francis-brissette avatar francis-brissette commented on May 28, 2024

@ZeroCrunch ,

In openexr/IlmBase/Half/CMakeLists.txt, I updated the code to the followin:g:

...
SET_SOURCE_FILES_PROPERTIES(
  half.cpp
  PROPERTIES
  OBJECT_DEPENDS
  toFloat
  OBJECT_DEPENDS
  eLut
  )

IF(BUILD_SHARED_LIBS)
    ADD_DEFINITIONS(-DHALF_EXPORTS)
ENDIF()

ADD_LIBRARY ( Half ${LIB_TYPE}
  half.cpp
  )

INSTALL ( TARGETS
  Half
  DESTINATION
  lib
)
...

It worked on my side.

Cheers,
Francis

from openexr.

meshula avatar meshula commented on May 28, 2024

This looks like the correct fix to me - it would be a good PR.

from openexr.

TheRealJokerMan avatar TheRealJokerMan commented on May 28, 2024

@francis-brissette,

What worked for me in the end was:

PROPERTIES
OBJECT_DEPENDS
"${CMAKE_CURRENT_BINARY_DIR}/toFloat.h;${CMAKE_CURRENT_BINARY_DIR}/eLut.h"

from openexr.

francis-brissette avatar francis-brissette commented on May 28, 2024

@meshula, will you take care of this bug & fix?

from openexr.

cary-ilm avatar cary-ilm commented on May 28, 2024

Looking into the backlog of open OpenEXR issues. This seems to have been resolved in the v2.3.0 release.
Closing the issue for now, feel free to re-open or file a new issue if you need further help.

from openexr.

Related Issues (20)

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.