Open iotechFabio opened 3 years ago
try installing libusb-compat: brew install libusb-compat
very similar issue here when trying to brew install mos I'm on a MacBook pro M1, so that might have something to do?
Last 15 lines from /Users/carlosmoyano/Library/Logs/Homebrew/mos/01.make: In file included from vendor/github.com/zserge/webview/webview.go:27: ./webview.h:2252:16: error: too many arguments to function call, expected 0, have 3 objc_msgSend(app, sel_registerName("terminate:"), app);
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:242:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:231:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
141 errors generated.
make: *** [build-mos] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
brew tap cesanta/mos https://github.com/cesanta/homebrew-mos/issues/6
i'll remove dependency on webview
should be fixed now
Hi rojer, I have tried this morning and I have still the same problem :
hmojito~ % brew install mos
==> Installing mos from cesanta/mos
==> Downloading https://github.com/mongoose-os/mos/archive/b8341b5dca25fe86d6e22ce3e574a9413bab9f74.tar.gz
==> Downloading from https://codeload.github.com/mongoose-os/mos/tar.gz/b8341b5dca25fe86d6e22ce3e574a9413bab9f74
#-=#=-# #
==> make mos
Last 15 lines from /Users/hmartin/Library/Logs/Homebrew/mos/01.make:
In file included from vendor/github.com/zserge/webview/webview.go:27:
./webview.h:2252:16: error: too many arguments to function call, expected 0, have 3
objc_msgSend(app, sel_registerName("terminate:"), app);
~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/message.h:62:1: note: 'objc_msgSend' declared here
OBJC_EXPORT void
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:242:25: note: expanded from macro 'OBJC_EXPORT'
# define OBJC_EXPORT OBJC_EXTERN OBJC_VISIBLE
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/objc/objc-api.h:231:28: note: expanded from macro 'OBJC_EXTERN'
# define OBJC_EXTERN extern
^
141 errors generated.
make: *** [build-mos] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
brew tap cesanta/mos https://github.com/cesanta/homebrew-mos/issues/6
I'm getting a slightly different issue, am I missing some SDK pieces here?
==> Installing cesanta/mos/mos
==> make mos
Last 15 lines from /Users/berkus/Library/Logs/Homebrew/mos/01.make:
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_02_override_with_cli/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_06_build_vars_overriding/test_03_extend_with_cli/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_01_app_cond_adds_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_02_lib_cond_adds_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_03_lib_and_app_conds_add_same_lib/libs
warning: ignoring symlink /private/tmp/mos-20210320-28583-1fh7bp/mos-9bf406d90c65fca0b377220940735015dcfbb76c/cli/manifest_parser/test_manifests/testset_08_conds_with_libs/test_04_lib_conds_recursive/libs
go version go1.16.2 darwin/arm64
GOOS= GOARCH= CC= CXX= \
go build -mod=vendor -tags '' -ldflags '-s -w ''' -o mos github.com/mongoose-os/mos/cli
# github.com/cesanta/hid
vendor/github.com/cesanta/hid/hid_darwin.go:6:10: fatal error: 'IOKit/hid/IOHIDManager.h' file not found
#include <IOKit/hid/IOHIDManager.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [build-mos] Error 2
Looks like a problem on big sur/m1 as IOHIDManager.h only exists in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/hid/IOHIDManager.h
Created #8 to track separately.
After follow the Mac OS install process, execute brew tap cesanta/mos, I got the error: