Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to generate gSOAP proxies while building fesapi #29

Open
mpoudret opened this issue Jan 3, 2018 · 0 comments
Open

Unable to generate gSOAP proxies while building fesapi #29

mpoudret opened this issue Jan 3, 2018 · 0 comments
Labels

Comments

@mpoudret
Copy link
Contributor

mpoudret commented Jan 3, 2018

Hi,

Here is an issue regarding generation of gSOAP proxies while building fesapi.

Regards,
Mathieu

What are the steps to reproduce this issue?

  1. remove content of src/proxies (for setting CMake variable PROXIES_GENERATION to true)
  2. configure and generate with CMake
  3. build fesapi

What does happen?

Following error is raised during proxies generation : " Cannot open 'C:/Dev/fesapiEnv/buildHyperslabbingUncommitted/win64shared/src/C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' to retrieve schema"
Path looks crazy since current build directory is append to Common.xsd absolute path.

What were you expecting to happen?

Common.xsd is supposed to be opened properly thanks to line 7 of PropertyTypeMapping.xsd

Any other comments?

I tried to update line 63 of src/CMakeLists.txt (adding file:/// as prefix for output Common.xsd location) from
COMMAND cscript ${FESAPI_ROOT_DIR}/gsoap/sed.vbs "sRESQML_SCHEMA_LOCATION${RESQML_SCHEMA_LOCATION}g" < ${FESAPI_ROOT_DIR}/gsoap/PropertyTypeMapping.xsd > ${CMAKE_CURRENT_BINARY_DIR}/PropertyTypeMapping.xsd
to
COMMAND cscript ${FESAPI_ROOT_DIR}/gsoap/sed.vbs "s
RESQML_SCHEMA_LOCATION*file:///${RESQML_SCHEMA_LOCATION}*g" < ${FESAPI_ROOT_DIR}/gsoap/PropertyTypeMapping.xsd > ${CMAKE_CURRENT_BINARY_DIR}/PropertyTypeMapping.xsd

Then, I got the following error (by playing again steps to reproduce the issue):
Cannot open 'file:///C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' to retrieve schema
This issue seems weird since 'file:///C:/Dev/fesapiEnv/energistics_schemas/energyml/data/resqmlv2/v2.0.1/xsd_schemas/Common.xsd' opens properly in an internet browser. This path is definitly correct.

Dev environment:

  • Windows 10 64bits
  • Visual Studio Community 2015
  • gSOAP 2.8.59

What versions of fesapi are you using?

Up to date on 01/03/2018.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants