Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

ode: Remove "--disable-demos" from default install and add the "--with-dem… #44265

Closed
wants to merge 2 commits into from
Closed

ode: Remove "--disable-demos" from default install and add the "--with-dem… #44265

wants to merge 2 commits into from

Conversation

sheim
Copy link

@sheim sheim commented Sep 23, 2015

Requesting help for debugging, reference #43312.
Trying to build ode with the drawstuff library and demos.
Building manually works, resulting in an additional ode-0.13.1/drawstuff library, as well as a ode-0.13.1/ode/demo folder with several demos.

@@ -23,6 +23,7 @@ class Ode < Formula
option "with-double-precision", "Compile ODE with double precision"
option "with-shared", "Compile ODE with shared library support"
option "with-libccd", "Enable all libccd colliders (except box-cylinder)"
option "with-drawstuff", "Include the drawstuff library and demos. Requires X11."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably have a depends_on :x11 somewhere?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aye. depends_on :x11 if build.with? "drawstuff" I guess, however much we dislike if build.with? dependency statements.

@sheim
Copy link
Author

sheim commented Sep 24, 2015

Sorry, new to editing brew formulas. Added the line depends_on :x11 if build.with? "drawstuff" where all the other depends were. A drawstuff library folder still doesn't show up where it should compared to the manual install though. Any ideas?

@DomT4
Copy link
Member

DomT4 commented Sep 27, 2015

What are you expecting to see installed on top of the normal package? Just the demos?

@sheim
Copy link
Author

sheim commented Sep 27, 2015

So, when I compile from source with the demos option, it will build a drawstuff library (and put the folder in /ode-0.13.1/drawstuff) as well as a folder full of demos, (in /ode-0.13.1/ode/demos).

With brew, I'm finding neither of these folders, and other code that depends on the drawstuff library doesn't find it either so I'm assuming it's not built somewhere else and symlinked.

@dunn
Copy link
Contributor

dunn commented Sep 27, 2015

Compiling outside of Homebrew, make install doesn't install the demos directory, at least for me.

@sheim
Copy link
Author

sheim commented Sep 27, 2015

That's odd. Did you do ./configure --with-demos ?
Also, I just tried again, and both folders are there from the get-go (after
downloading, without compiling), just not built unless you configure with
demos.

I'm grabbing from the url mentioned in
the ode formula, is this just a reference perhaps?

On Sun, Sep 27, 2015 at 1:34 PM, Alex Dunn notifications@github.com wrote:

Compiling outside of Homebrew, make install doesn't install the demos
directory, at least for me.


Reply to this email directly or view it on GitHub
#44265 (comment).

@dunn
Copy link
Contributor

dunn commented Sep 27, 2015

OK, what's happening is it's installing the demos into buildpath/"ode/demo", instead of the specified prefix. So you'll have to install it manually after make install (and ideally submit a patch upstream to fix their Makefile).

@sheim
Copy link
Author

sheim commented Sep 29, 2015

Alright, tried messing around with it to no good end. Simply copying the drawstuff folder over doesn't work, as the makefile is then generated incorrectly with autoconf (paths etc. all off).
I'm a bit out of my depth here, so I'll leave it for now, and if I get time at some point, I'll see if I can adjust the makefile.ac for ode directly (I think it just needs to pass the --prefix option to the drawstuff makefile), that really seems like the more proper way of fixing this.

@dunn
Copy link
Contributor

dunn commented Sep 30, 2015

No problem. Feel free to leave this PR open, and thank you for contributing!

@apjanke apjanke changed the title Remove "--disable-demos" from default install and add the "--with-dem… ode: Remove "--disable-demos" from default install and add the "--with-dem… Nov 26, 2015
@nijikon nijikon mentioned this pull request Dec 23, 2015
@DomT4 DomT4 closed this in 2a8b61f Dec 24, 2015
@Homebrew Homebrew locked and limited conversation to collaborators Jul 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants