Coder Social home page Coder Social logo

Comments (6)

tfussell avatar tfussell commented on May 12, 2024

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.

Malvineous avatar Malvineous commented on May 12, 2024

Great, many thanks! This will make it much easier to deploy xlnt with applications that use it.

from xlnt.

tfussell avatar tfussell commented on May 12, 2024

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.

Malvineous avatar Malvineous commented on May 12, 2024

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.

Malvineous avatar Malvineous commented on May 12, 2024

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.

tfussell avatar tfussell commented on May 12, 2024

That looks useful. Thanks.

from xlnt.

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.