Page 1 of 1

Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 1:51 pm
by steved
When trying to start OpenOCD, I got a message "missing dll libgcc_s_dw2-1.dll".
One option is to copy the file fromChibiStudio/tools/gnutools/bin to ChibiStudio/tools/openocd/bin
(I start OpenOCD from a batch file in the project directory, so maybe the dll isn't in the path).

Re: Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 3:12 pm
by RoccoMarco
Or maybe you can set the path in your bat file...
set PATH=C:\ChibiStudio\tools\gnutools\bin;%PATH%

I will add this dll by default in the next built

Re: Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 3:25 pm
by Giovanni
Could it be compiled to not use DLLs?

Giovanni

Re: Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 3:43 pm
by RoccoMarco
I have to check this. BTW it is good as is for standard use (since the dll is added by the chibistudio start batch file)

Re: Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 5:45 pm
by steved
Giovanni wrote:Could it be compiled to not use DLLs?

Giovanni

Some of the comments on playembedded suggest its just a compiler switch.

(I could add paths to a batch file, but I prefer to keep as much as possible position-independent, since I don't always have Chibi installed on the same drive. And I'm not keen on long search paths)

Re: Chibi 18 missing DLL for OpenOCD

Posted: Tue Jun 27, 2017 10:50 pm
by RoccoMarco
It seems that link gcc statically would require an edit to the PKGBUILD which actually is a kind of standard.
Right now I have solved the problem adding the missing dll taking it from the compiler used to build openocd. I have also updated the related article on PLAY Embedded.

I will ask to Alexpux (the maintainer of PKGBUILD) if it makes any sense to create an alternative PKGBUILD to link dlls statically.

Attached the latest version of OpenOCD. Can you try it? If it is good I will create another ChibiStudio package. (Preview 19)
Thanks for reporting.

EDIT: tested on my side and it works

Re: Chibi 18 missing DLL for OpenOCD

Posted: Wed Jun 28, 2017 1:18 pm
by steved
All fine - 'just works' now.