realm / realm-cpp

Realm C++
Apache License 2.0
74 stars 17 forks source link

Can't build application with cpprealm library #28

Closed ksubox closed 2 years ago

ksubox commented 2 years ago

Hello,

Recently found cpp implementation for Realm and tried to build test program, but failed. I have latest OpenSUSE Tumbleweed. Here is build Realm result:

sudo cmake --build . --target install
[  0%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128.c.o
[  0%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_compare.c.o
[  0%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_mul.c.o
[  1%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_div.c.o
[  1%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_add.c.o
[  1%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_fma.c.o
[  2%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_string.c.o
[  2%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_2_str_tables.c.o
[  2%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid64_to_bid128.c.o
[  2%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_to_int64.c.o
[  3%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid128_quantize.c.o
[  3%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid_convert_data.c.o
[  3%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid_decimal_data.c.o
[  4%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid_decimal_globals.c.o
[  4%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid_from_int.c.o
[  4%] Building C object realm-core/src/external/IntelRDFPMathLib20U2/CMakeFiles/Bid.dir/LIBRARY/src/bid_round.c.o
[  4%] Built target Bid
[  4%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/query.cpp.o
[  4%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array.cpp.o
[  5%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_with_find.cpp.o
[  5%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/alloc.cpp.o
[  5%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/alloc_slab.cpp.o
[  6%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_backlink.cpp.o
[  6%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_binary.cpp.o
[  6%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_blob.cpp.o
[  6%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_blobs_small.cpp.o
[  7%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_blobs_big.cpp.o
[  7%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_decimal128.cpp.o
[  7%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_fixed_bytes.cpp.o
[  9%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_integer.cpp.o
[  9%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_key.cpp.o
[  9%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_mixed.cpp.o
[ 10%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_unsigned.cpp.o
[ 10%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_string.cpp.o
[ 10%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_string_short.cpp.o
[ 10%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/array_timestamp.cpp.o
[ 11%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/bplustree.cpp.o
[ 11%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/chunked_binary.cpp.o
[ 11%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/cluster.cpp.o
[ 12%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/collection.cpp.o
[ 12%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/cluster_tree.cpp.o
[ 12%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/error_codes.cpp.o
[ 12%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/table_cluster_tree.cpp.o
[ 13%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/column_binary.cpp.o
[ 13%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/decimal128.cpp.o
[ 13%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/dictionary.cpp.o
[ 14%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/disable_sync_to_disk.cpp.o
[ 14%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/exceptions.cpp.o
[ 14%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/group.cpp.o
[ 14%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/db.cpp.o
[ 15%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/group_writer.cpp.o
[ 15%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/history.cpp.o
[ 15%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/impl/copy_replication.cpp.o
[ 17%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/impl/output_stream.cpp.o
[ 17%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/impl/simulated_failure.cpp.o
[ 17%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/impl/transact_log.cpp.o
[ 18%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/index_string.cpp.o
[ 18%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/link_translator.cpp.o
[ 18%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/list.cpp.o
[ 18%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/node.cpp.o
[ 19%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/mixed.cpp.o
[ 19%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/obj.cpp.o
[ 19%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/object_converter.cpp.o
[ 20%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/global_key.cpp.o
[ 20%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/query_engine.cpp.o
[ 20%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/query_expression.cpp.o
[ 20%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/query_value.cpp.o
[ 21%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/replication.cpp.o
[ 21%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/set.cpp.o
[ 21%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/spec.cpp.o
[ 22%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/string_data.cpp.o
[ 22%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/table.cpp.o
[ 22%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/table_ref.cpp.o
[ 23%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/obj_list.cpp.o
[ 23%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/object_id.cpp.o
[ 23%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/table_view.cpp.o
[ 23%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/transaction.cpp.o
[ 25%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/sort_descriptor.cpp.o
[ 25%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/status.cpp.o
[ 25%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/unicode.cpp.o
[ 26%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/utilities.cpp.o
[ 26%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/uuid.cpp.o
[ 26%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/version.cpp.o
[ 26%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/backup_restore.cpp.o
[ 27%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/metrics/metrics.cpp.o
[ 27%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/metrics/metric_timer.cpp.o
[ 27%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/metrics/query_info.cpp.o
[ 28%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/metrics/transaction_info.cpp.o
[ 28%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/interprocess_mutex.cpp.o
[ 28%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/backtrace.cpp.o
[ 28%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/base64.cpp.o
[ 29%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/basic_system_errors.cpp.o
[ 29%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/cli_args.cpp.o
[ 29%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/compression.cpp.o
[ 30%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/encrypted_file_mapping.cpp.o
[ 30%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/fifo_helper.cpp.o
[ 30%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/file.cpp.o
[ 31%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/file_mapper.cpp.o
[ 31%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/interprocess_condvar.cpp.o
[ 31%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/logger.cpp.o
[ 31%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/memory_stream.cpp.o
[ 32%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/platform_info.cpp.o
[ 32%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/misc_errors.cpp.o
[ 32%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/serializer.cpp.o
[ 34%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/sha_crypto.cpp.o
[ 34%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/terminate.cpp.o
[ 34%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/time.cpp.o
[ 34%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/timestamp_formatter.cpp.o
[ 35%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/timestamp_logger.cpp.o
[ 35%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/thread.cpp.o
[ 35%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/to_string.cpp.o
[ 36%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/copy_dir_recursive.cpp.o
[ 36%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/demangle.cpp.o
[ 36%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/duplicating_logger.cpp.o
[ 36%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/enum.cpp.o
[ 37%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/file_is_regular.cpp.o
[ 37%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/http.cpp.o
[ 37%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/json_parser.cpp.o
[ 38%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/load_file.cpp.o
[ 38%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/misc_ext_errors.cpp.o
[ 38%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/parent_dir.cpp.o
[ 39%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/random.cpp.o
[ 39%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/resource_limits.cpp.o
[ 39%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/substitute.cpp.o
[ 39%] Building CXX object realm-core/src/realm/CMakeFiles/Storage.dir/util/uri.cpp.o
[ 40%] Linking CXX static library librealm-dbg.a
[ 40%] Built target Storage
[ 40%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/config.cpp.o
[ 40%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/changeset_index.cpp.o
[ 42%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/client_history_impl.cpp.o
[ 42%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/client_impl_base.cpp.o
[ 42%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/client_reset.cpp.o
[ 42%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/client_reset_operation.cpp.o
[ 43%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/client_reset_recovery.cpp.o
[ 43%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/compact_changesets.cpp.o
[ 43%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/pending_bootstrap_store.cpp.o
[ 44%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/protocol_codec.cpp.o
[ 44%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/noinst/sync_metadata_schema.cpp.o
[ 44%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/changeset_encoder.cpp.o
[ 45%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/changeset_parser.cpp.o
[ 45%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/changeset.cpp.o
[ 45%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/client.cpp.o
[ 45%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/history.cpp.o
[ 46%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/instruction_applier.cpp.o
[ 46%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/instruction_replication.cpp.o
[ 46%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/instructions.cpp.o
[ 47%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/object_id.cpp.o
[ 47%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/protocol.cpp.o
[ 47%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/subscriptions.cpp.o
[ 47%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/transform.cpp.o
[ 48%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/__/util/network_ssl.cpp.o
[ 48%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/__/util/network.cpp.o
[ 48%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/__/util/websocket.cpp.o
[ 50%] Building CXX object realm-core/src/realm/sync/CMakeFiles/Sync.dir/__/util/ez_websocket.cpp.o
[ 50%] Linking CXX static library librealm-sync-dbg.a
[ 50%] Built target Sync
[ 51%] Building CXX object realm-core/src/realm/parser/CMakeFiles/QueryParser.dir/driver.cpp.o
[ 51%] Building CXX object realm-core/src/realm/parser/CMakeFiles/QueryParser.dir/keypath_mapping.cpp.o
[ 51%] Building CXX object realm-core/src/realm/parser/CMakeFiles/QueryParser.dir/generated/query_flex.cpp.o
[ 52%] Building CXX object realm-core/src/realm/parser/CMakeFiles/QueryParser.dir/generated/query_bison.cpp.o
[ 52%] Linking CXX static library librealm-parser-dbg.a
[ 52%] Built target QueryParser
[ 53%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/binding_callback_thread_observer.cpp.o
[ 53%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/collection.cpp.o
[ 53%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/collection_notifications.cpp.o
[ 53%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/dictionary.cpp.o
[ 54%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/index_set.cpp.o
[ 54%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/list.cpp.o
[ 54%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/object.cpp.o
[ 55%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/object_changeset.cpp.o
[ 55%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/object_schema.cpp.o
[ 55%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/object_store.cpp.o
[ 55%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/results.cpp.o
[ 56%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/schema.cpp.o
[ 56%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sectioned_results.cpp.o
[ 56%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/set.cpp.o
[ 57%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/shared_realm.cpp.o
[ 57%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/thread_safe_reference.cpp.o
[ 57%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/collection_change_builder.cpp.o
[ 59%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/collection_notifier.cpp.o
[ 59%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/deep_change_checker.cpp.o
[ 59%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/list_notifier.cpp.o
[ 59%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/object_notifier.cpp.o
[ 60%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/realm_coordinator.cpp.o
[ 60%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/results_notifier.cpp.o
[ 60%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/transact_log_handler.cpp.o
[ 61%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/weak_realm_notifier.cpp.o
[ 61%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/util/scheduler.cpp.o
[ 61%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/util/uuid.cpp.o
[ 61%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/app.cpp.o
[ 62%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/app_utils.cpp.o
[ 62%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/app_credentials.cpp.o
[ 62%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/generic_network_transport.cpp.o
[ 63%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/async_open_task.cpp.o
[ 63%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/sync_manager.cpp.o
[ 63%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/sync_session.cpp.o
[ 64%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/sync_user.cpp.o
[ 64%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/mongo_client.cpp.o
[ 64%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/mongo_collection.cpp.o
[ 64%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/mongo_database.cpp.o
[ 65%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/push_client.cpp.o
[ 65%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/impl/sync_file.cpp.o
[ 65%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/sync/impl/sync_metadata.cpp.o
[ 67%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/util/bson/bson.cpp.o
[ 67%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/util/bson/regular_expression.cpp.o
[ 67%] Building CXX object realm-core/src/realm/object-store/CMakeFiles/ObjectStore.dir/impl/epoll/external_commit_helper.cpp.o
[ 67%] Linking CXX static library librealm-object-store-dbg.a
[ 67%] Built target ObjectStore
[ 68%] Building CXX object CMakeFiles/cpprealm.dir/src/cpprealm/sdk.cpp.o
[ 68%] Building CXX object CMakeFiles/cpprealm.dir/src/cpprealm/analytics.cpp.o
[ 68%] Building CXX object CMakeFiles/cpprealm.dir/src/cpprealm/internal/curl/network_transport.cpp.o
[ 68%] Linking CXX shared library libcpprealm.so
[ 68%] Built target cpprealm
[ 68%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_automake.cpp.o
[ 69%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_combined_tu.cpp.o
[ 69%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_common_base.cpp.o
[ 69%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_compact.cpp.o
[ 70%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_console.cpp.o
[ 70%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_cumulative_base.cpp.o
[ 70%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_junit.cpp.o
[ 71%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_multi.cpp.o
[ 71%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_registrars.cpp.o
[ 71%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_sonarqube.cpp.o
[ 71%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_streaming_base.cpp.o
[ 72%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_tap.cpp.o
[ 72%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_teamcity.cpp.o
[ 72%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/reporters/catch_reporter_xml.cpp.o
[ 73%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_approx.cpp.o
[ 73%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_assertion_handler.cpp.o
[ 73%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_assertion_result.cpp.o
[ 73%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/matchers/internal/catch_matchers_combined_tu.cpp.o
[ 75%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_clara.cpp.o
[ 75%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_commandline.cpp.o
[ 75%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_source_line_info.cpp.o
[ 76%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_config.cpp.o
[ 76%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_case_insensitive_comparisons.cpp.o
[ 76%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_console_colour.cpp.o
[ 76%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_context.cpp.o
[ 77%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_debug_console.cpp.o
[ 77%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_debugger.cpp.o
[ 77%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_enforce.cpp.o
[ 78%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_enum_values_registry.cpp.o
[ 78%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_exception_translator_registry.cpp.o
[ 78%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_fatal_condition_handler.cpp.o
[ 79%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_floating_point_helpers.cpp.o
[ 79%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_istream.cpp.o
[ 79%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/generators/internal/catch_generators_combined_tu.cpp.o
[ 79%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/interfaces/catch_interfaces_combined_tu.cpp.o
[ 80%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/interfaces/catch_interfaces_generatortracker.cpp.o
[ 80%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/interfaces/catch_interfaces_reporter.cpp.o
[ 80%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_list.cpp.o
[ 81%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/matchers/catch_matchers_floating_point.cpp.o
[ 81%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/matchers/catch_matchers_string.cpp.o
[ 81%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/matchers/catch_matchers_templated.cpp.o
[ 81%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_message.cpp.o
[ 82%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_output_redirect.cpp.o
[ 82%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_registry_hub.cpp.o
[ 82%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_combined_tu.cpp.o
[ 84%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_random_number_generator.cpp.o
[ 84%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_random_seed_generation.cpp.o
[ 84%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_reporter_registry.cpp.o
[ 85%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_reporter_spec_parser.cpp.o
[ 85%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_result_type.cpp.o
[ 85%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_run_context.cpp.o
[ 85%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_section.cpp.o
[ 86%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_stdstreams.cpp.o
[ 86%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_session.cpp.o
[ 86%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_singletons.cpp.o
[ 87%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_reusable_string_stream.cpp.o
[ 87%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_stringref.cpp.o
[ 87%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_string_manip.cpp.o
[ 87%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_tag_alias_registry.cpp.o
[ 88%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_test_case_info.cpp.o
[ 88%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_test_case_registry_impl.cpp.o
[ 88%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_test_case_tracker.cpp.o
[ 89%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_test_registry.cpp.o
[ 89%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_textflow.cpp.o
[ 89%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_test_spec.cpp.o
[ 89%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_test_spec_parser.cpp.o
[ 90%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_timer.cpp.o
[ 90%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_tostring.cpp.o
[ 90%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_totals.cpp.o
[ 92%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/catch_version.cpp.o
[ 92%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_wildcard_pattern.cpp.o
[ 92%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_xmlwriter.cpp.o
[ 93%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/internal/catch_test_case_info_hasher.cpp.o
[ 93%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/generators/catch_generators_random.cpp.o
[ 93%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/benchmark/internal/catch_benchmark_combined_tu.cpp.o
[ 93%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2.dir/catch2/benchmark/detail/catch_stats.cpp.o
[ 94%] Linking CXX static library libCatch2d.a
[ 94%] Built target Catch2
[ 95%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/str_tests.cpp.o
[ 95%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/list_tests.cpp.o
[ 95%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/query_tests.cpp.o
[ 96%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/main.cpp.o
[ 96%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/admin_utils.cpp.o
[ 96%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/date_tests.cpp.o
[ 96%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/mixed_tests.cpp.o
[ 97%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/results_tests.cpp.o
[ 97%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/binary_tests.cpp.o
[ 97%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/flx_sync_tests.cpp.o
[ 98%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/app_tests.cpp.o
[ 98%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/embedded_object_tests.cpp.o
[ 98%] Building CXX object CMakeFiles/cpprealm_exe_tests.dir/tests/opt_tests.cpp.o
[100%] Linking CXX executable cpprealm_exe_tests
[100%] Built target cpprealm_exe_tests
[100%] Building CXX object _deps/catch2-build/src/CMakeFiles/Catch2WithMain.dir/catch2/internal/catch_main.cpp.o
[100%] Linking CXX static library libCatch2Maind.a
[100%] Built target Catch2WithMain
Install the project...
-- Install configuration: "debug"
-- Installing: /usr/local/lib64/libcpprealm.so
-- Up-to-date: /usr/local/include/cpprealm/sdk.hpp
-- Up-to-date: /usr/local/include/cpprealm/app.hpp
-- Up-to-date: /usr/local/include/cpprealm/db.hpp
-- Up-to-date: /usr/local/include/cpprealm/notifications.hpp
-- Up-to-date: /usr/local/include/cpprealm/object.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted.hpp
-- Up-to-date: /usr/local/include/cpprealm/results.hpp
-- Up-to-date: /usr/local/include/cpprealm/schema.hpp
-- Up-to-date: /usr/local/include/cpprealm/task.hpp
-- Up-to-date: /usr/local/include/cpprealm/thread_safe_reference.hpp
-- Up-to-date: /usr/local/include/cpprealm/type_info.hpp
-- Up-to-date: /usr/local/include/cpprealm/flex_sync.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_string.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_bool.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_int.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_optional.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_enum.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_timestamp.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_uuid.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_list.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_embedded.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_binary.hpp
-- Up-to-date: /usr/local/include/cpprealm/persisted_mixed.hpp
-- Up-to-date: /usr/local/include/cpprealm/analytics.hpp
-- Up-to-date: /usr/local/include/cpprealm/generic_network_transport.hpp

So build process looks OK. Then I make project with Realm cpp code

#include <cpprealm/sdk.hpp>

and CMakeList.txt is:

cmake_minimum_required(VERSION 3.5)
project(dbbench LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(dbbench main.cpp test_realm.cpp)
target_link_libraries(dbbench fmt cpprealm)

But got error:

dbbench.dir/test_realm.cpp.o -c /home/sergey/Work/dbtest/dbbench/dbbench/test_realm.cpp
In file included from /usr/local/include/cpprealm/sdk.hpp:24,
                 from /home/sergey/Work/dbtest/dbbench/dbbench/test_realm.cpp:16:
/usr/local/include/cpprealm/type_info.hpp:25:10: fatal error: realm/object-store/property.hpp: No such file or directory

I guess some incude files was not installed and add include paths to CMakeLists.txt:

include_directories(SYSTEM "/Work/realm-cpp/realm-core/src/")
include_directories(SYSTEM "/Work/realm-cpp/build.release/realm-core/src/")
include_directories(SYSTEM "/Work/realm-cpp/src/")

With this additions I could compile, but got a lot of link errors:

: && /usr/bin/g++ -DQT_QML_DEBUG -g  CMakeFiles/dbbench.dir/main.cpp.o CMakeFiles/dbbench.dir/test_realm.cpp.o -o dbbench  -Wl,-rpath,/usr/local/lib:  -lfmt  -lcpprealm && :
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `__static_initialization_and_destruction_0(int, int)':
/home/sergey/Work/realm-cpp/src/cpprealm/db.hpp:109: undefined reference to `realm::util::Scheduler::make_default()'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `realm::util::detail::ExceptionWithBacktraceBase::ExceptionWithBacktraceBase()':
/home/sergey/Work/realm-cpp/realm-core/src/realm/util/backtrace.hpp:101: undefined reference to `realm::util::Backtrace::capture()'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `realm::util::File::Streambuf::seekpos(std::fpos<__mbstate_t>, std::_Ios_Openmode)':
/home/sergey/Work/realm-cpp/realm-core/src/realm/util/file.hpp:1315: undefined reference to `realm::util::File::seek(long)'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `realm::util::File::Streambuf::flush()':
/home/sergey/Work/realm-cpp/realm-core/src/realm/util/file.hpp:1323: undefined reference to `realm::util::File::write(char const*, unsigned long)'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `realm::util::detail::ExceptionWithBacktraceBase::~ExceptionWithBacktraceBase()':
/Work/realm-cpp/realm-core/src/realm/util/backtrace.hpp:98: undefined reference to `realm::util::Backtrace::~Backtrace()'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/dbbench.dir/test_realm.cpp.o: in function `realm::LogicError::LogicError(realm::LogicError::ErrorKind)':
/Work/realm-cpp/realm-core/src/realm/exceptions.hpp:405: undefined reference to `vtable for realm::LogicError'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: /Work/realm-cpp/realm-core/src/realm/exceptions.hpp:405: undefined reference to `vtable for realm::LogicError'

I found several static libs in build directory and one by one added to target_link_libraries, and almost eliminated link errors.

link_directories("/Work/realm-cpp/build.release/realm-core/src/realm/"
    "/Work/realm-cpp/build.release/realm-core/openssl/lib/"
    "/Work/realm-cpp/build.release/realm-core/src/realm/object-store/"
    "/Work/realm-cpp/build.release/realm-core/src/realm/sync/"
)

target_link_libraries(dbbench fmt realm realm-object-store realm-sync uv cpprealm)

but finally got unresolved SSL_write@@OPENSSL_1_1_0 I added ssl & crypto to target_link_libraries and then got a lot of new unresolved:

undefined reference to `realm::make_in_realm_history()'
undefined reference to `realm::Status::Status(realm::ErrorCodes::Error, char const*)'
...

Then I fill tired and guess I do something wrong.... Could you help me to build and test cpp-realm application ?

leemaguire commented 2 years ago

Can you try build & install with the branch lm/install mentioned here?

ksubox commented 2 years ago

This branch is much better - all includes was installed (actually I understand that includes are part of realm-core) and I can compile... But not link - libcpprealm.so was not build, so only static libraries were installed:

sudo cmake --build . --target install | grep [.]a
-- Up-to-date: /usr/local/lib/librealm-dbg.a
-- Up-to-date: /usr/local/lib/librealm-parser-dbg.a
-- Up-to-date: /usr/local/lib/librealm-ffi-static-dbg.a
-- Up-to-date: /usr/local/lib/librealm-object-store-dbg.a
-- Up-to-date: /usr/local/lib64/librealm-sync-dbg.a
sudo cmake --build . --target install | grep [.]so

target_link_libraries(dbbench fmt realm-dbg realm-parser-dbg realm-ffi-static-dbg realm-object-store-dbg realm-sync-dbg cpprealm uv ssl crypto)

And I have a lot of unresolved:
undefined reference to `realm::realm_analytics::send()'
undefined reference to `realm::make_in_realm_history()'
...

PS: Actually it was built, but in another folder (src), so I copied to /usr/local/lib and included in target_link_libraries. Anyway a lot of undefined like:

undefined reference to `realm::make_in_realm_history()'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/librealm-object-store-dbg.a(realm_coordinator.cpp.o): in function `realm::_impl::RealmCoordinator::open_db()':
undefined reference to `realm::make_in_realm_history()'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: /usr/local/lib/librealm-object-store-dbg.a(sync_session.cpp.o): in function `realm::SyncSession::download_fresh_realm(realm::sync::ProtocolErrorInfo::Action)::{lambda(realm::sync::SubscriptionSet::State)#1}::operator()(realm::sync::SubscriptionSet::State) const::{lambda(std::error_code)#1}::operator()(std::error_code)':
ksubox commented 2 years ago

Finally I rearranged libraries in target_link_libraries and built executable.

Unfortunately first simplest action - open database crashed:

image

Do you have any idea why?

struct MyRealmObject: realm::object {
    realm::persisted<std::string> _id;
    realm::persisted<std::string> typeId;
    realm::persisted<std::vector<std::string>> keys;

    static constexpr auto schema = realm::schema("MyRealmObject",
                                                 realm::property<&MyRealmObject::_id, true>("_id"), // primary key
                                                 realm::property<&MyRealmObject::typeId>("typeId"),
                                                realm::property<&MyRealmObject::keys>("keys"));
};
leemaguire commented 2 years ago

Very strange, that shouldn't happen. I'll try reproduce on OpenSUSE Tumbleweed.

ksubox commented 2 years ago

With your last commit everything works well. Thank you. Would be good to update realm-core dependency to latest.