Skip to content

Replace get-cuba.sh by configure option --with-cuba=download #49

Closed

Description

@oschulz
  • More user-friendly
  • Enables us to use Autotools for directory resolution (e.g. to find "cuba-version.txt"). get-cuba.sh in it's current form does not work for out-of-tree builds.

Activity

  1. self-assigned this
    on Aug 27, 2015
  2. added this to the 1.0 milestone on Aug 27, 2015
  3. fredRos commented on Aug 27, 2015

    @fredRos
    Contributor

    Sounds good, I promise to rate your pull request positively :)

  4. greenwald commented on Aug 27, 2015

    @greenwald
    Contributor

    What about telling config where to install CUBA? I used your get-cuba.sh script (which worked great), but didn't want to leave CUBA in the BAT directory and moved it. I'm sure others would like that as well.

  5. oschulz commented on Aug 28, 2015

    @oschulz
    MemberAuthor

    What about telling config where to install CUBA? I used your get-cuba.sh script (which worked great), but didn't want to leave CUBA in the BAT directory and moved it. I'm sure others would like that as well.

    This is intended as a simple, fully automatic solution, especially for new users and automatic testing. The location of the cuba dir therefore doesn't matter, the user shouldn't need to worry about it. This a throw-away cuba build (to be cleaned up by make distclean for the planned ./configure --with-cuba=download. It should therefore always reside in the current build directory.

  6. greenwald commented on Aug 28, 2015

    @greenwald
    Contributor

    OK. Can we also use bat-config to return the location of the cuba installation?

  7. fredRos commented on Aug 28, 2015

    @fredRos
    Contributor

    I think we could but how useful is it? The point is that the cuba code is statically linked so it is included in libBAT.so. So after building, the cuba installation is completely unneeded. And in any case, it would only stay in the build directory, and no cuba file is copied to PREFIX.
    If a user wants to install cuba properly, she can do so. For us, we should strive to hide cuba

  8. oschulz commented on Aug 28, 2015

    @oschulz
    MemberAuthor

    OK. Can we also use bat-config to return the location of the cuba installation?

    No - the whole point of this automatic Cuba download is that we do not refer to cuba in the BAT headers or libraries (since Cuba is linked statically). The downloaded Cuba is supposed to be temporary, so it must not appear in the output of bat-config.

  9. greenwald commented on Aug 28, 2015

    @greenwald
    Contributor

    So what would the CXXFLAGS look like when one uses CUBA? Currently the examples, with CUBA enabled, include:

    CXXFLAGS = ... -I/path/to/cuba
    LDFLAGS = ... -L/path/to/cuba
    
  10. oschulz commented on Aug 28, 2015

    @oschulz
    MemberAuthor

    The BAT user doesn't need to give any path to CUBA, 'cause it's statically linked into BAT.

  11. greenwald commented on Aug 28, 2015

    @greenwald
    Contributor

    OK. Then make sure this is compatible with how the setting of the variables I mentioned above. That is: if CUBA is statically linked in, it should not appear in the CXX and LD flags.

  12. oschulz commented on Aug 28, 2015

    @oschulz
    MemberAuthor

    Yes, I'll try to get rid of that.

  13. fredRos commented on Sep 22, 2015

    @fredRos
    Contributor

    This issue was in part motivated by a user who didn't succeed in compiling cuba on a mac. This user had qt development libraries installed, and cuba failed because of that. While this is no fault of bat itself, we also don't want to cause unnecessary trouble to users. What we need is the cuba library, so we should build just that with make lib as suggested by the cuba author. A side effect is that the build time is reduced. I attach a pull request

  14. added a commit that references this issue on Sep 22, 2015
    4057123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions