openframeworks / apothecary

This is the OpenFrameworks library apothecary. It mixes formulas and potions to build and update the C/C++ lib dependencies.
Other
56 stars 51 forks source link

Apothecary - C standard 17 and CXX Standard 23 - variables #390

Closed danoli3 closed 1 month ago

danoli3 commented 1 month ago

C standard 17 CXX Standard 23

Setup variables and set in apothecary for define default Can be overloaded with

if [ -z "${C_STANDARD+x}" ]; then
    export C_STANDARD=17
fi

if [ -z "${CPP_STANDARD+x}" ]; then
    export CPP_STANDARD=2b
fi
danoli3 commented 1 month ago

FreeImage for MSVC has this bug for C++20 :

(ClCompile target) -> 
  D:\a\apothecary\apothecary\apothecary\build\FreeImage\Source\MapIntrospector.h(98,36): error C2065: '_Node': undeclared identifier [D:\a\apothecary\apothecary\apothecary\build\FreeImage\build_vs_64\FreeImage.vcxproj]
  D:\a\apothecary\apothecary\apothecary\build\FreeImage\Source\MapIntrospector.h(98,36): error C3861: '_Node': identifier not found 

Looks like @elvisdukaj was on the case already and patched it. Merging at danoli3/FreeImage (patched) repo https://github.com/danoli3/FreeImage/pull/7

danoli3 commented 1 month ago

Reported opencv contrib arm64 bug https://github.com/opencv/opencv_contrib/issues/3767 disabled for now (just rgbd)

danoli3 commented 1 month ago

[OpenCV [4.9.0]->[4.10] OpenCV Contrib modules FreeImage 3.19.5 - ARM64 fixes

Msys2 fixes for packaged code

formulae updates

GitHub actions env.USE_ARTIFACT to enable cached version use when building or not - even if no version change needed as no version changes for many libraries, however CXX change