Coder Social home page Coder Social logo

Comments (17)

vitalyster avatar vitalyster commented on May 18, 2024

You should get actual linker flags from swiften-config output and should not link Swiften_Boost explicitly

from swift.

lnjX avatar lnjX commented on May 18, 2024

I HAVE used the actual linker flags, but Swiften_Boost was not built.

from swift.

vitalyster avatar vitalyster commented on May 18, 2024

It is intended, linker flags will have references to system boost in this case

from swift.

lnjX avatar lnjX commented on May 18, 2024

Yeah, but my system had no Swiften_Boost, it only had Boost and Swiften_Boost was not builded.

from swift.

tfar avatar tfar commented on May 18, 2024

What does the scons config output look like?

from swift.

vitalyster avatar vitalyster commented on May 18, 2024

@LNJ2 if you have uninstalled system boost, then you need to rebuild Swiften, scons will re-check Boost presence and will enable building and linking bundled boost copy

from swift.

lnjX avatar lnjX commented on May 18, 2024

Just to clarify: Everything is working for me

I just want to say that when the boost packages are installed on my system, it won't build Swiften_Boost.

I have removed the libboost packages from my system and then Boost and SwiftenBoost were built.
Just install libboost-all-dev (on debian sid) and you will get the same as I had.

from swift.

lnjX avatar lnjX commented on May 18, 2024

@vitalyster I know I have to rebuild it.

from swift.

vitalyster avatar vitalyster commented on May 18, 2024

@LNJ2 building bundled boost is a "last resort" when scons is unable to find system one
No need to have multiple copy of boost libraries in most cases

from swift.

lnjX avatar lnjX commented on May 18, 2024

@vitalyster You might wonder, but I also know that.

from swift.

tfar avatar tfar commented on May 18, 2024

@LNJ2 So what is the actual issue here? The build of Swiften fails if only some boost dependencies are installed?

from swift.

lnjX avatar lnjX commented on May 18, 2024

@tfar Why is scons (or whatever) not building Swiften_Boost, if this part is missing?

from swift.

vitalyster avatar vitalyster commented on May 18, 2024

@LNJ2 your actual problem still isn't clear. scons checks at configure time presence of boost and prefer system one, it shouldn't build Swiften_Boost when system one is present, it's by design.

from swift.

Kev avatar Kev commented on May 18, 2024

Hi there,
To check that I understand your problem correctly:

  1. You have your own application that uses libSwiften
  2. You compiled Swiften on a system that has the system Boost installed
  3. Building Swiften did not generate libSwiften_Boost
  4. Your application failed to link, because your build system tries to link against libSwiften_Boost.
    (And then you uninstalled the system Boost, rebuilt Swiften, it built libSwiften_Boost, and your build system was happy)

Is that right?

from swift.

lnjX avatar lnjX commented on May 18, 2024

@Kev That's exactly what I did (to be exact, someone else of my 'team' created the project and I tried to build it).

I think I can understand you now ... libBoost and libSwiften_Boost are the same, but have different names? (I thought that Swiften_Boost would be something like an 'extension' for Boost ...)

from swift.

Kev avatar Kev commented on May 18, 2024

Yes, Swiften_Boost is the name of the boost library if Swift has to compile it.
You should run Swiften's swiften-config tool as part of your build system, which will tell you which libraries need to be linked in for the particular way Swiften's been built on that machine.

In your case, it would have told you the system Boost libraries that were used and needed to be linked, and wouldn't have said Swiften_Boost.

Closing this as I think it's clear at this point that the bug isn't in Swiften.

from swift.

lnjX avatar lnjX commented on May 18, 2024

Sorry and Thank you guys. :)

from swift.

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.