[poedit-users] Compiling with MingW: What am I doing wrong?
Olivier <[email protected]>
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi I've been compiling poEdit with MinGW/MSYS and done the following: First, Berkeley DB: <> mkdir build_mingw cd build_mingw ../dist/configure --disable-debug --enable-mingw --prefix=/usr/local make make install make clean I know the step about the build_mingw directory is not required, but it seems cleaner to me this way. Second, wxWindows ./configure --with-msw --disable-shared --disable-debug make make install make clean Third and last, poEdit: ./configure --enable-semistatic --disable-debug CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib CC=mingw32-gcc CXX=mingw32-c++ make make install Setting the values of CC and CXX is not really required, but as it turns out, doing it means that the final exe does not need mingwm10.dll to run, which is good (to me). Everything compiles ok, but I have two problems: 1. When I run poEdit, it complains about a missing bitmap in the resources. Carefully looking at the build log, it turns out the resource compiler can't find the wx/msw/wx.rc file. To fix that, I had to manually edit the makefile in poEdit/src to add '--include-dir /usr/local/include' everywhere '--include-dir /usr/local/lib/wx/include/msw-2.4' is found. Somehow, the detection process in configure does not get this right. But this problem is not really major. 2. The final exe file size is 12 M. Yes, you read well, it's 3 times as big as the one in the distribution. I tried to turn off static linking, but it doesn't change much (2M saved) and adds a dependency upon the wxWindows DLL. What did I do wrong there? I'm on a Windows XP French Professional edition, if that's of any help. Any help would be greatly appreciated. Cheers Olivier Sannier ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl