Skip to content

Compiling the core library on Linux(ubuntu) #45

@idykman

Description

@idykman

trying to compile the core lib under ubuntu using https://github.com/breadwallet/breadwallet-core/blob/master/Java/Core/CMakeLists.txt and facing several problems:

  1. core/support/BRAssert.c:196:42: error: ‘PTHREAD_MUTEX_RECURSIVE’ undeclared
    Solved by CFLAG _XOPEN_SOURCE=600

  2. core/support/BRFileService.c:286:33: error: ‘DT_REG’ undeclared (first use in this function)
    Solved by CFLAG _GNU_SOURCE

  3. Required code change:
    core/support/BRAssert.c:138:5: error: too few arguments to function ‘pthread_setname_np’

core/src/main/cpp/core/support/BRInt.h:138:31: error: initializer element is not constant
#define uint256(s) ((UInt256) { .u8 = {
^
Can you help me with those issues? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions