Comments (11)
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.
@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.
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.
from thorsserializer.
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.
I know about the pre-built version. Our project constraints require a header-only version for json serdes.
from thorsserializer.
OK.
Fixed the Windows build issues last night.
Working on the Header Only version now.
from thorsserializer.
you need add HEADER_ONLY macro
from thorsserializer.
you need add HEADER_ONLY macro
Where? Can you give me an example?
from thorsserializer.
@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.
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)
- Maximum number of levels/depth? HOT 5
- No compile enum with 8 and more element HOT 6
- Deserializing to existing object with vectors/pointers? HOT 8
- Std:array not working on header only version HOT 6
- Make under Homebrew results in template error HOT 1
- Make Trait does not work for types with static members with non-standard types HOT 1
- Compilation issue with VisualStudio 2019 on Windows HOT 4
- my compile problem of example1 HOT 1
- Redefine traits at runtime HOT 6
- MakeTrait: error: unable to deduce 'std::initializer_list<auto>' HOT 9
- [Linuxbrew] Trying to prepare v2.2.0 bottle but hitting compilation issues (tried GCC-11 and LLVM) HOT 10
- Tags with header only HOT 7
- Linker error on basic example, I am missing something? HOT 4
- Linker Error? HOT 5
- Invalid enum values causes undefined behavior HOT 1
- missing include file magic_enum.hpp HOT 3
- Why there is no CMAKE support? HOT 5
- error compiling with std::shared_ptr<const Type> HOT 5
- read problem with map of pointers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thorsserializer.