[nanomsg] Re: Mingw32 build ?

  • From: zerotacg <zero@xxxxxxxxxxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Mon, 10 Mar 2014 07:27:03 +0100

hope that helps

assuming that you have
/path/to/nanomsg
and are in /path/to

mkdir nanomsg-build #will create /path/to/nanomsg-build
cd nanomsg-build
cmake ../nanomsg #use native generator
# or specify a generator
#cmake -G "CodeBlocks - MinGW Makefiles" ../nanomsg
make

cmake generates the neccessary files for your generator even eclipse
project files if u specify it so the actual build depends on the
generator but for *nix the default should be make

On 09.03.2014 12:49, Laurent Alebarde wrote:
> Hi zerotacg,
> 
> Could you please send me the command(s) you use to compile nanomsg with
> CMake for MinGW ?
> As I have no skills with CMake, that would help a lot.
> 
> Cheers,
> 
> Laurent.
> 
> 
> Le 04/03/2014 09:10, Laurent Alebarde a écrit :
>> Le 03/03/2014 19:27, zerotacg a écrit :
>>> cross-compile meaning building it on *nix? 
>> yes
>>> I only tried on win
>>> also I did use the CMake build not the autotools one
>> Thanks for the precision
>>> On 03.03.2014 14:48, Laurent Alebarde wrote:
>>>> Thanks zerotacg,
>>>>
>>>> Nothing changed for me, still:
>>>> "configure: error: No signaling supported"
>>>>
>>>>
>>>> Le 01/03/2014 08:26, zerotacg a écrit :
>>>>> you can try my adjustments for mingw [1]
>>>>> the code for windows use some methods that require windows
>>>>> version _WIN32_WINNT=0x0600 though so it's vista and up
>>>>>
>>>>> [1]
>>>>> https://github.com/zerotacg/nanomsg/commit/aa0bf3af8dfec7868664d6cb8a3a9ec17ee55835
>>>>>
>>>>> On 27.02.2014 13:25, Laurent Alebarde wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> I have tried to cross-compile nanomsg with Mingw32, but I have failed.
>>>>>> Probably it is easy, but makefiles and autotools are like Chinese for me.
>>>>>>
>>>>>> Here is my attempt:
>>>>>> http://stackoverflow.com/questions/21954242/how-to-add-a-library-to-the-linker-in-an-existing-autotools-project
>>>>>>
>>>>>> Also failed by *fire*:
>>>>>> https://github.com/nanomsg/nanomsg/issues/212
>>>>>>
>>>>>> Has anyone managed to do it ?
>>>>>>
>>>>>> Laurent
>>>>>>
>>
> 


Other related posts: