Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Mosquitto source file

Hi Guy,

You can use gcc under ios, but the straight make files make
assumptions about naming that is incompatible with ios. It's easier to
use cmake:

>From the source directory:

mkdir build
cd build
cmake ..
make

There are brew recipes for mosquitto as well.

Cheers,

Roger



On Mon, Sep 29, 2014 at 3:21 PM, Guy Dillen <guy.dillen@xxxxxxxxx> wrote:
> Hi Roger,
>
> Many thanks. I used for building an IOS client the code under ³lib" (as
> you mentioned) + config.h. I built the code in Xcode. I suppose to build
> for IOS I can¹t use gcc command?
>
> Thanks.
> Guy
>
>
> On 29/09/14 16:14, "Roger Light" <roger@xxxxxxxxxx> wrote:
>
>>Hi Guy,
>>
>>The client library code is exclusively in the "lib" directory. To
>>build the broker you use the code from src, plus some from lib. I hope
>>the make files under lib and src make that sufficiently clear. If
>>you're using neither straight make nor cmake+make to do the
>>compilation, you should also take a look at the config.mk file to see
>>the compile time options that are available. Basically when compiling
>>the client library you may want to define WITH_TLS, WITH_TLS_PSK and
>>so on as described. In gcc you would do:
>>
>>gcc -DWITH_TLS ...
>>
>>I hope that helps.
>>
>>Cheers,
>>
>>Roger
>>
>>
>>On Mon, Sep 29, 2014 at 2:48 PM, Guy Dillen <guy.dillen@xxxxxxxxx> wrote:
>>> Hi,
>>>
>>> The source bundle has under its root Œconfig.h¹ and has  Œlib¹ and
>>>Œsrc¹
>>> source code folders (*.h and *.c). To build IOS client version I used
>>> config.h and the code under lib (*.c and *.h). Is this the correct code
>>>I
>>> need? What¹s the difference between all (lib and src folders) available
>>> source code? Can someone explain When to use what?
>>>
>>> Thanks.
>>> Guy
>>>
>>>
>>> _______________________________________________
>>> mosquitto-dev mailing list
>>> mosquitto-dev@xxxxxxxxxxx
>>> To change your delivery options, retrieve your password, or unsubscribe
>>>from
>>> this list, visit
>>> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
>>_______________________________________________
>>mosquitto-dev mailing list
>>mosquitto-dev@xxxxxxxxxxx
>>To change your delivery options, retrieve your password, or unsubscribe
>>from this list, visit
>>https://dev.eclipse.org/mailman/listinfo/mosquitto-dev
>
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


Back to the top