You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Tobias Sager (JIRA)" <xe...@xml.apache.org> on 2004/12/27 14:40:04 UTC

[jira] Created: (XERCESC-1318) icu build with VC7 project files does not work

icu build with VC7 project files does not work
----------------------------------------------

         Key: XERCESC-1318
         URL: http://nagoya.apache.org/jira/browse/XERCESC-1318
     Project: Xerces-C++
        Type: Improvement
  Components: Build  
    Versions: 2.6.0    
 Environment: Windows 2000
    Reporter: Tobias Sager
    Priority: Minor


It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
There is no error, but the resulting dll does not have ICU dependencies.

Building with VC6 files results in a ICU enabled build.

Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Mitch Oliver (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1318?page=comments#action_59281 ]
     
Mitch Oliver commented on XERCESC-1318:
---------------------------------------

I'm doing this build right now.  In order for it to work properly (with the perl script) you must do the following:
Download and install Cygwin for http://www.cygwin.com/.  When you get a screen that has a bunch of categories, make sure zip is included.
Download and install ActiveState Perl.

Once the above is completed and you have downloaded and unzipped Xerces and ICU, you need to set up your environment.

Open up the Cygwin shell.
Set up the command variables as specified in the original instructions as such:

export XERCESCROOT=x:\xerces-c-src2_6_0
export ICUROOT=x:\icu
cd x:\xerces-c-src2_6_0\scripts

substituting the appropriate path the the directories for x:

You must also add the path to the devenv.exe to your PATH:
export PATH:$PATH:[path-to-visual studio .net]\Common7\IDE

Before you proceed to run the perl script, the following changes must be made:
Line 252 should look like this:
psystem("devenv allinone.sln /rebuild Release /out buildlog_release.txt");

Line 255 should look like this:
psystem("devenv allinone.sln /rebuild debug /out buildlog_debug.txt");

Line 327 should look like this:
psystem("devenv xerces-all.sln /rebuild Release /out buildlog_release.txt /project all");

Lines 328, 329 are commented out, but were they not they would need to look like this:
# psystem("devenv xerces-all.sln /rebuild debug /out buildlog_debug.txt /project XercesLib xerces-all.sln");
# psystem("devenv xerces-all.sln /rebuild debug /out buildlog_depdom_debug.txt /project XercesDeprecatedDOMLib");

Once the above changes are in place, run the perl script.

I hope this helps.

Mitch Oliver
Software Engineer
Seapine Software, Inc.
http://www.seapine.com/


> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://issues.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1318?page=comments#action_59320 ]
     
Alberto Massari commented on XERCESC-1318:
------------------------------------------

Tobias,
I think we are looking at different things here.

By default, NONE of the projects shipped with Xerces has ICU enabled, so either you are using a VC6 project that someone has already modified by running packageBinaries.pl, or you are building a non-ICU-enabled copy of Xerces.

Once you double check which case you are in, please close this bug.

Alberto

> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://issues.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Tobias Sager (JIRA)" <xe...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XERCESC-1318?page=comments#action_59305 ]
     
Tobias Sager commented on XERCESC-1318:
---------------------------------------

Thanks for your comments.

Just to clarify:
- Using the VC6 project files to build an ICU enabled build
  works correctly and without need to edit any files.
- Building with the VC7 project files from .NET does not work. You would
  have to go the way described in the previous comment(s) using the perl script.

My workaround is simple:
I import the VC6 files using Visual Studio .NET and build an ICU enabled xerces-
build without any hassle.


> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://issues.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XERCESC-1318?page=comments#action_57115 ]
     
Alberto Massari commented on XERCESC-1318:
------------------------------------------

Hi Tobias,
the Windows project files (VC6, VC7 and VC7.1) by default use the Win32Transcoder, not the ICU one. If you want to use ICU you need to either use pckageBinaries.pl with the appropriate switch or manually edit them.
In a few words, the changes you have to do are:
- remove Win32TransService.* from the project
- add ICUTransService.* to the project
- change the preprocessor symbol XML_USE_WIN32_TRANSCODER into XML_USE_ICU_TRANSCODER
- add icuuc.lib (for release builds) and icuucd.lib (for debug builds) to the list of libraries for the linker
- add the <ICUROOT>/lib directory to the list of paths for the linker

Hope this helps,
Alberto

> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Tobias Sager (JIRA)" <xe...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XERCESC-1318?page=comments#action_57105 ]
     
Tobias Sager commented on XERCESC-1318:
---------------------------------------

No, I am building with Visual Studio .NET.
I followed the instructions here:
http://xml.apache.org/xerces-c/build-misc.html#ICUPerl

<quote>
One is to use the MSDEV GUI environment, and the other is to invoke the compiler from the command line.

Using, the GUI environment, requires one to edit the project files. Here, we will describe only the second option. It involves using the perl script 'packageBinaries.pl'.
</quote>

So I opened the VC7 project in MSDEV. This project does not have any reference to ICU (might "edit the project files" from above be the hint for my problem?)
Opening the VC6 project (which is imported without problems) and building with ICU in path works fine then.

> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


[jira] Commented: (XERCESC-1318) icu build with VC7 project files does not work

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ http://nagoya.apache.org/jira/browse/XERCESC-1318?page=comments#action_57095 ]
     
Alberto Massari commented on XERCESC-1318:
------------------------------------------

Hi Tobias,
are you using the packageBinaries.pl script to modify the project file to use ICU as transcoder?

Alberto

> icu build with VC7 project files does not work
> ----------------------------------------------
>
>          Key: XERCESC-1318
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-1318
>      Project: Xerces-C++
>         Type: Improvement
>   Components: Build
>     Versions: 2.6.0
>  Environment: Windows 2000
>     Reporter: Tobias Sager
>     Priority: Minor

>
> It is not possible to build Xerces with ICU support using MSDEV VC7 solution files.
> There is no error, but the resulting dll does not have ICU dependencies.
> Building with VC6 files results in a ICU enabled build.
> Is it the missing preprocessor directive XML_USE_ICU_TRANSCODER?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org