-
Notifications
You must be signed in to change notification settings - Fork 51
openocd build error for macOS #10
Comments
Note that the first screenshot shows:
which implies the steps prescribed in #5 didn't happen properly. I have to wonder whether your "export" commands in the second screenshot may not have created the environmental variables. You can run "export" without arguments to see what HIDAPI_LIBS and PKG_CONFIG_PATH got set to. @citizenfish, would you be able to provide any insight? I am not a Mac user. Thanks. |
I have edited my instructions which may be causing this issue. Run ./bootstrap then ./configure --enable-static --disable-shared But as @majbthrd said we need to see the output of export after the two commands you should see something like this:-
And be able to list the two directories with ls |
I use echo and get this, but I didn't see like `declare ......` |
@Dracanrage, "declare" is not a shell command. If you scroll back, you will see that @citizenfish stated this what you should see output after the "export" command. @Dracanrage, you have not showed a screenshot of following the #5 instructions for building hidapi where "./configure --enable-static --disable-shared" is used. |
@majbthrd Sorry, I'm in the different time zone, I just read the response before.
But I didn't see anything, so I tried them as shell commands to figure out whether it could be used. |
It looks to me like you may be this stage wrong by pasting in both commands at once Follow these instructions:-
You should see a directory listing, if not enter this command then press return and show us the result
|
@citizenfish
|
Doing a web search for “macos openocd cmsis-dap hid” yields this: https://gist.github.com/technobly/f2c14eaa7334db80849d45614250bdf0 The author's instructions call for setting the paths in the same line as part of the configure call, and the author writes "Seems gross to copy the path directly, but trust me it doesn't work unless you do". Please understand that I am NOT SUGGESTING that you copy and paste the instructions exactly as-is, but perhaps this might suggest a path for you to explore for the problem with your particular Mac. |
Thanks! I finally find the problem:
Then re-configure, all will be fine. |
I have referred to the #5, but it didn't work for me.
![image](https://user-images.githubusercontent.com/30333935/118816899-3cae2780-b8e5-11eb-90dd-342131735a0e.png)
![image](https://user-images.githubusercontent.com/30333935/118816929-45066280-b8e5-11eb-9411-10395b5eb4ba.png)
After used that commands, it shows the
error: hidapi is required for the CMSIS-DAP Compliant Debugger
as before.The text was updated successfully, but these errors were encountered: