<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1426536062479_3716"><span id="yui_3_16_0_1_1426536062479_3056"></span><span id="yui_3_16_0_1_1426536062479_3056">Hi Stefan,<br style="" class="">thank you very much for the prompt reply!<br style="" class="">Honestly I don't understand all you wrote although I'll do my best in order to do it.<br style="" class="">In the meantime I'm digging the matter having find some answers to my questions, but seems to me too complicated for me, out of my capabilities.<br style="" class="">OK, I can turn off libusb, but then the program that I'll get will be working?<br style="" class="">I guess it will be.<br style="" class="">Now I understand why nobody provide Windows version of flashrom each time there is an upgrade.<br style="" class="">Only Linux version that it is more easily obtainable.<br style="" class="">You wrote about cross-compiling flashrom for Windows, maybe that is more easy than compiling on a Windows system, which could be one solution.<br style="" class="">By reading http://flashrom.org/Windows page seems to me cross-compiling on Linux for Windows is more complicated though.<br style="" class="">If it isn't too much trouble could you please describe how do the job?<br style="" class="">I mean a description of your MinGW installation and the exact commands issued.<br style="" class="">Instructions on the site say<br style="" class="">$ cd flashrom<br style="" class="">$ make<br style="" class="">are enough in order to compile under Windows.<br style="" class="">Instead on Linux for Windows you need<br style="" class="">$ make CC=i586-mingw32msvc-gcc CPPFLAGS="-I.../libusb-headers/ -I.../libftdi-headers/" LDFLAGS="-L.../libusb-static/ -L.../libftdi-static/"<br style="" class="">If it could be possible to see a real life example I think it would be of much help.<br style="" class="">Another thing.<br style="" class="">In your example you compile with "i686" option while in the instructions on the flashrom Windows site it's used the "i586".<br style="" class="">Compiling by <br style="" class="">$ cd flashrom<br style="" class="">$ make<br style="" class="">there isn't any of the two options, so which option will be used in order to compile?<br style="" class="">My purpose is to get a flahrom executable which will be able to run on any generic Windows machine.<br style="" class="">Snapshots on http://ra.openbios.org/~idwer/flashrom/mingw/ I guess have been compiled in that way, apart from the mingw32-w64-flashrom-r1781.exe of course.<br></span></div><div id="yui_3_16_0_1_1426536062479_4570" dir="ltr">Thanks again Stefan,</div><div id="yui_3_16_0_1_1426536062479_4571" dir="ltr"><br></div><div id="yui_3_16_0_1_1426536062479_4572" dir="ltr">Mit Freundlichen Grüßen,</div><div id="yui_3_16_0_1_1426536062479_4811" dir="ltr"><br></div><div id="yui_3_16_0_1_1426536062479_4812" dir="ltr">Topolinux<br><span id="yui_3_16_0_1_1426536062479_3056"></span></div><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> Il Lunedì 16 Marzo 2015 12:00, "flashrom-request@flashrom.org" <flashrom-request@flashrom.org> ha scritto:<br> </font> </div>  <br><br> <div class="y_msg_container">Send flashrom mailing list submissions to<br>    <a ymailto="mailto:flashrom@flashrom.org" href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    <a href="http://www.flashrom.org/mailman/listinfo/flashrom" target="_blank">http://www.flashrom.org/mailman/listinfo/flashrom</a><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:flashrom-request@flashrom.org" href="mailto:flashrom-request@flashrom.org">flashrom-request@flashrom.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:flashrom-owner@flashrom.org" href="mailto:flashrom-owner@flashrom.org">flashrom-owner@flashrom.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of flashrom digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Compile under MinGW32, how? (Stefan Tauner)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Sun, 15 Mar 2015 23:14:51 +0100<br>From: Stefan Tauner <<a ymailto="mailto:stefan.tauner@alumni.tuwien.ac.at" href="mailto:stefan.tauner@alumni.tuwien.ac.at">stefan.tauner@alumni.tuwien.ac.at</a>><br>To: Topolinux <<a ymailto="mailto:mailing_l1st@yahoo.it" href="mailto:mailing_l1st@yahoo.it">mailing_l1st@yahoo.it</a>><br>Cc: <a ymailto="mailto:flashrom@flashrom.org" href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a><br>Subject: Re: [flashrom] Compile under MinGW32, how?<br>Message-ID: <<a ymailto="mailto:201503152214.t2FMEqKP009468@mail2.student.tuwien.ac.at" href="mailto:201503152214.t2FMEqKP009468@mail2.student.tuwien.ac.at">201503152214.t2FMEqKP009468@mail2.student.tuwien.ac.at</a>><br>Content-Type: text/plain; charset=UTF-8<br><br>On Sun, 15 Mar 2015 20:41:22 +0000 (UTC)<br>Topolinux <<a ymailto="mailto:mailing_l1st@yahoo.it" href="mailto:mailing_l1st@yahoo.it">mailing_l1st@yahoo.it</a>> wrote:<br><br>> Hi guys,<br>> sorry to disturb you.<br>> Based on instructions I saw here:<br>> <a href="http://flashrom.org/Windows" target="_blank">http://flashrom.org/Windows</a><br>> I installed MinGW32 on my Windows XP machine in order to try to compile the latest flashrom release which I need.<br>> Sadly I'm unable to compile anything because I get the errors as follow:<br>> <br>> **************************************************************************************<br>> $ make<br>> Files don't seem to be under version control. Replacing all version templates wi<br>> th 0.9.8-r1888.<br>> Package libftdi was not found in the pkg-config search path.<br>> Perhaps you should add the directory containing `libftdi.pc'<br>> to the PKG_CONFIG_PATH environment variable<br>> No package 'libftdi' found<br>> Package libusb was not found in the pkg-config search path.<br>> Perhaps you should add the directory containing `libusb.pc'<br>> to the PKG_CONFIG_PATH environment variable<br>> No package 'libusb' found<br>> Checking for a C compiler... found.<br>> Target arch is x86<br>> Target OS is MinGW<br>> Checking for libusb-0.1/libusb-compat headers... .test.c:3:23: fatal error: lusb<br>> 0_usb.h: No such file or directory<br>> ?#include <lusb0_usb.h><br>> ?????????????????????? ^<br>> compilation terminated.<br>> not found.<br>> <br>> Please install libusb-0.1 headers or libusb-compat headers.<br>> See README for more information.<br>> <br>> make: *** [hwlibs] Error 1<br>> **************************************************************************************<br>> <br>> A weird thing is that I had to manually install the pkg-config package, that isn't listed in the instructions.<br>> Anyway I'm pretty sure I have all the files in the right places and I guess my fault is due the fact I'm not able to figure how and where edit the PKG_CONFIG_PATH that indeed I haven't in nowhere.<br>> I wonder where I can see an example of PKG_CONFIG_PATH, any suggestions?<br>> Thanks.<br>> I need compile flashrom for Bus Pirate, so is there any mandatory flag that have to be set?<br>> Honestly I didn't know it was so complicated to compile for Windows, by read of the instructions it seemed to me pretty easy, but it isn't.<br>> Is perhaps there any documentations that explain clearly how do the job?<br>> I think that a description of the folders and the files inside them can be enough in order to understand, sadly I have seen nothing like that.<br>> Last but not least.<br>> Maybe I'm wrong, though seems to me that the way as MinGW is installed allows to move the installation easily, almost like an portable application.<br>> Am I wrong?<br>> If I'm not wrong this means that should be possible achieve a running environment if someone would provide one.<br>> Anyway I'm pretty sure that being be able to see a working installation would help to settle the matter.<br>> Thanks for reading!<br><br>The documentation is not up to date. flashrom requires libusb now at<br>build time because of the inclusion of a libusb-based programmer. You<br>can turn it off (and thus enable compilation without libusb) by adding<br>CONFIG_PICKIT2_SPI=no to the command line (for now).<br><br>I am only cross-compiling flashrom for windows so I am not sure if that<br>helps you, but there I am using the newly introduced LIBS_BASE make<br>parameter to indicate the path containing the include and lib<br>directories with the respective header and library files like so:<br><br>make LIBS_BASE=/home/flashrom/cross-libs/i686-w64-mingw32<br><br>The layout within that directory should look like the common unix<br>layout, i.e. /lib containing *.a, /bin with *.dll and /include with *.h<br>files.<br><br>The PKG_CONFIG_PATH message can be ignored usually. The default will<br>probably work anyway.<br><br>-- <br>Kind regards/Mit freundlichen Gr??en, Stefan Tauner<br><br><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>flashrom mailing list<br><a ymailto="mailto:flashrom@flashrom.org" href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a><br><a href="http://www.flashrom.org/mailman/listinfo/flashrom" target="_blank">http://www.flashrom.org/mailman/listinfo/flashrom</a><br><br>------------------------------<br><br>End of flashrom Digest, Vol 70, Issue 28<br>****************************************<br><br><br></div>  </div> </div>  </div> </div></body></html>