build$ LDFLAGS="-llog" cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DHAS_CBC=on -DHAS_IPOPT=on -- The CXX compiler identification is Clang 17.0.6 -- The C compiler identification is Clang 17.0.6 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /data/data/com.termux/files/usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /data/data/com.termux/files/usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Looking for C++ include filesystem -- Looking for C++ include filesystem - found -- Performing Test CAN_COMPILE_FS_WITHOUT_LINK -- Performing Test CAN_COMPILE_FS_WITHOUT_LINK - Success -- Git hash: 08b87f56 -- Found PkgConfig: /data/data/com.termux/files/usr/bin/pkg-config (found version "0.29.2") CMake Warning (dev) at /data/data/com.termux/files/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:438 (message): The package name passed to `find_package_handle_standard_args` (PkgConfig) does not match the name of the calling package (CBC). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Call Stack (most recent call first): /data/data/com.termux/files/usr/share/cmake-3.28/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args) misc/FindCBC.cmake:6 (include) CMakeLists.txt:189 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. -- Checking for one of the modules 'cbc' -- Cbc found using Pkg-config: Include directories found: /data/data/com.termux/files/usr/include/coin;/data/data/com.termux/files/usr/include/coin-or/asl;/data/data/com.termux/files/usr/include/coin Library directories found: /data/data/com.termux/files/usr/lib -- Found CBC: CbcSolver;Cbc;coinasl;Cgl;OsiClp;ClpSolver;Clp;Osi;CoinUtils;m -- Checking for one of the modules 'ipopt' -- Cbc include files will be used from: /data/data/com.termux/files/usr/include/coin;/data/data/com.termux/files/usr/include/coin-or/asl;/data/data/com.termux/files/usr/include/coin -- The following Cbc libraries will be used from: /data/data/com.termux/files/usr/lib CbcSolver;Cbc;coinasl;Cgl;OsiClp;ClpSolver;Clp;Osi;CoinUtils;m -- Ipopt include files will be used from: /opt/ipopt/include/coin -- The following Ipopt libraries will be used from: /data/data/com.termux/files/usr/lib ipopt -- Configuring done (11.7s) -- Generating done (0.1s) -- Build files have been written to: /data/data/com.termux/files/home/ipopt_dev/SHOT/build
My
configure
step is OKError step
I appended
LDFLAGS="-llog"
in a bid to resolve the issue as explained here https://stackoverflow.com/questions/4455941/undefined-reference-to-android-log-printThe error originated previously here https://github.com/catchorg/Catch2/issues/2576#issuecomment-1323915624 But i resolved it by passing this argument
-DCATCH_CONFIG_ANDROID_LOGWRITE=OFF
Any equivalent argument?