Comments (6)
Okay so my packages were indeed outdated, downloading the latest ones worked great. After a few std version errors, and switching my C++ standard to latest
in my VS project settings, all build errors were fixed. Thanks for the quick reply and the work on this library.
from svgren.
Here was a quick reproduction I made for the external symbol error, if it's needed.
auto dom = svgdom::load(papki::FSFile("rifle.svg"));
auto result = svgren::render(*dom);
if (!sprite)
D3DXCreateSprite(device, &sprite);
if (!sprite)
D3DXCreateTexture(device, dom->width.value, dom->height.value, 0, D3DUSAGE_DYNAMIC, D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &texture);
RECT r{0, 0, dom->width.value, dom->height.value};
sprite->Begin(D3DXSPRITE_ALPHABLEND);
sprite->Draw(texture, &r, NULL, NULL, D3DCOLOR_RGBA(0, 0, 0, 255));
sprite->Flush();
sprite->End();
Although I don't think this code will actually run as expected, and I can't know since it doesn't build.
from svgren.
@edqx after you have installed the NuGet packages, did you update those to all latest versions?
The svgren
is still in active development phase, so strict dependencies versions are not updated regularly, so one has to always install latest versions of packages.
The r4
is a dependency in latest version of packages.
from svgren.
The latest version on NuGet is 0.5.6 which as far as I understand is the latest one, judging by GitHub tags.
from svgren.
@edqx how about all the other dependency packages? I meant those have to be latest version also.
from svgren.
Yes, it needs at least C++17
. Great that it worked for you!
from svgren.
Related Issues (20)
- Image element not rendered HOT 5
- add <defs><style></style></defs> support HOT 8
- rgb(%) support HOT 6
- Initial render very slow with protected software HOT 10
- Render SVG file by string HOT 1
- cocoapods svgren not found HOT 4
- utki cocoapod doesn't have a lib HOT 5
- Support for stroke-dasharray and stroke-dashoffset HOT 4
- Not correctly displaying shapes. HOT 8
- Pixel layout & console output HOT 5
- division by 0
- compiling errors after update to the latest version HOT 5
- add <pattern> support
- No Images loaded since last Update HOT 46
- VS2017 v141 toolset link failed HOT 6
- Problem rendering Instagram logo HOT 5
- XCFramework support HOT 10
- Tutorial needs update: requires C++/17 standard, not C++/11 HOT 2
- Artifact when drawing SVG with `circle` HOT 3
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 svgren.