Apache OpenOffice (AOO) Bugzilla – Issue 14323
.NET build needs extra wdevenv program
Last modified: 2004-04-13 11:49:42 UTC
To build the projects berkeleydb and icu with .NET an extra plug-in for the IDE is needed. See: <http://porting.openoffice.org/servlets/BrowseList?listName=dev&by=thread&from=30906> I would prefer a more seamless solution. Question: .NET doesn't change files, it only creates the .sln from the .dsw and converts the .dsp files into .msproj. Would it be OK to generate these files once and put a patch into berkeleydb and icu to add them after unpacking the archive? All you need to do to create them is enter: devenv Berkeley_DB.dsw /command SaveAll /command Exit in the directory with the .dsw, click OK twice and then create the patch.
set target. I forgot to mention, after these files are created devenv Berkeley_DB.sln /build Release /project db_buildall /useenv devenv Berkeley_DB.sln /build Release /project db_java /useenv works as the msdev commands before.
reassigned to Oliver
Created attachment 6123 [details] Patch for berkeleydb/makefile.mk
Created attachment 6124 [details] New patchfile for berkeleydb
The previous patches allow building berkeleydb with .NET and MSVC 6 without wdevenv. I generated the new db-3.2.9.patch by 1. changing the wdevenv in makefile.mk to something invalid, than build the module. This unpacks and patches the module and breaks before compiling. 2. Change the diff -rc in tg_ext.mk to diff -rcN 3. Remove the .orig files from the original patch 4. dmake create_patch Voila, that's it. I tested the new patch + makefile.mk with .NET and MSVC 6.
OOops, I missed step 3.5 ;-) enter the build_win32 directory and start devenv Berkeley_DB.dsw /command SaveAll /command Exit then go back to the project directory
Created attachment 6139 [details] Another Oops, 4nt doesn't like ; it wants ^. Better would be && but BUILD_ACTION doesn't like it
There is no chance to include this task into RC. I've changed the target.
ause told me the correct way to do such a patch, don't change tg_ext.mk, use ADDITIONAL_FILES, see the new patch for berkeleydb/makefile.mk and the new generated db-3.2.9.patch 1. dmake patch 2. genrate the new files 3. dmake create_patch. The new files are following, if there is a chance to get this accepted I will also create the files/patches for icu, even for RC.
Created attachment 6202 [details] Patch for berkeleydb/makefile.mk
Created attachment 6204 [details] New patch for berkeleydb
Hi Oliver, ause, as OOo 1.1 RC is probably a bit soon for a problem free wdevenv, what do you think about putting the "build" patches for berkeleydb and icu into the coming cws_srx644... and getting them into 1.1 RC. We can even use db-3.2.9.ms_net.patch only for COMEX=8 builds. This way we get a compilable W32 - .NET version of RC, and 1.1 release. This would be very good to have to attract a few more windows developers. And we back out the special .slo patches once wdevenv is released. Volker
The following two patches allow to build berkeleydb and icu with .NET (with 4NT or tcsh) with Olivers new wdevenv. No problems, no delays. I would like to get both in cws...beta2.
Created attachment 6357 [details] Patch for berkeleydb
Created attachment 6358 [details] Patch for icu
Oops, patch wdevenv_icu.diff withdrawn!!!! wdevenv is only needed for COMEX=8. Sorry, will post a new one.
Created attachment 6362 [details] Fixed patch for icu
Hmm, OK, on my first try wdevenv worked for berkeleydb and icu without delay. Now I got: ---- ./tools/pkgdata/pkgdata.dsp ./tools/toolutil/toolutil.dsp Wait.... Timeout dmake: Error code 1, while making './wntmsci8.pro/misc/build/so_configured_so_icu' echo: No match. ERROR: Error 65280 occurred while making /v1/cws_srx644_ooo11beta2cyg/icu ---- And I had a devenv process zombie running afterwards!? After I removed the zombie it worked again.
Hi Volker, I've changed the timeout to 120 sec. . I think this will prevent a timeout during conversion. Oliver.
Created attachment 6453 [details] Fixed patch for berkeleydb
I just started a VC 6 build with wdevenv_icu_v2.diff and wdevenv_berkeleydb.diff, and found an error in my berkeleydb patch. The new wdevenv_berkeleydb_v2.diff version is hopefully correct. OK to commit the wdevenv_*_v2.diff paches to cws...beta2 ?
Ok. We'll use this patches for berkeleydb and icu. These will be added to oo11beta2.
Verified and commited.
.
*** Issue 27657 has been marked as a duplicate of this issue. ***