[PD] Compiling with msys2
Dan Wilcox
danomatika at gmail.com
Thu Jul 27 08:28:36 CEST 2017
I believe you can make install in Millers Windows make files to populate the bin folder.
enohp ym morf tnes
-----------
Dan Wilcox
danomatika.com
robotcowboy.com
> On Jul 27, 2017, at 5:19 AM, Christof Ressi <christof.ressi at gmx.at> wrote:
>
> good news: I've just managed to get a working pd.exe + pd.dll with only MinGW and it also works with externals! installing is still a big mess, but that's another story...
>
> I used the makefile.mingw which is lying around in the 'src' folder but I had to change two lines (see the attached diff). this also fixed the ASIO search paths issues for compiling portaudio and it works without a local copy of libstdc++-6.dll.
>
> you have to create an empty 'bin' folder in 'pure-data', then you can cd to 'src' and type
>
> make -f makefile.mingw
>
> pd.exe and pd.dll will show up in pure-data/bin. note that the externals in extra are not being built.
>
> makefile.mingw is independent from autotools but it can be a point of reference.
>
> @Miller: there is no pd.lib involved. you could make one from pd.def and the header files if you want:
> http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
> but where do you actually need it? the only place I can think of is when building externals with MSVC because of implicit linking...
>
> Christof
>
>
>
>
>
>
>
>> Gesendet: Donnerstag, 27. Juli 2017 um 01:56 Uhr
>> Von: "Miller Puckette" <msp at ucsd.edu>
>> An: "Lucas Cordiviola" <lucarda27 at hotmail.com>
>> Cc: "Christof Ressi" <christof.ressi at gmx.at>, Pd-List <pd-list at lists.iem.at>
>> Betreff: Re: [PD] Compiling with msys2
>>
>> Thanks, that looks helpful... I'm not going to touch this for a while
>> though :)
>>
>>
>>> On Wed, Jul 26, 2017 at 11:22:41PM +0000, Lucas Cordiviola wrote:
>>> Thanks for verbosing it.
>>>
>>> I'm totally naive on compiling but now that you mention it i searched it
>>> and found this:
>>>
>>> https://wiki.videolan.org/GenerateLibFromDll
>>>
>>> http://www.mingw.org/wiki/MSVC_and_MinGW_DLLs
>>>
>>> http://www.mingw.org/wiki/createimportlibraries
>>>
>>> Not sure if is helpful.
>>>
>>> --
>>> Mensaje telepatico asistido por maquinas.
>>>
>>>
>>>
>>>> On 7/26/2017 7:04 PM, Miller Puckette wrote:
>>>> Interesting... FWIW I wasn't able to get externals working either (I'm
>>>> cross compiling with mingw on a linux box, so I believe it's pretty much the
>>>> same compiler you're using). I discovered that I had to build a whole second
>>>> copy of Pd using MSVC, and then (don't laugh... actually, yes, laugh) cop
>>>> pd.lib from teh MSVC build over to the mingw one. So everything in the Pd
>>>> release is mingw except pd.lib.
>>>>
>>>> I believe pd.lib contains no code, just a sort of index into pd.dll that an
>>>> extern needs at link time. I think I was able to get mingw to make a .lib file
>>>> OK, but that externs linked against it would then crash. I've been meaning to
>>>> revisit this someday, perhaps for 0.49 when I try to get 64 bit Windows
>>>> builds to work.
>>>>
>>>> cheers
>>>> Miller
>>>>
>>>> On Wed, Jul 26, 2017 at 10:53:59PM +0200, Christof Ressi wrote:
>>>>>> Compiling with msys2 is straight forward?
>>>>> no, not at all :-) but Dan will be working on it and I'll try my best to help.
>>>>>
>>>>> I manage to get a working static build with ASIO support but externals (apart from the extra folder) don't work. Yesterday I've justed summed up the remaining major issues here:
>>>>>
>>>>> https://lists.puredata.info/pipermail/pd-dev/2017-07/021194.html
>>>>>
>>>>> but I can definitely do the wiki once the build system works!
>>>>>
>>>>> Christof
>>>>>
>>>>>> Gesendet: Mittwoch, 26. Juli 2017 um 21:44 Uhr
>>>>>> Von: "Lucas Cordiviola" <lucarda27 at hotmail.com>
>>>>>> An: "Christof Ressi" <christof.ressi at gmx.at>, "Dan Wilcox" <danomatika at gmail.com>
>>>>>> Cc: "Miller Puckette" <msp at ucsd.edu>, Pd-List <pd-list at lists.iem.at>
>>>>>> Betreff: Compiling with msys2
>>>>>>
>>>>>> Hi Christof,
>>>>>>
>>>>>> Compiling with msys2 is straight forward?
>>>>>>
>>>>>> Can you describe briefly for us?
>>>>>>
>>>>>> I'll try it & possibly make a "how-to" on pd.info wiki.
>>>>>>
>>>>>> Or can you do the wiki?
>>>>>>
>>>>>>
>>>>>>> On 7/25/2017 10:05 AM, Christof Ressi wrote:
>>>>>>> OK, just compiled Pd with ASIO + MMIO with msys2 and the drop down menus look fine.
>>>>>> --
>>>>>> Mensaje telepatico asistido por maquinas.
>>>>>>
>>>>>>
>>>>> _______________________________________________
>>>>> Pd-list at lists.iem.at mailing list
>>>>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
>>>
>>> --
>>> Mensaje telepatico asistido por maquinas.
>>>
> <makefile.mingw.diff>
More information about the Pd-list
mailing list