Updated flex and bison for Windows

230 views
Skip to first unread message

Mark Salisbury

unread,
Feb 8, 2013, 2:20:16 PM2/8/13
to wince...@googlegroups.com
After updating, when cmake checks dependency versions I now see this error:
  Could NOT find FLEX: Found unsuitable version "C:/GnuWin32/bin/flex.exe
  version 2.5.4", but required is at least "2.5.34" (found
  C:/GnuWin32/bin/flex.exe)

I see that Patrick recently added required minimum version for flex:  http://trac.webkit.org/changeset/141157

And the WinCE wiki entry (http://trac.webkit.org/wiki/WinCE) also now refers to a new location for flex:  http://sourceforge.net/projects/winflexbison/files/latest/download

I've downloaded the new version and modified my path to point to it.  I renamed win_flex.exe to flex.exe so that cmake could find it.  (Patrick, did you do this?  If not, what did you do?)

After renaming win_flex.exe to flex.exe, I still get a version issue because win_flex.exe outputs its version differently than flex did....

  Could NOT find FLEX: Found unsuitable version "flex.exe 2.5.37", but
  required is at least "2.5.34" (found
  C:/Users/masali1/Downloads/win_flex_bison-latest/flex.exe)
Call Stack (most recent call first):
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:250 (_FPHSA_FAILURE_MESSA
GE)
  C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindFLEX.cmake:154 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:68 (find_package)

Anyone have a solution?  (wondering if we need to get win_flex.exe updated now to output its version the way flex.exe does...)

Samuel Mommessin

unread,
Feb 9, 2013, 5:17:53 AM2/9/13
to wince...@googlegroups.com
Hi!

Do you have a recent version of CMake?
I used http://www.cmake.org/files/dev/cmake-2.8.10.20130130-ga8638-win32-x86.zip
to override 2.8.10.2 install and the latest version of win_flex then
it worked.

Samuel

2013/2/8 Mark Salisbury <mark.sa...@hp.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Windows CE WebKit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to wincewebkit...@googlegroups.com.
> To post to this group, send email to wince...@googlegroups.com.
> Visit this group at http://groups.google.com/group/wincewebkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Salisbury, Mark

unread,
Feb 11, 2013, 2:09:05 PM2/11/13
to wince...@googlegroups.com
Yes, I had downloaded the latest nightly. I must have not had the correct version in use when I ran cmake (hadn't updated my PATH variable?); I see Patrick added support for win_flex.exe in CMake (Moduels\FindFLEX.cmake) in df293368933ce5698f62a359e3f2d244a60c33be.

Thanks,
Mark
Reply all
Reply to author
Forward
0 new messages