Giter Site home page Giter Site logo

Comments (7)

DraTeots avatar DraTeots commented on June 4, 2024

Ok, there where no claims about single header. Only "header only". Sorry and thanks for the library!!!

from thorsserializer.

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

The old Makefile stuff works everywhere (unlike CMake), no extra stuff required.
Once it is built you can use it from you CMake files :-)

But the easy way to install is to use it via brew

> brew install thors-serializer`

But building it should be as easy as:

> ./configure
> make
> sudo make install

To use the header only version.

> git clone --single-branch --branch header-only https://github.com/Loki-Astari/ThorsSerializer.git
  /PATH/TO/WHERE/I/WANT/TO/INSTALL/ThorsSerializer

 g++ -I /PATH/TO/WHERE/I/WANT/TO/INSTALL/ThorsSerializer MyFile.cpp

from thorsserializer.

DraTeots avatar DraTeots commented on June 4, 2024

"Once it is built you can use it from you CMake files :-)"

Do you generate thors-serializerConfig.cmake and thors-serializer.cmake files?

from thorsserializer.

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

No. But they should be trival to do if you know CMake (which I don't).

The only things you need are:

  • where the header files are installed: -I<ThorHeaderDir>
  • where the libraries are installed: -L<ThorLibraryDir>
  • The name of the library; -l<libraryName>

Default values are (unless you do something special with the ./configure command)

ThorHeaderDir  => /usr/local/include
ThorLibraryDir  => /usr/local/lib
libraryName     => ThorSerialize17

If you build it but don't install it (i.e. you don't have root access).

THOR_ROOT    => <The director where you downloaded from git>/ThorsSerializer

ThorHeaderDir  => <THOR_ROOT>/build/include
ThorLibraryDir  => <THOR_ROOT>/build/lib
libraryName     => ThorSerialize17

from thorsserializer.

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

If you create one I will add to the project for future developers to use.

from thorsserializer.

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

According to this page: http://doc.aldebaran.com/qibuild/advanced/guide/cmake/writing_a_config_cmake.html

It should look like this:

thors-serializerConfig.cmake

clean(ThorsSerializer)
fpath(ThorsSerializer ThorSerialize/JsonThor.h)
flib(ThorsSerializer OPTIMIZED  ThorSerialize17)
flib(ThorsSerializer DEBUG  ThorSerialize17D)
export_lib(ThorsSerializer)

Let me know if this works.

from thorsserializer.

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

Massively cleaned up the header only version.

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.