You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Several months ago, openjph made many type changes for example converting int to unsigned int in various places. Perhaps the type change from int to uint is causing the openhtjs build to fail now, I get this error when running npm run build
#10 4.713 In file included from /src/src/cpp/HT_internal.cpp:17:
#10 4.713 /src/src/cpp/HTDecoder.hpp:162:51: error: non-const lvalue reference to type 'ojph::ui32' (aka 'unsigned int') cannot bind to a value of unrelated type 'int'
#10 4.713 ojph::line_buf* line = this->codestream_.pull(this->compNum_);
#10 4.713 ^~~~~~~~~~~~~~
#10 4.713 /src/external/OpenJPH/src/core/common/ojph_codestream.h:96:26: note: passing argument to parameter 'comp_num' here
#10 4.713 line_buf* pull(ui32 &comp_num);
#10 4.713 ^
#10 4.814 1 error generated.
Activity
michaeldsmith commentedon Feb 19, 2022
quick fix is to go back to older version of OpenJPH
from external/openjph
git checkout tags/0.7.3