On Tue, May 09, 2006 at 08:56:52AM -0500, Bo Peng wrote: > >It is utterly ridiculous that they are not able to spot the difference > >between .c and .C on Cygwin and they are able to on native Windows. > > The .C and .c problem has been handled.
So, is the problem with "undefined reference to vtable" solved? > Please, if you can, help me > figure out why cygwin build lyx needs zlib1.dll, instead of cygwin > libz.a. I will gladly do that but I don't I understand what you mean. On cygwin you should use -lz and by default it should link using /usr/lib/libz.dll.a, which is the import library for /usr/bin/cygz.dll. There is also a static /usr/lib/libz.a, but it should not be used unless you provide the -static option. I think I'll figure out that one by myself trying scons again. > It seems that the .rdata problem is now correctly handled (hidden in > SConstruct), which is, in my opinion, the most troublesome thing for a > cygwin/lyx build. I saw you clever solution, but the rdata script is only needed when linking against the X11 libs. I don't think that it may be harmful, though, but it can be done in this simple way: if X11 is requested then use the script else add -DQ_CYGWIN_WIN to CPPFLAGS. This brings me to the question of how passing options. I tried adding CPPFLAGS=-O2 on the scons command line but it doesn't seem to have worked. > Now, from my machine, with the right cygwin packages (and your moc.exe > and uic.exe), cygwin/lyx is almost a direct scons away. I'll try and report the results. However, be warned that I almost never accept defaults and try to push a software to do what I want and not what it thinks is the best for me ;-) -- Enrico