Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Build on MacOs #2

@CRP

Description

@CRP

Hi, I have been trying to build on macos, but without success so far. Here is where I am currently:

• installed all dependencies successfully with brew
• cloned code
• cmake .. output:

-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.67.0
-- Found pthread: /usr/lib/libpthread.dylib  
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gtkmm-3.0'
--   Found gtkmm-3.0, version 3.22.2
-- Found liquiddsp: /usr/local/lib/libliquid.dylib  
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/user/temp/idso1070-protocol/build

Then I issued make.
Got this error:

/idso1070-protocol/include/IDSO1070.h:30:12: error: implicit instantiation of undefined
      template 'std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >'
    string armFirmwareVersion;
           ^

which I fixed by adding #include <string> in the /idso1070-protocol/include/base.h file

Then I got this:

/idso1070-protocol/lib/connection/USBConnector.cxx:1:
/Users/cprinoth/temp/idso1070-protocol/include/connection/USBConnector.h:18:37: error: use of undeclared
      identifier 'B4000000'
  static const int USBSerialSpeed = B4000000;
                                    ^

which I fixed by just adding #define B4000000 0010017 to idso1070-protocol/include/connection/USBConnector.h

But now I get:

/bin/sh: objcopy: command not found
make[2]: *** [gui-resources] Error 127
make[1]: *** [gui/resources/CMakeFiles/gui-resources.dir/all] Error 2
make: *** [all] Error 2

Not sure how to fix this.

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions