Page 1 of 1

MSYS2 Codelite compile problem: Error: Unrecognised option: '--rcflags'

Posted: Mon Nov 26, 2018 6:30 am
by trayres
Using CodeLite via MSYS2 (mingw-w64 version), I can't compile a wxWidgets GUI application using wxCrafter.

Resource Compiler options:
$(shell wx-config --rcflags)

Trying this out on the MSYS2 Mingw64 terminal:
wx-config --rcflags
results in:
*** Error: Unrecognised option: '--rcflags'

I do have access to wxrc, but it looks like this version of the wxwidgets library doesn't have access to the --rcflags option of wx-config.

It looks like there's a problem with the default when using MSYS2 on Windows?

Packages
mingw-w64-x86_64-wxWidgets
mingw-w64-x86_64-codelite-git 12.0.656.g3349d0f7d-1

Re: MSYS2 Codelite compile problem: Error: Unrecognised option: '--rcflags'

Posted: Mon Nov 26, 2018 1:20 pm
by eranif
This is because you are using the UNIX style wx-config (part of MSYS)
--rcflags is used for building resource files on Windows.

You have two choices here:
1. Use wx-config that comes with CodeLite (located under C:\Program Files\CodeLite\wx-config.exe)
2. Remove the .rc file from your project

Eran