I am having an issue compiling the M2X library. I tried to follow the steps listed on the webite but none of them seem to work. My network keeps me from cloning from github. This is no problem since I could just download the files directly from the site. However when I type in "make setup" from the git bash I get a response that the make command is not found. I have eclipse, visual studio and MinGW installed on my computer. How can I link the make file from one of these to the git bash, or use one of these tools to directly create the library? I have tried updating my environmental variable "PATH" to include the MinGW make file but the bash still didn't look into that folder after it was added (I confirmed where the bash was looking for the make file with the command "which").
Any help with getting the M2X library would be much appreciated. Thank you in advanced.
Re: How to Compile M2X library 10.16.2015 01:08 PM
I am trying to compile the m2x-c-mqtt library found here.
I am on a Windows 8.1 Enterprise OS.
I first download the source code by clicking the Download Zip button found in the link supplied. I then unzip the source code into a folder on the computer. Next I downloaded the code for Paho and frozen by following the links provided in the 'Setup' section of the link supplied. I place both of these source codes in the Vendor sub-folder of the m2x-c-mqtt folder. Finally I opened up a git bash by navigating to the folder where the m2x-c-mqtt source is located, right clicking and selecting "Git Bash here'. Finally I type in the command 'make setup' and receive the error "bash: make: command not found".
I tried to resolve this error by typing in 'which make'. I saw the location of the MinGW mingw32-make.exe was not listed. So I went into my environmental variables and added this folder location to the "PATH" variable. Then I typed into the git bash alias make = 'mingw32-make.exe' Then I typed 'make setup', but got the same error. Finally I typed 'which make' again and saw the bash was still not searching in the proper folder. I then tried reseting the computer with the new "PATH" variable, and followed the same steps above, but receieve the same error.
Re: How to Compile M2X library 10.21.2015 07:56 AM
Thank you for your reply, I have not tried running the make from a different console. It will be a couple more days but I will try the fix you posted when I return from my current business trip and let you know how it goes. Once again, thank you for the information and your help.