Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] New Makefile for building C client

Nick,

I hadn't really thought about it.  Do you think it is likely there is any IP that could cause concern in a Visual Studio project? 

In that case I would probably just create one myself...

Ian

On 30/10/13 22:30, Nicholas O'Leary wrote:
Shouldn't such a contribution go via bugzilla and CLA process?

Nick


On 30 October 2013 22:13, Ian Craggs <icraggs@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi,

sure, I'd like a copy of your Visual Studio project.  Saves me from creating a new one...

Ian



On 30/10/13 17:24, luja wrote:
Hi Ian,

I have a VS-project. Do you like to have it?

paho_dienst is the library,
publish and subscribe are the examples.

With VS it builds, but you also have to add a define in the examples.
See here:

#ifdef WIN32
#include <Windows.h>
#endif


Cheers,


luja




On 10/30/2013 5:57 PM, Ian Craggs wrote:

I don't intend to do, and never did, a cygwin build for Windows - for Windows I would always use a Microsoft compiler and build a native DLL.   The major reason for having a cygwin build would be to allow it to work in the Eclipse IDE, which I admit, is reasonably compelling, as we are an Eclipse project.  I might look into that sometime, but if someone wants to volunteer...

On WIndows, if you have installed Visual Studio C/C++ support, cl.exe is always there (the latest version I've used is 2010).  There is a batch file called vcvars32.bat in the Visual Studio installation directory which will set up paths to point to the command line compiler.

One of the reasons for the condition of the previous Makefile, which was mostly not written by me, is that it attempted to build the clients for many platforms.   Adding all targets for all platforms is a time-consuming job. 

The new Makefile targets Linux to start, with MacOS to follow.

Ian


On 30/10/13 16:24, luja wrote:
Hi Ian,

Hopefully it will be better. The old makefile was really bad.
Make sure, that the examples compile!

have a make install for linux!
what about linux?

regarding windows build:
cl.exe as a c compiler is not there. But I have a C-compiler, as VS2010 is installed

cygwin build also is not nice:
no make install, examples dont compile/link.

Thank you for touching the makefile at all!

Cheers

luja



On 10/30/2013 3:18 PM, Ian Craggs wrote:

I've created a new Makefile for building the C client, in the root directory of the C project on Linux.  I've attempted to conform to as many standards as I could find, like:

http://www.gnu.org/prep/standards/html_node/Standard-Targets.html
http://l4u-00.jinr.ru/usoft/WWW/HOWTO/GCC-HOWTO-6.html

It adds library versioning, targets for install/uninstall, clean and doc.

I intend to do the same for MacOS.  For Windows, I'm planning a Visual Studio project and Ant for automated builds.

I think that will cover the major platforms of interest for now.

Ian


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev




_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/paho-dev


Back to the top