Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build Linux version #136

Open
tank-trax opened this issue May 3, 2019 · 6 comments

Comments

@tank-trax
Copy link

commented May 3, 2019

Debian 9.9 when building standalone

Compiling include_hi_scripting.cpp
../../JuceLibraryCode/include_hi_scripting.cpp:9:41: fatal error: hi_scripting/hi_scripting.cpp: No such file or directory

                                         ^
compilation terminated.
Makefile:206: recipe for target 'build/intermediate/Debug/include_hi_scripting_3ee86399.o' failed
make: *** [build/intermediate/Debug/include_hi_scripting_3ee86399.o] Error 1
@tank-trax

This comment has been minimized.

Copy link
Author

commented May 3, 2019

when building the VST...

Compiling include_hi_scripting_01.cpp
In file included from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/juce_core.h:278:0,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/hi_core.h:65,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/hi_dsp.h:55,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/hi_components.h:57,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/hi_sampler.h:54,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:60,
                 from ../../../../../HISE/hi_backend/../hi_modules/hi_modules.h:57,
                 from ../../../../../HISE/hi_backend/hi_backend.h:55,
                 from ../../JuceLibraryCode/JuceHeader.h:17,
                 from ../../../../../HISE/hi_scripting/hi_scripting_01.cpp:35,
                 from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9:
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_Array.h: In instantiation of ‘int juce::Array<ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize>::getNumAllocated() const [with ElementType = juce::var; TypeOfCriticalSectionToUse = juce::DummyCriticalSection; int minimumAllocatedSize = 0]’:
../../../../../HISE/hi_scripting/scripting/engine/JavascriptEngineExpressions.cpp:130:4:   required from here
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_Array.h:1025:17: error: ‘int juce::ArrayBase<juce::var, juce::DummyCriticalSection>::numAllocated’ is private within this context
   return values.numAllocated;
          ~~~~~~~^~~~~~~~~~~~
In file included from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/juce_core.h:277:0,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/hi_core.h:65,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/hi_dsp.h:55,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/hi_components.h:57,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/hi_sampler.h:54,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:60,
                 from ../../../../../HISE/hi_backend/../hi_modules/hi_modules.h:57,
                 from ../../../../../HISE/hi_backend/hi_backend.h:55,
                 from ../../JuceLibraryCode/JuceHeader.h:17,
                 from ../../../../../HISE/hi_scripting/hi_scripting_01.cpp:35,
                 from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9:
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_ArrayBase.h:588:24: note: declared private here
     int numAllocated = 0, numUsed = 0;
                        ^
Makefile:202: recipe for target 'build/intermediate/Release/include_hi_scripting_01_6ad431f1.o' failed
make: *** [build/intermediate/Release/include_hi_scripting_01_6ad431f1.o] Error 1


@tank-trax

This comment has been minimized.

Copy link
Author

commented May 3, 2019

make CONFIG=Release
Compiling DspUnitTests.cpp                                                                                                                                                                                                                  
Compiling HiseEventBufferUnitTests.cpp                                                                                                                                                                                                      
Compiling MainComponent.cpp                                                                                                                                                                                                                 
In file included from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/hi_core.h:340:0,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/hi_dsp.h:55,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/hi_components.h:57,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/hi_sampler.h:54,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:60,
                 from ../../../../../HISE/hi_backend/../hi_modules/hi_modules.h:57,
                 from ../../../../../HISE/hi_backend/hi_backend.h:55,
                 from ../../Source/../JuceLibraryCode/JuceHeader.h:17,
                 from ../../Source/MainComponent.h:12,
                 from ../../Source/MainComponent.cpp:12:
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/Macros.h:62:0: warning: "RETURN_IF_NO_THROW" redefined
 #define RETURN_IF_NO_THROW(x) return x;

with loads of errors

../../Source/MainComponent.cpp: In member function ‘void MainContentComponent::handleCommandLineArguments(const juce::String&)’:
../../Source/MainComponent.cpp:49:74: error: ‘using NativeFileHandler = class hise::FrontendHandler {aka class hise::FrontendHandler}’ has no member named ‘getWorkDirectory’; did you mean ‘getSubDirectory’?
    const File currentProjectFolder = GET_PROJECT_HANDLER(mainSynthChain).getWorkDirectory();
                                                                          ^~~~~~~~~~~~~~~~
../../Source/MainComponent.cpp:54:41: error: ‘using NativeFileHandler = class hise::FrontendHandler {aka class hise::FrontendHandler}’ has no member named ‘setWorkingProject’
     GET_PROJECT_HANDLER(mainSynthChain).setWorkingProject(projectDirectory, nullptr);
                                         ^~~~~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option ‘-Wno-inconsistent-missing-override’
Makefile:148: recipe for target 'build/intermediate/Release/MainComponent_a6ffb4a5.o' failed
make: *** [build/intermediate/Release/MainComponent_a6ffb4a5.o] Error 1


@tank-trax

This comment has been minimized.

Copy link
Author

commented May 6, 2019

the most recent git pull now allows for the successful building of HISE Standalone but the VST plug in fails again

Compiling include_hi_scripting_01.cpp
In file included from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/juce_core.h:278:0,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/hi_core.h:65,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/hi_dsp.h:55,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/hi_components.h:57,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/hi_sampler.h:54,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:60,
                 from ../../../../../HISE/hi_backend/../hi_modules/hi_modules.h:57,
                 from ../../../../../HISE/hi_backend/hi_backend.h:55,
                 from ../../JuceLibraryCode/JuceHeader.h:17,
                 from ../../../../../HISE/hi_scripting/hi_scripting_01.cpp:35,
                 from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9:
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_Array.h: In instantiation of ‘int juce::Array<ElementType, TypeOfCriticalSectionToUse, minimumAllocatedSize>::getNumAllocated() const [with ElementType = juce::var; TypeOfCriticalSectionToUse = juce::DummyCriticalSection; int minimumAllocatedSize = 0]’:
../../../../../HISE/hi_scripting/scripting/engine/JavascriptEngineExpressions.cpp:130:4:   required from here
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_Array.h:1025:17: error: ‘int juce::ArrayBase<juce::var, juce::DummyCriticalSection>::numAllocated’ is private within this context
   return values.numAllocated;
          ~~~~~~~^~~~~~~~~~~~
In file included from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/juce_core.h:277:0,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/hi_core.h:65,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/hi_dsp.h:55,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/hi_components.h:57,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/hi_sampler.h:54,
                 from ../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/hi_scripting.h:60,
                 from ../../../../../HISE/hi_backend/../hi_modules/hi_modules.h:57,
                 from ../../../../../HISE/hi_backend/hi_backend.h:55,
                 from ../../JuceLibraryCode/JuceHeader.h:17,
                 from ../../../../../HISE/hi_scripting/hi_scripting_01.cpp:35,
                 from ../../JuceLibraryCode/include_hi_scripting_01.cpp:9:
../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/../JUCE/modules/juce_core/containers/juce_ArrayBase.h:588:24: note: declared private here
     int numAllocated = 0, numUsed = 0;
                        ^
Makefile:202: recipe for target 'build/intermediate/Debug/include_hi_scripting_01_6ad431f1.o' failed
make: *** [build/intermediate/Debug/include_hi_scripting_01_6ad431f1.o] Error 1

even though I was able to build the VST from this package -> 2.1.0.tar.gz

@emmetoneillpdx

This comment has been minimized.

Copy link

commented Oct 7, 2019

Hey there,

I'm also having issues building HISE Standalone on Manjaro Linux.
I'm getting multiple errors in the JUCE modules themselves.
Here's my entire make output and here are a couple of the specific errors that I'm running into.

../../../../JUCE/modules/juce_graphics/colour/juce_PixelFormats.h:116:77: error: cannot bind packed field ‘((juce::PixelARGB*)this)->juce::PixelARGB::<anonymous>.juce::PixelARGB::<unnamed union>::comps[3]’ to ‘juce::uint8&’ {aka ‘unsigned char&’}

../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_dsp_library/dsp_library/HiseLibraryHeader.cpp:14:1: error: ‘String’ does not name a type

../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/scripting/scripting_audio_processor/ScriptDspModules.h:502:26: error: ‘sqrtf’ is not a member of ‘std’; did you mean ‘sqrt’?

../../../../../HISE/hi_backend/../hi_modules/../hi_scripting/../hi_sampler/../hi_components/../hi_dsp/../hi_core/Macros.h:44:55: error: ‘class hise::MainController’ has no member named ‘writeToConsole’

Just to make sure that my system isn't incorrectly configured, I went and grabbed the latest version of JUCE from their website, grabbed and built the vst3sdk, and created an empty test audio application, which built and ran fine.

Also maybe of note, when I start HISE/tools/projucer/Projucer initially I get a warning that it's out of date. Assuming nothing is wrong on my end (and that's a distinct possibility) maybe updating HISE to a newer version of JUCE (if possible) might fix these errors.

HISE seems like a cool project, by the way!

@tank-trax

This comment has been minimized.

Copy link
Author

commented Oct 7, 2019

Using Debian Stretch

I am having better results with HISE 2.1 available here

Also this video really helped

I was able to build it with the Intel Performance Primitives
the only change I did was not include the line --no-pie in the Extra Linker Flags

@emmetoneillpdx

This comment has been minimized.

Copy link

commented Oct 13, 2019

Unfortunately I'm still not having any luck building HISE (master or 2.1 stable) on Manjaro w/ GCC 9.1.0. I came across this thread from another project which had the same errors with JUCE and GCC9, but I'm continuing to run into compile errors even after trying to do a few small manual fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.