iCopy-X-Community / icopyx-community-pm3

GNU General Public License v2.0
28 stars 2 forks source link

/src/fido/cbortools.h:34:56: error: unknown type name 'CborEncoder #1

Open lucyxss opened 2 years ago

lucyxss commented 2 years ago

i'm m1 macbook pro ,when i build icopyx-community-pm3 ,error ./src/fido/cbortools.h:34:56: error: unknown type name 'CborEncoder'

➜ icopyx-community-pm3-4.13441 uname -a Darwin-Pro.local 21.2.0 Darwin Kernel Version 21.2.0: Sun Nov 28 20:28:41 PST 2021; root:xnu-8019.61.5~1/RELEASE_ARM64_T6000 arm64

` ➜ icopyx-community-pm3-4.13441 make all BREW_PREFIX=/opt/homebrew PLATFORM=PM3RDV4

=================================================================== Platform name: Proxmark3 RDV4 PLATFORM: PM3RDV4 PLATFORM_SIZE: 512 Platform extras: No extra selected Included options: SMARTCARD FLASH -DRDV4 LF HITAG EM4x50 EM4x70 ISO15693 LEGICRF ISO14443b ISO14443a ICLASS FELICA NFCBARCODE HFSNIFF HFPLOT Standalone mode: HF_MSDSAL

[*] MAKE client/all

Client platform: Darwin GUI support: QT5 found, enabled () native BT support: Bluez not found, disabled Jansson library: system library not found, using local library Lua library: system library not found, using local library Python3 library: Python3 not found, disabled Readline library: enabled Whereami library: system library not found, using local library Lua SWIG: wrapper found Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 compiler version: Apple clang version 13.0.0 (clang-1300.0.29.30)

[-] CC src/cmdhffido.c In file included from src/cmdhffido.c:32: ./src/fido/cbortools.h:24:29: error: unknown type name 'CborEncoder' int JsonToCbor(json_t elm, CborEncoder encoder); ^ ./src/fido/cbortools.h:26:23: error: unknown type name 'CborParser' int CborMapGetKeyById(CborParser parser, CborValue map, uint8_t data, size_t dataLen, int key); ^ ./src/fido/cbortools.h:26:43: error: unknown type name 'CborValue' int CborMapGetKeyById(CborParser parser, CborValue map, uint8_t data, size_t dataLen, int key); ^ ./src/fido/cbortools.h:27:1: error: unknown type name 'CborError' CborError CborGetArrayBinStringValue(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:27:38: error: unknown type name 'CborValue' CborError CborGetArrayBinStringValue(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:28:1: error: unknown type name 'CborError' CborError CborGetArrayBinStringValueEx(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen, uint8_t delimiter, size_t delimiterlen); ^ ./src/fido/cbortools.h:28:40: error: unknown type name 'CborValue' CborError CborGetArrayBinStringValueEx(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen, uint8_t delimiter, size_t delimiterlen); ^ ./src/fido/cbortools.h:29:1: error: unknown type name 'CborError' CborError CborGetBinStringValue(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:29:33: error: unknown type name 'CborValue' CborError CborGetBinStringValue(CborValue elm, uint8_t data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:30:1: error: unknown type name 'CborError' CborError CborGetArrayStringValue(CborValue elm, char data, size_t maxdatalen, size_t datalen, char delimiter); ^ ./src/fido/cbortools.h:30:35: error: unknown type name 'CborValue' CborError CborGetArrayStringValue(CborValue elm, char data, size_t maxdatalen, size_t datalen, char delimiter); ^ ./src/fido/cbortools.h:31:1: error: unknown type name 'CborError' CborError CborGetStringValue(CborValue elm, char data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:31:30: error: unknown type name 'CborValue' CborError CborGetStringValue(CborValue elm, char data, size_t maxdatalen, size_t datalen); ^ ./src/fido/cbortools.h:32:1: error: unknown type name 'CborError' CborError CborGetStringValueBuf(CborValue elm); ^ ./src/fido/cbortools.h:32:33: error: unknown type name 'CborValue' CborError CborGetStringValueBuf(CborValue elm); ^ ./src/fido/cbortools.h:34:56: error: unknown type name 'CborEncoder' int CBOREncodeElm(json_t root, const char rootElmId, CborEncoder encoder); ^ ./src/fido/cbortools.h:35:1: error: unknown type name 'CborError' CborError CBOREncodeClientDataHash(json_t root, CborEncoder encoder); ^ ./src/fido/cbortools.h:35:50: error: unknown type name 'CborEncoder' CborError CBOREncodeClientDataHash(json_t root, CborEncoder *encoder); ^ 18 errors generated. make[1]: [obj/cmdhffido.o] Error 1 make: [client/all] Error 2 ➜ icopyx-community-pm3-4.13441`

skynet01 commented 1 year ago

Would be nice if there was an updated guide on how to build install this on a mac as the guide in this repo doesn't work. I also get an error but a different one, I think we are both doing it wrong. Did you ever get it working?