Comments (6)
One of my major goals with this library is making it easy to use for other developers. It seems like implementing these changes would help ensure that that is the case. I'll get to work on this soon.
from xlnt.
Great, many thanks! This will make it much easier to deploy xlnt with applications that use it.
from xlnt.
I think I've finished this feature (still need to add declspec macros for Windows). I never really used pkg-config before, it's pretty nice. You can now configure a make project and install the library like this:
mkdir build
cmake ../cmake
make install
cmake now takes three options:
SHARED (default=ON)
BUILD_TESTS (default=OFF)
AUTORUN_TESTS (default=OFF)
building a static library would then look like:
cmake -D SHARED=0 ../cmake
set the install prefix like this:
cmake -D CMAKE_INSTALL_PREFIX=/usr/local ../cmake
uninstall installed files with:
make uninstall
Trying out pkg-config, it seems to be working:
pkg-config --libs xlnt
yields
-L/usr/local/lib -lxlnt
and
pkg-config --cflags xlnt
yields
-I/usr/local/include
Let me know how this works for you. I'll need to document these new features somewhere.
from xlnt.
Wow that's fantastic! That works really well. Being able to switch the tests on and off works really well too.
I do get one error when compiling my own code from the installed library:
/usr/include/xlnt/cell/types.hpp:29:27: fatal error: xlnt_config.hpp: No such file or directory
This file is located in /usr/include/xlnt/xlnt_config.hpp
but the #include
line in types.hpp
uses double-quotes rather than angle brackets, so the compiler looks in the current directory instead of the include path.
I imagine changing the line to #include <xlnt/xlnt_config.hpp>
would do the trick.
Otherwise, it works spectacularly well! Great job :-)
from xlnt.
Just FYI I have created an Arch Linux user-package for xlnt just to make it that little bit easier to install for Arch Linux users such as myself :-)
from xlnt.
That looks useful. Thanks.
from xlnt.
Related Issues (20)
- Loading file fails with error: attribute 'localSheetId' expected HOT 4
- Parse error!(xlnt::exception : bad cell coordinates: (#REF!))
- This is really a good library for xlsx, but the document may need improved?
- number_serialiser::deserialise returns wrong result due to buffer not being null terminated
- Unexpected attribute 'ca' when working with formular in xlsx file.
- Is it possible to write a whole record i.e std::vector<std::string> into the xlnt::worksheet instead of writing cell by cell?
- Throw "counts don`t match" exception
- How do I insert a picture as embedded in a cell ? HOT 1
- When string tables entries exceed 1000, a ',' is being inserted in the string table number, resulting in errors opening file HOT 1
- C++23 aligned storage deprecation warning
- Reference counting issues with xlnt::format_impl
- Do Excel files not support Chinese path? HOT 1
- Fresh release HOT 2
- Errors when try to use in Windows
- Crash on Release HOT 1
- Cloning project failed HOT 1
- Read xls file?
- password
- error in Add Password: wb.save("lots_of_properties.xlsx","password");
- throws exception when I use load function to load an xlsx file containing functions HOT 6
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 xlnt.