Hi Aron, On Wed, Jan 21, 2015 at 11:44:00AM +0900, aronsoyol wrote: > Hi all > > Hi I want to partial build a debuggable dll for sw module > > First, I did a entire build on Windows with configure switches: > > ./configure \ > --with-cl-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio > 9.0/VC" \ > --with-midl-path="/cygdrive/c/Program Files (x86)/Microsoft > SDKs/Windows/v7.0A/Bin" \ > --with-frame-home="/cygdrive/c/Program Files (x86)/Microsoft > SDKs/Windows/v7.0A" \ > --with-asm-home="/cygdrive/c/Program Files (x86)/Microsoft Visual Studio > 9.0/VC/Bin" \ > --with-csc-path="/cygdrive/c/Windows/Microsoft.NET/Framework/v3.5" \ > --with-ant-home=/cygdrive/E/lo/apache-ant-1.9.4 \ > --with-jdk-home=/cygdrive/E/lo/jdk1.7.0_71 \ > --with-nsis-path="/cygdrive/c/Program Files (x86)/NSIS" \ > --without-junit \ > --disable-directx \ > --disable-atl \ > --disable-activex \ > --disable-nss-module \ > --enable-category-b
Add --disable-strip-solver and --with-package-format="installed" --disable-strip-solver is needed because debugging symbols are stripped when delivering from the module to the solver --with-package-format="installed" will produce a ready-to-use folder in main/instsetoo_native/<unxlngx6>/Apache_OpenOffice/installed/install/en-US/ Move that installation to another place closer to C:\ so that you don't have to type all the path. Then rebuild the modules you need with debugging symbols, and copy the libraries in the program folder of the installation. > Then I did > > cd instsetoo_native > build --from sw --prepare > build debug=t --html --from sw > > And copied new sw.dll into install directory then attached visual studio, > but vs could not stopped at any break point. > I don' t know where was wrong and how should I do. Most likely that symbols are stripped. Build with package-format installed; once finished, move the installation to the place where you will used it; then, the easiest is to rebuild with debugging symbols *only* the needed modules, inside the module, not in instsetoo_native with build --from. cd main/sw make -srj3 clean make -srj3 DEBUG=yes If the module is converted to gbuild, like sw, copy the libraries from the solver (main/solver/<420>/<unxlngx6>/workdir/LinkTarget/Library) to <installtion>/program If the module is an old dmake based module: cd <module> rm -rf <unxlngx6> build debug=true dbglevel=3 && deliver Then just copy the libraries from <module>/<unxlngx6>/lib|bin or from the solver (main/solver/<420>/<unxlngx6>/bin|lib) Regards -- Ariel Constenla-Haile La Plata, Argentina
signature.asc
Description: Digital signature