From: Dmitry Y. <di...@us...> - 2002-03-19 13:39:05
|
Hi Martijn and Miro, > > me being a total MSVC nitwit and C++ nitwit... Can someone > give me a bit > > more insight in: > > > > 1) where do I need to put the project files (currently I put them in > > make.new from Fb2) > > I placed them in firebird2\MIROs\FB2\ The answer is nobody knows where is the best place to put them into ;-) A discussion about this has been started a while ago but I cannot see any results so far. > > 2) what's the deal with the generated files? (from Mike and the gpre > stuff) > > You must run msvc_makeall.bat from generated subfolder. With > this you get > .cpp files from .epp files. But for now I find that some > lines from this bat > file are not executed corectly. Some error from nmake... I didn't use them and wrote my own batch files which don't use nmake and the makefiles and call gpre directly to preprocess the .epp files. I could send them by request. > > 3) what do I have to do to simply 'run' and debug (how do I get the > > ibserver.exe?) > > First you must fix 100s of errors and warnings. I do not do it yet... > Probably some FB2 guru can tell more things There should be only warnings, not errors. What ones are you talking about? AFAIR, after I've done epp2cpp conversion successfully, I didn't have any problems. Could you be more specific? The following is the way I used to build the server (from my memory): 1. Get gpre_meta.cpp from Mike's package, put it into generated/gpre and compile gpre.exe. Notes: - src/gpre/gpre_meta.epp should be forbidden and should be the only .epp file that is NOT preprocessed during the build process - gpre sources should be linked with gds32.lib from fb1 package, but it (gds32.lib) should be built under the same configuration (either Debug or Release) as gpre is being to. 2. Run msvc_makeall.bat or whatever else to preprocess the .epp files by using NEW gpre from fb2 (the one has just been compiled). Gpre from fb1 won't do this job for you properly. 3. Copy src/include/gen/autoconfig_msvc.h into autoconfig.h. 4. Run the IDE and build all projects in the firebird2 workspace. Change the project options if necessary. Good luck, Dmitry |