Skip to content
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

Compile error at 98% ARM64 Android #20

Closed
defencedog opened this issue Sep 27, 2022 · 9 comments
Closed

Compile error at 98% ARM64 Android #20

defencedog opened this issue Sep 27, 2022 · 9 comments

Comments

@defencedog
Copy link

My log is as follows

I have latest tbb & boost

cmake -DCMAKE_INSTALL_PREFIX=$PREFIX/local ..
-- The C compiler identification is Clang 14.0.6
-- The CXX compiler identification is Clang 14.0.6
-- 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
-- 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
-- Found Boost: /data/data/com.termux/files/usr/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found suitable version "1.78.0", minimum required is "1.65") found components: program_options
-- Found GMP: /data/data/com.termux/files/usr/include
-- Performing Test Quadmath_USE_DIRECTLY
-- Performing Test Quadmath_USE_DIRECTLY - Failed
-- Could NOT find Quadmath (missing: Quadmath_LIBRARY Quadmath_INCLUDE_DIR)
-- Git hash: dea16d4
-- Found TBB: /data/data/com.termux/files/usr/lib/cmake/TBB/TBBConfig.cmake (found suitable version "2021.5.0", minimum required is "2018")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for sgemm_
-- Looking for sgemm_ - found
-- Found BLAS: /data/data/com.termux/files/usr/lib/libopenblas.so
-- LUSOL is not built
-- Performing Test HAVE_FLAG_STD_CXX14
-- Performing Test HAVE_FLAG_STD_CXX14 - Success
-- Performing Test PAPILO_BYTELL_HASHMAP_WORKS
-- Performing Test PAPILO_BYTELL_HASHMAP_WORKS - Success
-- Found Boost: /data/data/com.termux/files/usr/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found version "1.78.0") found components: iostreams serialization program_options
-- Performing Test PAPILO_USE_BOOST_IOSTREAMS_WITH_ZLIB
-- Performing Test PAPILO_USE_BOOST_IOSTREAMS_WITH_ZLIB - Success
-- Performing Test PAPILO_USE_BOOST_IOSTREAMS_WITH_BZIP2
-- Performing Test PAPILO_USE_BOOST_IOSTREAMS_WITH_BZIP2 - Success
-- No solvers linked
-- Found Boost: /data/data/com.termux/files/usr/lib/cmake/Boost-1.78.0/BoostConfig.cmake (found version "1.78.0") found components: serialization program_options iostreams
-- Configuring done
-- Generating done
-- Build files have been written to: /data/data/com.termux/files/home/papilo/build
~/papilo/build $ make -j4
[  1%] Building CXX object test/CMakeFiles/unit_test.dir/TestMain.cpp.o
[  3%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/VariableDomains.cpp.o
[  5%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/SparseStorage.cpp.o
[  7%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/core/MatrixBufferTest.cpp.o
[  9%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/ConstraintMatrix.cpp.o
[ 11%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/ProblemUpdate.cpp.o
[ 12%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/core/SparseStorageTest.cpp.o
[ 14%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/core/PresolveTest.cpp.o
[ 16%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/Presolve.cpp.o
[ 18%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/core/ProblemUpdateTest.cpp.o
[ 20%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/postsolve/PostsolveStorage.cpp.o
[ 22%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/misc/VectorUtilsTest.cpp.o
[ 24%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/CoefficientStrengtheningTest.cpp.o
[ 25%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/postsolve/Postsolve.cpp.o
[ 27%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/core/ProbingView.cpp.o
[ 29%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/ConstraintPropagationTest.cpp.o
[ 31%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/DualFixTest.cpp.o
[ 33%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/CoefficientStrengthening.cpp.o
[ 35%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/DominatedColsTest.cpp.o
[ 37%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/ConstraintPropagation.cpp.o
[ 38%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/DominatedCols.cpp.o
[ 40%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/FixContinuousTest.cpp.o
[ 42%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/DualFix.cpp.o
[ 44%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/DualInfer.cpp.o
[ 46%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/FreeVarSubstitutionTest.cpp.o
[ 48%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/ImplIntDetectionTest.cpp.o
[ 50%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/ParallelRowDetectionTest.cpp.o
[ 51%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/FixContinuous.cpp.o
[ 53%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/ParallelColDetectionTest.cpp.o
[ 55%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/FreeVarSubstitution.cpp.o
[ 57%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/ImplIntDetection.cpp.o
[ 59%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/ProbingTest.cpp.o
[ 61%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/ParallelColDetection.cpp.o
[ 62%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SingletonColsTest.cpp.o
[ 64%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/ParallelRowDetection.cpp.o
[ 66%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/Probing.cpp.o
[ 68%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SingletonStuffingTest.cpp.o
[ 70%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SimpleProbingTest.cpp.o
[ 72%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/SimpleProbing.cpp.o
[ 74%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SimpleSubstitutionTest.cpp.o
[ 75%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SimplifyInequalitiesTest.cpp.o
[ 77%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/SimpleSubstitution.cpp.o
[ 79%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/SingletonCols.cpp.o
[ 81%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/presolve/SparsifyTest.cpp.o
[ 83%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/SingletonStuffing.cpp.o
[ 85%] Building CXX object test/CMakeFiles/unit_test.dir/papilo/io/MpsParserTest.cpp.o
[ 87%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/Sparsify.cpp.o
[ 88%] Building CXX object CMakeFiles/papilo-core.dir/src/papilo/presolvers/SimplifyInequalities.cpp.o
[ 90%] Linking CXX executable unit_test
ld.lld: error: undefined symbol: __android_log_write
>>> referenced by catch.hpp:10367 (/data/data/com.termux/files/home/papilo/src/papilo/external/catch/catch.hpp:10367)
>>>               CMakeFiles/unit_test.dir/TestMain.cpp.o:(Catch::writeToDebugConsole(std::__ndk1::basic_string<char, std::__ndk1::char_traits<char>, std::__ndk1::allocator<char> > const&))
>>> referenced by catch.hpp:10367 (/data/data/com.termux/files/home/papilo/src/papilo/external/catch/catch.hpp:10367)
>>>               CMakeFiles/unit_test.dir/TestMain.cpp.o:(Catch::Detail::(anonymous namespace)::StreamBufImpl<Catch::Detail::(anonymous namespace)::OutputDebugWriter, 256ul>::sync())
>>> referenced by catch.hpp:10367 (/data/data/com.termux/files/home/papilo/src/papilo/external/catch/catch.hpp:10367)
>>>               CMakeFiles/unit_test.dir/TestMain.cpp.o:(Catch::Detail::(anonymous namespace)::StreamBufImpl<Catch::Detail::(anonymous namespace)::OutputDebugWriter, 256ul>::overflow(int))
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [test/CMakeFiles/unit_test.dir/build.make:455: test/unit_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:225: test/CMakeFiles/unit_test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 92%] Linking CXX static library libpapilo-core.a
[ 92%] Built target papilo-core
make: *** [Makefile:146: all] Error 2
@fschloesser
Copy link
Contributor

Dear @defencedog,
What are your system specifications?
can you try if the build succeeds with cmake -DCMAKE_INSTALL_PREFIX=$PREFIX/local .. -DLDFLAGS="-llog"?
Best,
Franziska

@defencedog
Copy link
Author

@fschloesser Ahh ...Thanks! I am on Andrroid ARM64
Issue is referenced here
Solved via export LDFLAGS="-llog" && cmake -DCMAKE_INSTALL_PREFIX=$PREFIX/local ..

Another question when i did make install why didn't the executables in /bin are moved to local/bin?

~/papilo/build $ make install
Consolidate compiler generated dependencies of target papilo-core
[ 48%] Built target papilo-core
Consolidate compiler generated dependencies of target duplicates
[ 51%] Built target duplicates
Consolidate compiler generated dependencies of target papilo-executable
[ 55%] Built target papilo-executable
Consolidate compiler generated dependencies of target unit_test
[100%] Built target unit_test
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/CMakeConfig.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/Config.hpp
-- Installing: /data/data/com.termux/files/usr/local/lib/cmake/papilo/papilo-config-version.cmake
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Components.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/ConstraintMatrix.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/MatrixBuffer.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Objective.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Presolve.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/PresolveMethod.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/PresolveOptions.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/ProbingView.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Problem.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/ProblemBuilder.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/ProblemUpdate.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Reductions.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/RowFlags.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/SingleRow.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Solution.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/SparseStorage.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/Statistics.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/VariableDomains.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/BoundStorage.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/PostsolveStorage.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/Postsolve.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/PostsolveStatus.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/PostsolveType.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/ReductionType.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/core/postsolve/SavedRow.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/HighsInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/GlopInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/GurobiInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/ScipInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/SolverInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/interfaces/SoplexInterface.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/io/Message.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/io/MpsParser.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/io/MpsWriter.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/io/SolParser.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/io/SolWriter.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Alloc.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Array.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/compress_vector.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/DependentRows.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Flags.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/fmt.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Hash.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/MultiPrecision.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Num.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/NumericalStatistics.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/PrimalDualSolValidation.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/OptionsParser.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/VersionLogger.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/ParameterSet.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Signature.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/StableSum.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/String.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/tbb.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Timer.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Validation.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Vec.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/VectorUtils.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/misc/Wrappers.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/CoefficientStrengthening.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/ConstraintPropagation.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/DominatedCols.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/DualFix.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/DualInfer.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/FixContinuous.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/FreeVarSubstitution.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/ImplIntDetection.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/ParallelColDetection.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/ParallelRowDetection.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/Probing.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/SimpleProbing.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/SimpleSubstitution.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/SimplifyInequalities.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/SingletonCols.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/SingletonStuffing.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/presolvers/Sparsify.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/chrono.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/color.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/compile.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/core.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/format.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/format-inl.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/locale.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/ostream.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/posix.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/printf.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/ranges.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/format.cc
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/fmt/posix.cc
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/pdqsort/pdqsort.h
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/ska/bytell_hash_map.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/ska/flat_hash_map.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/ska/unordered_map.hpp
-- Installing: /data/data/com.termux/files/usr/local/include/papilo/external/lusol/clusol.h
-- Installing: /data/data/com.termux/files/usr/local/lib/cmake/papilo/papilo-config.cmake
-- Installing: /data/data/com.termux/files/usr/local/lib/cmake/papilo/FindTBB.cmake
-- Installing: /data/data/com.termux/files/usr/local/lib/libpapilo-core.a
-- Installing: /data/data/com.termux/files/usr/local/lib/cmake/papilo/papilo-targets.cmake
-- Installing: /data/data/com.termux/files/usr/local/lib/cmake/papilo/papilo-targets-relwithdebinfo.cmake

@fschloesser
Copy link
Contributor

Perfect!
Could you please try a clean build with the following patch and unset LDFLAGS cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX/local?

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6d9ddf..175a1b0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -468,3 +468,7 @@ endif()
 # install targets
 install(TARGETS papilo papilo-core ${CLUSOL_TARGET} EXPORT papilo-targets ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
 install(EXPORT papilo-targets DESTINATION lib/cmake/papilo)
+
+if(TARGET papilo-executable)
+   install(TARGETS papilo-executable ARCHIVE DESTINATION bin LIBRARY DESTINATION lib)
+endif()
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 7e4222d..9ed9064 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -60,6 +60,9 @@ add_executable(unit_test TestMain.cpp
         ${PAPILOLIB_TEST_FILE})
 
 target_link_libraries(unit_test papilo ${PAPILOLIB_TARGET} ${Boost_LIBRARIES})
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
+    target_link_libraries(unit_test log)
+endif()
 
 set(unit_tests
         "accurate-numerical-statistics"

@defencedog
Copy link
Author

@fschloesser Ok this is above my comprehension skills ...just a chemical engineer man

@fschloesser
Copy link
Contributor

fschloesser commented Sep 27, 2022

Could you add in CMakeLists.txt at the end of the file

if(TARGET papilo-executable)
   install(TARGETS papilo-executable ARCHIVE DESTINATION bin LIBRARY DESTINATION lib)
endif()

and
to test/CMakeLists.txt after the line target_link_libraries(unit_test papilo ${PAPILOLIB_TARGET} ${Boost_LIBRARIES}) the following

if(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
    target_link_libraries(unit_test log)
endif()

And then in a fresh build directory execute unset LDFLAGS cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX/local and see if the build succeeds please?

@defencedog
Copy link
Author

defencedog commented Sep 27, 2022

@fschloesser Thanks
After following said instructions one exec is move to local/bin
-- Installing: /data/data/com.termux/files/usr/local/bin/papilo
However in /build/bin there are x2 exec duplicates papilo

@fschloesser
Copy link
Contributor

Perfect. I will add the fix and the patch to the codebase.
Thank you for helping fix this issue!

@defencedog
Copy link
Author

@fschloesser but the dublicates exec?

@fschloesser
Copy link
Contributor

Will add the fix. Equivalent to the first addition just need at the end of CMakeLists.txt

if(TARGET duplicates)
   install(TARGETS duplicates ARCHIVE DESTINATION bin LIBRARY DESTINATION lib)
endif()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants