Running Projucer on Freya

Hi folks

 

I recently downloaded the latest juce for linux and tried to run it on freya

and i keep getting this error message :

./Projucer: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by ./Projucer)


I've installed the required library but still it wont run.I have also tried the windows version.It runs well but no

build tab is visible.(Win7)

Please Help

Thanks

Live building is not currently supported on Windows or Linux. For linux, we recommend building your own version of the Introjucer. Simply clone the JUCE repository:

git clone https://github.com/julianstorer/JUCE.git
cd JUCE/extras/Introjucer/Builds/Linux
make
./build/Introjucer

Please note that you will need the following dependencies.

 

 

Subject says it all....


In file included from ../../../../modules/juce_core/juce_core.cpp:191:0:
../../../../modules/juce_core/native/juce_posix_SharedCode.h: In static member function ‘static bool juce::Process::setMaxNumberOfFileHandles(int)’:
../../../../modules/juce_core/native/juce_posix_SharedCode.h:156:5: error: ‘rlimit’ was not declared in this scope
     rlimit lim;
     ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:156:12: error: expected ‘;’ before ‘lim’
     rlimit lim;
            ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:157:20: error: ‘RLIMIT_NOFILE’ was not declared in this scope
     if (getrlimit (RLIMIT_NOFILE, &lim) == 0)
                    ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:157:36: error: ‘lim’ was not declared in this scope
     if (getrlimit (RLIMIT_NOFILE, &lim) == 0)
                                    ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:157:39: error: ‘getrlimit’ was not declared in this scope
     if (getrlimit (RLIMIT_NOFILE, &lim) == 0)
                                       ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:159:50: error: ‘RLIM_INFINITY’ was not declared in this scope
         if (newMaxNumber <= 0 && lim.rlim_cur == RLIM_INFINITY && lim.rlim_max == RLIM_INFINITY)
                                                  ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:162:30: error: ‘rlim_t’ was not declared in this scope
         if (lim.rlim_cur >= (rlim_t) newMaxNumber)
                              ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:162:38: error: expected ‘)’ before ‘newMaxNumber’
         if (lim.rlim_cur >= (rlim_t) newMaxNumber)
                                      ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:166:5: error: ‘lim’ was not declared in this scope
     lim.rlim_cur = lim.rlim_max = newMaxNumber <= 0 ? RLIM_INFINITY : (rlim_t) newMaxNumber;
     ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:166:55: error: ‘RLIM_INFINITY’ was not declared in this scope
     lim.rlim_cur = lim.rlim_max = newMaxNumber <= 0 ? RLIM_INFINITY : (rlim_t) newMaxNumber;
                                                       ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:166:72: error: ‘rlim_t’ was not declared in this scope
     lim.rlim_cur = lim.rlim_max = newMaxNumber <= 0 ? RLIM_INFINITY : (rlim_t) newMaxNumber;
                                                                        ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:166:80: error: expected ‘;’ before ‘newMaxNumber’
     lim.rlim_cur = lim.rlim_max = newMaxNumber <= 0 ? RLIM_INFINITY : (rlim_t) newMaxNumber;
                                                                                ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:167:23: error: ‘RLIMIT_NOFILE’ was not declared in this scope
     return setrlimit (RLIMIT_NOFILE, &lim) == 0;
                       ^
../../../../modules/juce_core/native/juce_posix_SharedCode.h:167:42: error: ‘setrlimit’ was not declared in this scope
     return setrlimit (RLIMIT_NOFILE, &lim) == 0;
                                          ^

That is a recent commit, I think an include is missing for linux.

That's odd.. It compiles just fine for me on linux!

Does it start working for you if you add this:

  #include <sys/resource.h>

in juce_core.cpp at line 86 ?

OK this is fixed on the latest tip.