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

Update Makefile to build in Cygwin #5

Closed
jpwsutton opened this issue Feb 4, 2016 · 1 comment
Closed

Update Makefile to build in Cygwin #5

jpwsutton opened this issue Feb 4, 2016 · 1 comment
Labels

Comments

@jpwsutton
Copy link
Contributor

migrated from Bugzilla #486095
status UNCONFIRMED severity enhancement in component MQTT-C for 1.2
Reported in version 1.0 on platform PC
Assigned to: Ian Craggs

Original attachment names and IDs:

On 2016-01-19 06:28:14 -0500, Stavros Vagionitis wrote:

Created attachment 259254
Patch for updating the Makefile to build in Cygwin

Hi all,

Recently I needed to build the paho client library in Cygwin, but there was no support in the Makefile. So I made some changes in the Makefile and I was able to build it. I have attached a patch with the changes I made.

Changes

Next following the major changes in order to build the libraries in Cygwin:
- In Cygwin the libraries need executable permissions in order to work,
currently during installation the libraries have only read/write
permissions (-m 0644). Removing the option -m 0644 from the install
command, the libraries are installed with their default permissions.
- The filename format of the libraries in Cygwin is different from Linux and
also have different options to build shared libraries. More information can
be found in https://cygwin.com/cygwin-ug-net/dll.html
- The ldconfig utility does not exist in Cygwin, so the install and uninstall
targets needed to modified.

Testing

I was able to run the test and sample files. The testing has been performed on a Ubuntu 14.04 64 bit and a Windows 7 Enterprise 64 bit machine. The Windows machine had installed Cygwin 2.4.0 64 bit.

Please review my changes.

Regards,

Stavros

On 2016-01-19 13:00:48 -0500, Stavros Vagionitis wrote:

Created attachment 259264
Latest Patch for updating the Makefile to build in Cygwin

Ignore the previous patch, I had added accidentally the CFLAGS of the Darwin to Cygwin. With this patch I removed them.

@icraggs
Copy link
Contributor

icraggs commented Oct 2, 2018

Cygwin build can now be done with CMake.

@icraggs icraggs closed this as completed Oct 2, 2018
@frett27 frett27 mentioned this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants