Skip to content
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

Manually specify the port #11

Open
WayneKeenan opened this issue May 25, 2020 · 13 comments
Open

Manually specify the port #11

WayneKeenan opened this issue May 25, 2020 · 13 comments

Comments

@WayneKeenan
Copy link

The macOS port list function doesn't find my FTDI based Sparkfun ESP32 Thing USB CDC/serial port. Obviously it would be nice to fix the underlying enum issue, but instead of any potential wack'a'mole-ing...

It would be helpful to be able to manually specify a port (as a command line arg or in the GUI) instead of only allowing selection from a pre-populated list.

@matteocarnelos
Copy link

Hey @WayneKeenan, I solved this issue by manually building the latest version of the application hosted in this repo:

$ brew install wxwidgets
$ git clone https://github.com/PaulStoffregen/MotionCal
$ cd MotionCal
[comment `OS = LINUX` and uncomment `OS = MACOSX_CLANG` in `Makefile`]
$ make

And finally you can open MotionCal.app.

Here's the version I built: MotionCal.app.zip

@WayneKeenan
Copy link
Author

Thanks. I'll give it a go at some point, just that I can't remember what I was using this for now lol. (Will have to check notes / projects)

@IanBUK
Copy link

IanBUK commented Jul 16, 2022

Hey @WayneKeenan, I solved this issue by manually building the latest version of the application hosted in this repo:

$ brew install wxwidgets
$ git clone https://github.com/PaulStoffregen/MotionCal
$ cd MotionCal
[comment `OS = LINUX` and uncomment `OS = MACOSX_CLANG` in `Makefile`]
$ make

And finally you can open MotionCal.app.

Here's the version I built: MotionCal.app.zip

On Monterey, M1 MacBook Air, I get the following:

Warning: No available formula with the name "wxwidgets".
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.```

@IeiuniumLux
Copy link

I get the same errors like @IanBUK, is OSX Monterey supported?

@matteocarnelos
Copy link

@IeiuniumLux it should be supported (see here). It seems that the error is related to the homebrew installation, this StackOverflow question might help.

@IeiuniumLux
Copy link

@matteocarnelos,

I have wxwidgets installed, but the problem is that it doesn't list the port for the device connected to the Mac.

Screenshot 2023-01-02 at 3 42 30 PM

@SouthernAtHeart
Copy link

I too am trying to use the MotionCal software or my MacBook, and it doesn't list any ports, as in the above photo...

@mhaberler
Copy link

mhaberler commented Apr 12, 2023

I just tried on a M1 Macbook with Ventura 13.3.1

brew install wxwidgets
version I got: wxwidgets 3.2.2.1

add -arch arm64 to CFLAGS and build for OS = MACOSX_CLANG

make
open MotionCal.app

works for me!

diff --git a/Makefile b/Makefile
index 83a8d7a..a41dbb8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-OS = LINUX
+#OS = LINUX
 #OS = MACOSX
-#OS = MACOSX_CLANG
+OS = MACOSX_CLANG
 #OS = WINDOWS

 ifeq ($(OS), LINUX)
@@ -32,10 +32,10 @@ else ifeq ($(OS), MACOSX_CLANG)
 ALL = MotionCal.app
 CC = /usr/bin/clang
 CXX = /usr/bin/clang++
-CFLAGS = -O2 -Wall -DMACOSX
+CFLAGS = -O2 -Wall -DMACOSX -arch arm64
 WXCONFIG = wx-config
 WXFLAGS = `$(WXCONFIG) --cppflags`
-CXXFLAGS = $(CFLAGS) `$(WXCONFIG) --cppflags`
+CXXFLAGS = $(CFLAGS) `$(WXCONFIG) --cppflags`
 SFLAG =
 CLILIBS = -lglut -lGLU -lGL -lm
 VERSION = 0.01

image

@virtyaluk
Copy link

The provided MacOS executable doesn't work for me. Building from the source also didn't help to fix the empty list of ports. Managed to get a working port list on the latest Windows 10, but the app doesn't seem to listen to the data coming from MCU at all. Had to consider an alternative and most importantly working solution - MagCal.

@UnexpectedMaker
Copy link

I know it's been a while... I also just had this issue on macOS 14.1.2 on an M2 Max - but I followed @mhaberler 's steps and I re-compiled (with a few errors in the output) but it worked, and I see the ports in the list and I am able to use the tool.

@PipoPL
Copy link

PipoPL commented Feb 19, 2024

I had the same issue but just built the app with @mhaberler 's instructions and it worked ! MacOs Monterrey 12.1.
thank you !

@josephlarralde
Copy link

Same here on Ventura 13.5 on a Apple M2 Max, thanks @mhaberler !

@chunghay
Copy link

chunghay commented Oct 15, 2024

I had the same issue on macOS Sonoma 14.6.1 on a MacBook Pro with Intel core, and @mhaberler's instructions worked!

In case others benefit from a more detailed explanation of the instructions, I listed them below:

Delete any earlier instances of MotionCal.app, e.g. one that was created from the .dmg file

Then in the terminal, run this to get the software for displaying GUIs:

brew install wxwidgets

Continue in the terminal with these commands to get the source code:

cd /Applications
git clone https://github.com/PaulStoffregen/MotionCal.git

In the terminal, go to the created folder:

cd MotionCal
open .

You should see the folder "MotionCal" open in a separate window. Find the file "Makefile" and open it in a text editor. Make the following changes (to get what's in bold) and save the file:

  • Comment out the Linus OS row…
    • OS = LINUX --> #OS = LINUX
  • Uncomment the MACOSX_CLANG option row…
    • #OS = MACOSX_CLANG --> OS = MACOSX_CLANG
  • Add “-arch arm64” at the end of the MACOS CFLAGS row…
    • CFLAGS = -O2 -Wall -DMACOSX --> CFLAGS = -O2 -Wall -DMACOSX -arch arm64

Then in the terminal (you should be in /Applications/MotionCal), compile the code:
make

Now you can open the created app:
open MotionCal.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests