Installing libSlice.so

rascalDanrascalDan Member Dan GoodliffeOrganization: PersonalProject: C++ object serialization

Hi all,
I'm looking at upgrading my applications from ICE 3.6 to 3.7. The project I'm currently looking at uses libSlice directly to parse .ice files and extract information about the objects/types defined in them.
Unfortunately, when I upgraded to v3.7, the install process (from source) didn't install libSlice as 3.6 did. I've had a look around in the make files to see if I could add it to the list of things that get installed, but I couldn't figure out what changes/additions I'd need to make.
Any help greatly appreciated.

Tagged:

Comments

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    edited April 2018

    See

    https://github.com/zeroc-ice/ice/blob/3.7/cpp/src/Slice/Makefile.mk#L19

    Slice_install_configs           := none
    

    This prevents Slice library from being install, you can comment this out and you will have to do the same with IceUtil.

    Note that Slice is an internal library and using this that way will prevent your application to build with an Ice binary distribution.

  • rascalDanrascalDan Member Dan GoodliffeOrganization: PersonalProject: C++ object serialization

    Thanks Jose, I'll give that a try.
    If that's the case... is it worth me spending some time writing my own parser for .ice files to get the info I need or is there another supported method?

  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff

    You can also build cpp/src/Slice sources with your app, if your application already links with libIce.so there is no need to link with IceUtil and that is included with Ice as of 3.7

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff

    As Jose suggested, I think your best option is to copy the parsing code you need from ice/cpp/src/Slice to your own application.

    Best regards,
    Bernard

  • rascalDanrascalDan Member Dan GoodliffeOrganization: PersonalProject: C++ object serialization

    Thanks guys... I've got the lib installed for now... that's got me a good stepping stone.

Sign In or Register to comment.