-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed to build on ubuntu 18.04 #15
Comments
HI @thibaudk could you pastebin le full log somewhere please ? thanks |
Hey @avilleret here it is [244/934] Building CXX object CMakeFiles/openFrameworks.dir/src/freeimage/Source/LibRawLite/internal/dcraw_common.cpp.o |
hum... this sounds like a broken dependencie on 18.04 I think updating ofnode source to openframeworks 0.10 would be great and could solve this issue, but I doubt it is as simple as copy and paste source file... |
Just try it with openframeworks official script 0.9.8 and 0.10, appart from a couple missing libs, I had no problem building either. |
A fresh reinstall of ubuntu 18.04 retains the exact same issue. |
Indeed, openframeworks official scripts installs the libfreeimage-dev instead of compiling it from scratch. |
Installing libfreeimage-dev and Commenting out all references to /source/Freeimage in both CMakeLists.txt and OpenFameworks.cmake allows for a succesfull build. The problem appears when linking an example.
It will need further tweaking |
I just deleted the offending definition of powf64 in src/freeimage/Source/LibRawLite/internal/dcraw_common.cpp |
Can't believe I dindn't try that! @avilleret would you like me to do a pr? We have also added a couple other libs for camera addons and usb control and updated the install script for Ubuntu. we can also imagine adding @bltzr 's ofxOscQuery addon to the default addons? |
yes PR are welcome ! I can give you direct access to the repo also and note that there are patches here : https://github.com/ofnode/of/tree/master/dev/patches I think your changes can goes here in addition to the source file concerning third-party addon, and particularly ofxOscQuery, it adds more dependency and I'm not sure it's a good idea :-) |
I still have the same problem in Fedora 36. LibRaw from Github does not compile, with the very same error: internal/dcraw_common.cpp: In member function ‘void LibRaw::PentaxLensInfo(unsigned int, unsigned int)’: I solved this by duplicating the function definition as powf64(int,int). |
CMake shows that the found OpenSSL seems to be on the correct version:
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2n")
yet Ninja fails to build LibRawlite with the following error:
../src/freeimage/Source/LibRawLite/internal/dcraw_common.cpp:6940:97: error: call of overloaded ‘powf64(int, int)’ is ambiguous
10*(table_buf[iLensData+9]>>2) * powf64(4, (table_buf[iLensData+9] & 0x03)-2);
The text was updated successfully, but these errors were encountered: