-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: macos compatibility #673
Conversation
should be fixed with commit to #650 , please check |
#define BAUDRATE_HIGH B921600 | ||
#else | ||
#define BAUDRATE_HIGH 230400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The MacSDK's termios.h in /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/termios.h shows these definitions at line 316:
#endif
/*
* Standard speeds
*/
#define B0 0
#define B50 50
#define B75 75
#define B110 110
#define B134 134
#define B150 150
#define B200 200
#define B300 300
#define B600 600
#define B1200 1200
#define B1800 1800
#define B2400 2400
#define B4800 4800
#define B9600 9600
#define B19200 19200
#define B38400 38400
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
#define B7200 7200
#define B14400 14400
#define B28800 28800
#define B57600 57600
#define B76800 76800
#define B115200 115200
#define B230400 230400
#define EXTA 19200
#define EXTB 38400
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
I assumed the highest baudrate reliably supported is 230400.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR on Darwin you have to use IOSSIOSPEED to set non-standard speed and it works at least on FTDI for the 921600
When trying to compile on macOS:
Note that all I really want is |
You are missing a library. Use |
For macos autogen.sh has to be started with
--prefix=/opt/local
.There is still an issue with target
install-data-hook
, but ebusd and tools are working.I did a quick check building and installing on Debian. That still works, but I didn't test the result.
The VERSION needed to be renamed, as it was generating errors when was imported.