Giter Site home page Giter Site logo

Comments (11)

Loki-Astari avatar Loki-Astari commented on June 11, 2024

I will have a look this weekend.
I am in the processes of tidying up a few things and make the header only version neater.

from thorsserializer.

SteveS-Serrano avatar SteveS-Serrano commented on June 11, 2024

@Loki-Astari - I'd really like to use this package, but I'm stuck until it can build in our environment. Did you have a chance to look at the issue yet? Can you tell me how I might go about working around it just so I can move forward? Should I drop back to an older version? I saw an old post on stack overflow about the same issue - was that ever resolved?

from thorsserializer.

Loki-Astari avatar Loki-Astari commented on June 11, 2024

Are you building on Windows?

If you are then I am trying to get a few build issues sorted before I can rebuild the header only version.

But if you only Mac or Linux then I can switch focus and get the header only version working first.
Then move back to solving build issues on Windows.

from thorsserializer.

SteveS-Serrano avatar SteveS-Serrano commented on June 11, 2024

from thorsserializer.

Loki-Astari avatar Loki-Astari commented on June 11, 2024

You do know that it is available pre-built on linix via brew.

https://docs.brew.sh/Homebrew-on-Linux

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install libyaml
brew install magic_enum
brew install thors-serializer

Then you can simply link against it in your CMake file:

I am still working on the header only version.
I'll update this as I get closer (this week).

from thorsserializer.

SteveS-Serrano avatar SteveS-Serrano commented on June 11, 2024

I know about the pre-built version. Our project constraints require a header-only version for json serdes.

from thorsserializer.

Loki-Astari avatar Loki-Astari commented on June 11, 2024

OK.
Fixed the Windows build issues last night.
Working on the Header Only version now.

from thorsserializer.

Ssscy avatar Ssscy commented on June 11, 2024

you need add HEADER_ONLY macro

from thorsserializer.

SteveS-Serrano avatar SteveS-Serrano commented on June 11, 2024

you need add HEADER_ONLY macro

Where? Can you give me an example?

from thorsserializer.

SteveS-Serrano avatar SteveS-Serrano commented on June 11, 2024

@Ssscy 👍

you need add HEADER_ONLY macro

Thanks!!

I defined -DHEADER_ONLY=1 on the command line and this seems to have resolved the problem. This information should get added to doc/building.md

from thorsserializer.

Loki-Astari avatar Loki-Astari commented on June 11, 2024

Update so the header-only version now builds out of the box.
The current build tests: .github/workflows/build.yaml also validate the header-only version works out of the box.
Latest build: https://github.com/Loki-Astari/ThorsSerializer/actions/runs/5458805284/jobs/9934301849

from thorsserializer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.