poco icon indicating copy to clipboard operation
poco copied to clipboard

Make mc.exe (Message Compiler) optional, for supporting MinGW cross-compiling

Open qwertychouskie opened this issue 6 years ago • 9 comments

Currently POCO will not build on systems without mc.exe. This is fine on Windows systems, where the Windows SDK can just be installed. However, this creates problems for cross-compiling Windows binaries on Linux. A pre-made header (see https://github.com/pocoproject/poco/issues/2356#issuecomment-473149465 for one made for 1.9.0) should be included, and used whenever mc.exe is not available.

qwertychouskie avatar Mar 15 '19 04:03 qwertychouskie

Why don't you develop an portable Message Compiler compliant with the Windows Message Compiler? (With Poco of course!)

zosrothko avatar Mar 15 '19 07:03 zosrothko

Seems overkill just for a header or two that need to be generated. Just including the header is a much simpler change.

qwertychouskie avatar Mar 15 '19 17:03 qwertychouskie

In package mingw64-binutils-2.30-6.fc30.x86_64.rpm there is /usr/bin/x86_64-w64-mingw32-windmc, but to let it find by Poco cmake I had to create a symbolic link to mc.exe

mydatamodels avatar Oct 01 '19 13:10 mydatamodels

MinGW has windmc.exe for same purposes. Here is example how it can look.

ark0f avatar Oct 07 '19 14:10 ark0f

In order to compile in ubuntu, I have to do:

ln -s /usr/bin/x86_64-w64-mingw32-windmc /usr/bin/mc.exe

iuridiniz avatar May 19 '21 03:05 iuridiniz

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jun 19 '22 03:06 github-actions[bot]

Poco unable to find windmc.exe, had to rename the file to mc.exe to work. This is in Windows using Conan.

akshaybabloo avatar Dec 06 '22 00:12 akshaybabloo

It also works by simply specifying the full path to cmake via -DCMAKE_MC_COMPILER=/path/to/x86_64-w64-mingw32-windmc

So I would not consider this as issue.

nwrkbiz avatar Jun 15 '23 12:06 nwrkbiz

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] avatar Jun 15 '24 02:06 github-actions[bot]

This issue was closed because it has been inactive for 60 days since being marked as stale.

github-actions[bot] avatar Aug 14 '24 02:08 github-actions[bot]