--
----------------------------------------
Ceres Solver Google Group
http://groups.google.com/group/ceres-solver?hl=en?hl=en
--
CSparse can compute J'*J in about 3 or 4 lines of code. From memory:
JT = cs_transpose (J) ;
JTJ = cs_multiply (JT, J) ;
use JTJ here
cs_spfree (JT)
cs_spfree (JTJ)
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/7995d187-d94b-4ab2-b283-ff61f199b4e1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABqdRUDPTqYT2M%3D5Cw153WkReF8hUS0J-kec1QoxGesyZ%3DZYGw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/e73b95f4-07c2-4ff6-9990-6e2aa07da8eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/1c58f6f5-f5d5-40aa-8ca6-29bbf4036ef8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/baba86aa-f80a-4d87-9b73-05e25367b915%40googlegroups.com.
# flags I set manually on each build configuration (not sure if these should be used universally, double-check)
# CMAKE_CXX_FLAGS: -std=c++11# CMAKE_CXX_FLAGS_RELEASE: -DNDEBUG -DEIGEN_NO_DEBUG -O3
-DCMAKE_BUILD_TYPE=Release
to the command line fixes things for you? There maybe something going on with the ios cmake file. Alex can say more.
Sameer
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/c201c206-de79-4dcf-9028-53a439bca06a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/d7928a0d-7392-435d-9965-9c6b36efe846%40googlegroups.com.
Sam,Can you please try with the patch here: https://ceres-solver-review.googlesource.com/#/c/5270/1With this patch I'm getting the correct flags passed through.-Alex
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/81875b39-646e-482d-a73b-97aee957ef1b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/631d62fc-24ef-443f-8991-680b6a2ac438%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/cdf8f60b-b89c-4c0d-96f2-ec9d1284a910%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CALNY2PYz%2Bs0FDEdMUSj9jRML5w1EUM3kx_ZZ40X8%3D8jNmhq5nQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/5e67db42-dd3d-45c3-843d-a91c8fb99d03%40googlegroups.com.
--To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/7EBE24C8-8C69-4543-820D-2D969BA4A903%40gmail.com.
You received this message because you are subscribed to a topic in the Google Groups "Ceres Solver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ceres-solver/HW6Q51QawYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ceres-solver...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/3bf63c86-6d75-4774-b602-9cb18bb8380b%40googlegroups.com.
A couple of things.
1. Apple is wrong. dsyrk is a standard, well documented BLAS routine.They themselves provide a cblas API to talk to itNow for some reason they may have an issue with using the fortran dsyrk_ routine instead of using the cblas interface. Which is again, idiotic, because BLAS implementations are far more prevalent than cblas interfaces.One way around this is to use the cblas interface on apple/ios implementations. This should be relatively straightforward to do. The changes would be limited to internal/ceres/lapack.cc2. Another option is to build with CERES_NO_LAPACK defined. That way, this function will never be used. In any case this is only used by DENSE_NORMAL_CHOLESKY, which you should have the need to use in fairly specialized circumstances anyways.HTH,Sameer
On Tue Aug 05 2014 at 2:20:21 PM Ricardo Sánchez-Sáez <agen...@gmail.com> wrote:
Hey guys,we found a pretty serious problem: Ceres for iOS uses LAPACK, which in turn uses the dsyrk_ symbol, which is flagged by Apple as a private API. Including Ceres in your iOS App will make it not Validate during the App Store submission process.Help?Cheers.--
On Thursday, May 10, 2012 11:02:33 AM UTC+1, Fabian Langguth wrote:Hi,
I have Ceres compiled and running on my iPhone. It's a pretty hacky version and I would not call it a port, but if anyone is interested you can ask me :)
Best,
Fabian
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
Linking CXX static library ../../lib/libceres.a
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture array_utils.cc.o1409096694 502 20 100644 53780 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture blas.cc.o 1409096698 502 20 100644 103184 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_jacobi_preconditioner.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_jacobian_writer.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_random_access_dense_matrix.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_random_access_diagonal_matrix.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_random_access_sparse_matrix.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture block_sparse_matrix.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture c_api.cc.o 1409096728 502 20 100644 62652 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture cgnr_solver.cc.o1409096741 502 20 100644 157508 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture callbacks.cc.o 1409096735 502 20 100644 107416 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture compressed_col_sparse_matrix_utils.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture compressed_row_jacobian_writer.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture compressed_row_sparse_matrix.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture conditioned_cost_function.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture conjugate_gradients_solver.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture coordinate_descent_minimizer.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture corrector.cc.o 1409096760 502 20 100644 104376 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture covariance_impl.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture dense_normal_cholesky_solver.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture dense_qr_solver.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture dense_sparse_matrix.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture detect_structure.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture dogleg_strategy.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture dynamic_compressed_row_sparse_matrix.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture evaluator.cc.o 1409096837 502 20 100644 259148 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture file.cc.o 1409096823 502 20 100644 106748 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture gradient_checking_cost_function.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture implicit_schur_complement.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture incomplete_lq_factorization.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture iterative_schur_complement_solver.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture levenberg_marquardt_strategy.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture lapack.cc.o 1409096865 502 20 100644 104324 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture line_search.cc.o1409096875 502 20 100644 202104 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture line_search_direction.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture line_search_minimizer.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture line_search_preprocessor.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture linear_least_squares_problems.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture linear_solver.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture local_parameterization.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture loss_function.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture low_rank_inverse_hessian.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture minimizer.cc.o 1409096924 502 20 100644 110168 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture normal_prior.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture parameter_block_ordering.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture polynomial.cc.o 1409096994 502 20 100644 284016 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture preconditioner.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture preprocessor.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture problem_impl.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture program.cc.o 1409096975 502 20 100644 201808 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture reorder_program.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture residual_block.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture residual_block_utils.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_complement_solver.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_jacobi_preconditioner.cc.o???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture solver.cc.o 1409097033 502 20 100644 393992 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture sparse_normal_cholesky_solver.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture stringprintf.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture triplet_sparse_matrix.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture trust_region_preprocessor.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture trust_region_minimizer.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture trust_region_strategy.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture types.cc.o 1409097048 502 20 100644 148396 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture wall_time.cc.o 1409097057 502 20 100644 105472 `
???? malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_2_2.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_2_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_2_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_2_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_3_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_3_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_3_9.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_3_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_4_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_4_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_4_8.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_4_9.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_4_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_2_d_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_4_4_2.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_4_4_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_4_4_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_4_4_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture partitioned_matrix_view_d_d_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_2_2.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_2_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_2_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_2_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_3_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_3_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_3_9.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_3_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_4_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_4_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_4_8.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_4_9.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_4_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_2_d_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_4_4_2.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_4_4_3.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_4_4_4.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_4_4_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture schur_eliminator_d_d_d.cc.o malformed object (unknown load command 1)
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: for object: ../../lib/libceres.a(arm64) architecture logging.cc.o 1409097414 502 20 100644 50524 `
???? malformed object (unknown load command 1)
make[2]: *** [lib/libceres.a] Error 1
make[1]: *** [internal/ceres/CMakeFiles/ceres.dir/all] Error 2
make: *** [all] Error 2
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib: warning for library: /tmp/ceres-solver/lib/libceres.a the table of contents is empty (no object file members in the library define global symbols)
And then it's not usable in XCode.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/12c3bd42-97fc-48b7-a3ce-6725ba60ac24%40googlegroups.com.
// hello.cpp
#include "hello.h"
#include "ceres/ceres.h"
#include "glog/logging.h"
using ceres::NumericDiffCostFunction;
using ceres::CENTRAL;
using ceres::CostFunction;
using ceres::Problem;
using ceres::Solver;
using ceres::Solve;
// A cost functor that implements the residual r = 10 - x.
struct CostFunctor {
bool operator()(const double* const x, double* residual) const {
residual[0] = 10.0 - x[0];
return true;
}
};
int hallo() {
// The variable to solve for with its initial value. It will be
// mutated in place by the solver.
double x = 0.5;
const double initial_x = x;
// Build the problem.
Problem problem;
//...rest of the example...
std::cout << "x : " << initial_x
<< " -> " << x << "\n";
return 0;
}
BUILD XCODE-PROJECT
I get a ton of Linker-errors:
Undefined symbols for architecture x86_64:
"std::string::size() const", referenced from:
MessageLogger::LogToSinks(int) in libceres.a(problem_impl.cc.o)
std::basic_string<char, std::char_traits<char>, std::allocator<char> > std::operator+<char, std::char_traits<char>, std::allocator<char> >(char const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) in libceres.a(residual_block.cc.o)...
"std::string::c_str() const", referenced from:
MessageLogger::LogToSinks(int) in libceres.a(problem_impl.cc.o)
MessageLogger::LogToSinks(int) in libceres.a(residual_block.cc.o)...
[... a lot more...]
It seems a standard-lib is missing but I don't know how to fix that. I tested with different settings for "C++ Language Dialect" and "C++ Standard Library" but no luck.
Any advice?
Best
Thorsten
Undefined symbols for architecture x86_64:
"std::string::size() const", referenced from:
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/969d83fc-4060-48cd-a428-309d79a8ad80%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CADpYijFW9CVQNLXNGBOtoJON82yUC%3DA0scQTszXzBXMhbkY1Tw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CAGzi3purSbWgRh2kwAz3BHcs835em0QMzwAvB8iSYu%3DdVsNN0g%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/969d83fc-4060-48cd-a428-309d79a8ad80%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CADpYijFW9CVQNLXNGBOtoJON82yUC%3DA0scQTszXzBXMhbkY1Tw%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABqdRUCvH2VTsY1q0GmNaYU8omsaNfhbuphV1pXSfPp69b0yJA%40mail.gmail.com.
https://ceres-solver-review.googlesource.com/6391
It's just a brute-force disabling of LAPACK for iOS (like Alex suggested). Perhaps Apple will come to their senses later, and we can revert this.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/A4988D59-B20B-424C-9C31-5EFE9B11F54C%40gmail.com.
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: archive with no architecture specification: build/lib/libceres.a (can't determine architecture for it)
--$ lipo -info build/lib/libceres.a
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: archive with no architecture specification: build/lib/libceres.a (can't determine architecture for it)
--$ lipo -info build_simulator/lib/libceres.a
input file build_simulator/lib/libceres.a is not a fat file
Non-fat file: build_simulator/lib/libceres.a is architecture: i386
You received this message because you are subscribed to a topic in the Google Groups "Ceres Solver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ceres-solver/HW6Q51QawYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CAGzi3puzXMHYCav34Xqb336GG_GuVLeCSZRasHY%3D6ESVety0%2Bg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABvdPZ8ZSWd9uSxKmHhbLpD4-8Lzu8yUDedcf%3DupGnE%3D92WVcg%40mail.gmail.com.
--$ file build/lib/libceres.a
build/lib/libceres.a: current ar archive
build_simulator/lib/libceres.a: current ar archive random library
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: library member: ../../lib/libceres.a(array_utils.cc.o) is not an object file (not allowed in a library with multiple architectures)
Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
--
You received this message because you are subscribed to the Google Groups "Ceres Solver" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABvdPZ99cbKpBNiP0EAXsTpFiz%2BQEtHY12VFoK29Qi03Rvpr6w%40mail.gmail.com.
--$ otool -fh build/lib/libceres.a
Archive : build/lib/libceres.a
build/lib/libceres.a(array_utils.cc.o): is not an object file
build/lib/libceres.a(blas.cc.o): is not an object file
You received this message because you are subscribed to a topic in the Google Groups "Ceres Solver" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ceres-solver/HW6Q51QawYw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ceres-solver...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/95C552E9-F0FF-4406-8BC3-EE53CE12E429%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CABvdPZ_WtCaTd%2Brittnw5Rp82TFYc0U4bQ8c%3DboUpZmX3Cz_KQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CAPHe0hJQDzQmA5kQeViXW_pXbR3ScxGjmAiUKOVyX-vo4vy9Hg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/0B955B8E-98B6-469F-A7A8-DA37D3AAA370%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/0B955B8E-98B6-469F-A7A8-DA37D3AAA370%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceres-solver/CAPHe0h%2BKe5An7tqmJwwjK%2BbPr_LU0b6V7QFs39YuEUY6dEihKw%40mail.gmail.com.