[flext] Building Flext on Windows... anyone got it working?
Thomas Grill
gr at grrrr.org
Tue May 16 11:52:56 CEST 2017
Hi Jamie,
great!
A pull request is always good. It helps to try out things.
I will try to find a general solution.
best, Thomas
> Am 16.05.2017 um 11:50 schrieb Jamie Bullock <jamie at jamiebullock.com>:
>
>
> HI again,
>
> I’ve now got this building and linking on Windows.
>
> I’ll post some instructions at some point as I had to generate a VS config file and then rename it to config-win-pd-gcc.txt otherwise the build system (under MSYS) generates something more like a Mac config file.
>
> Regarding the error below, I had to replace TimerVars<>::perffrq with TimerVars::perffrq and in some places perffrq with TimerVars::perffrq. I can send a pull request for this if you like? However, I think this will break builds on Windows when FLEXT_INLINE is defined. A better solution would be to either remove FLEXT_INLINE entirely or use the FLEXT_TEMPLATE macros, but I couldn’t really understand those or get them to work.
>
> best,
>
> Jamie
>
>
>
>> On 10 May 2017, at 23:03, Jamie Bullock <jamie at jamiebullock.com <mailto:jamie at jamiebullock.com>> wrote:
>>
>>
>> Thanks Thomas for the quick reply.
>>
>> Compiling with MSYS, I get a bit further, but it fails with:
>>
>> g++ -c -O3 -DFLEXT_USE_SIMD -DNDEBUG -DFLEXT_EXPORTS -DFLEXT_SYS=2 -DPD -D_WIN32_WINNT=0x500 -I pd-msvc/release-single -I"/c/Program Files (x86)/Pd"\src -I"/c/Program Files (x86)/Pd"/src -I"/c/Program Files (x86)/Pd"/include -I"/c/Program Files (x86)/Pd"/include/pd -I"/c/Program Files (x86)/Pd"\flext\source\lockfree source/fltimer.cpp -o pd-msvc/release-single/fltimer.opp
>> source/fltimer.cpp: In function 'double getstarttime()':
>> source/fltimer.cpp:51:41: error: 'TimerVars' is not a template
>> if(QueryPerformanceFrequency(&frq)) TimerVars<>::perffrq = (double)frq.QuadPart;
>> ^
>> source/fltimer.cpp:51:62: error: qualified-id in declaration before '=' token
>> if(QueryPerformanceFrequency(&frq)) TimerVars<>::perffrq = (double)frq.QuadPart;
>> ^
>> source/fltimer.cpp: In static member function 'static double flext_single::GetOSTime()':
>> source/fltimer.cpp:64:8: error: 'perffrq' was not declared in this scope
>> if(perffrq && QueryPerformanceCounter(&cnt))
>> ^
>> source/fltimer.cpp:65:27: error: 'TimerVars' is not a template
>> tm = cnt.QuadPart/TimerVars<>::perffrq;
>> ^
>> source/fltimer.cpp: In static member function 'static void flext_single::Sleep(double)':
>> source/fltimer.cpp:109:8: error: 'perffrq' was not declared in this scope
>> if(perffrq && QueryPerformanceCounter(&cnt)) {
>> ^
>> make[1]: *** [pd-msvc/release-single/fltimer.opp] Error 1
>> make[1]: Leaving directory `/c/flext'
>> make: *** [build-release-single] Error 2
>>
>>
>> Any ideas?
>>
>>
>>> On 10 May 2017, at 22:29, Thomas Grill <gr at grrrr.org <mailto:gr at grrrr.org>> wrote:
>>>
>>> Hi Jamie,
>>> i suggest to use a linux-like environment such as mingw, also providing gcc and other tools.
>>> I am pretty sure that the Visual Studio or whatever it is called these days has changed enough to be incompatible with the project files that some objects provide.
>>> best, Thomas
>>>
>>> --
>>> Thomas Grill
>>> http://grrrr.org <http://grrrr.org/>
>>>
>>>
>>>
>>>> Am 10.05.2017 um 23:25 schrieb Jamie Bullock <jamie at jamiebullock.com <mailto:jamie at jamiebullock.com>>:
>>>>
>>>>
>>>> Hi list,
>>>>
>>>> I asked about this a few years ago and didn’t manage to get Flext building on Windows, and now I’m trying again…
>>>>
>>>> My first approach is to use nmake and the command line. This fails immediately compiling flbase with:
>>>>
>>>>> c:\flext\source\flstdc.h(24): fatal error C1083: Cannot open include file: 'cmath': No such file or directory
>>>>
>>>> Has anyone managed to compile Flext on Windows in recent years? If so, what’s the best approach? What extra steps are needed?
>>>>
>>>>
>>>> Jamie
>>>>
>>>> _______________________________________________
>>>> http://grrrr.org/ext/flext <http://grrrr.org/ext/flext>
>>>>
>>>> flext mailing list
>>>> flext at grrrr.org
>>>> http://grrrr.org/cgi-bin/mailman/listinfo/flext
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://grrrr.org/pipermail/flext/attachments/20170516/9c8e2dfb/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://grrrr.org/pipermail/flext/attachments/20170516/9c8e2dfb/attachment-0001.sig>
More information about the flext
mailing list