GithubHelp home page GithubHelp logo

Comments (5)

ferdnyc avatar ferdnyc commented on May 22, 2024 1

Very belated PR submitted at OpenShot/libopenshot-audio#19, when that's merged this can finally be closed. (Shutting the barn door after the horses are gone, as they say, now that libopenshot-0.2.0 is already released. But, oh well.)

from libopenshot.

joebonrichie avatar joebonrichie commented on May 22, 2024

Also getting this error on Solus, is there something obvious i'm missing?

from libopenshot.

joebonrichie avatar joebonrichie commented on May 22, 2024

Just an FYI had to rebuild with ruby bindings disabled -DENABLE_RUBY=OFF to compile. Can provide more details if this gets any attention.

from libopenshot.

ferdnyc avatar ferdnyc commented on May 22, 2024

I just hit this myself, compiling with gcc 7.3.1 on Fedora 27.

The issue, surprisingly enough, is actually in libopenshot-audio, specifically one of the macros in its header files that libopenshot includes.

I do not even remotely pretend to understand why this fixes the issue or even makes a difference, but the same bug was reported over at open-source-parsers/jsoncpp#214, and a comment there pointed me at the fix.

Here's a diff rooted in the libopenshot-audio-0.1.5 source tree, that shows the fix:

diff -u JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h.orig JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h
--- JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h.orig	2018-02-21 03:54:09.141547407 -0500
+++ JuceLibraryCode/modules/juce_core/maths/juce_MathsFunctions.h	2018-02-21 03:54:36.394066259 -0500
@@ -381,7 +381,8 @@
    #if JUCE_WINDOWS && !JUCE_MINGW
     return _finite (value) != 0;
    #else
-    return std::isfinite (value);
+    using namespace std;
+    return isfinite (value);
    #endif
 }
 
@@ -391,7 +392,8 @@
    #if JUCE_WINDOWS && !JUCE_MINGW
     return _finite (value) != 0;
    #else
-    return std::isfinite (value);
+    using namespace std;
+    return isfinite (value);
    #endif
 }
 

Like I said, I don't pretend to understand why that works (I'm not a C++ guy), but if libopenshot-audio is built and installed with the headers patched in that way (or if the headers are manually modified post-install, which is how I originally tested the change), then libopenshot will compile successfully.

(If you're using the libopenshot-0.1.5.tar.gz release code, though, you also need to apply the fix from pull request #67 in this repo.)

from libopenshot.

ferdnyc avatar ferdnyc commented on May 22, 2024

Closed with OpenShot/libopenshot-audio#37

from libopenshot.

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.