Re: [poedit-users] Compiling with MingW: What am I doing wrong?
Olivier Sannier <[email protected]>
| Newsgroups | gmane.editors.poedit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi At 19:01 21/10/2004, you wrote: >Hi, > >Olivier wrote: > > 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). > >I doubt it's related to setting CC and CXX -- this DLL is used if you >enable multithreading, you can get rid of it by configuring wxWidgets >with --disable-threads (and thus not using -mthreads flag, I think). Yes you are right. I messed up the cleaning of various things on my work machine. > > /usr/local/lib/wx/include/msw-2.4' is found. Somehow, the detection > > process in configure does not get this right. > >If you could investigate this and find out what exactly fails, it >would be most welcome. The problem lies in the configure script, starting at line 4360. It uses wx-config with the --cxxflags that on my system returns this: -I/usr/local/lib/wx/include/msw-2.4 -D__WXMSW__ -fno-pcc-struct-return Problem is that all that is found in /usr/local/lib/wx/include/msw-2.4 is the setup.h file, the required files are in /usr/local/include. >Nothing -- you just didn't know the strip utility that strips >debugging information from binaries and about the fact that there's >always at least some debugging information in binaries produced by >gcc and/or GNU binutils. Gee, that's quite a shock to me. After running strip, the exe file is back to a more reasonnable size. Thanks for that ;-) Just another question: Is there a special target for the make command so that it generates the setup exe file automatically? I have InnoSetup installed and it's quite easy to get the iss script to work, but I would think that there is a way to run this via the makefile, meaning that I don't have to create the BUILD-mingw directory. 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