Hello all
I have made a “make CONFIG=Release”, as explained in the doc, but it crashed with those lines :
juce_PathStrokeType.cpp
juce_Point.cpp
make[1]: *** Pas de règle pour fabriquer la cible « ../../src/juce_appframework/gui/graphics/geometry/juce_positionedrectangle.cpp », nécessaire pour « ../../bin/intermediate_linux/Release/juce_positionedrectangle.o ». Arrêt.
make: *** [JUCE] Erreur 2
(yes it’s in french, i am)
Sorry if this bug is already fixed, i’ve searched…
edit: i’m running Debian Etch
Thanks
i think you should update to the latest svn version, or at least to 1.43…
1.43 crashes too, with other messages :?
I will try the latest versions, but i don’t know anything about SVN…
Where can i find svn versions ?
something like this:
$ apt-get install subversion
$ cd MyProjects && svn co https://juce.svn.sourceforge.net/svnroot/juce/trunk juce
hope this helps
1.43 builds just fine here, also on debian etch.
Did you run the premake script again? Because the default one doesn’t always work for some reason.
Thanks for your answers
[quote=“Rock Hardbuns”]1.43 builds just fine here, also on debian etch.
Did you run the premake script again? Because the default one doesn’t always work for some reason.[/quote]
I have just installed premake, but the program itself doesn’t work
[quote]premake: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4’ not found (required by premake)
[/quote]
I can’t find this package
Download the source package and build it. It’s a simple build. Just unzip and type “make”… takes 2 seconds.
…and the take the binary from the bin dir and drop it in /usr/local/bin or where ever you like to keep local builds.
[quote=“Rock Hardbuns”]Download the source package and build it. It’s a simple build. Just unzip and type “make”… takes 2 seconds.
…and the take the binary from the bin dir and drop it in /usr/local/bin or where ever you like to keep local builds.[/quote]
I did it, and when i type “premake” or “premake [anything]”, it gives me the message above…
That’s odd. Are you certain that you don’t have the pre-built version loitering somewhere in the “path”.
I’m not sure how this stuff works, but I got the same message with the binary version, but the one I built my self worked. Probably because it linked against the version of Glib I have installed.
Having the build go all right, but then not run is sort off voodoo-ish, I think.
I suppose I could mail you my binary though. (But if your build went ok they should be identical, given that we are on the same distro, same GCC/Glib etc.)
Wow, excuse me, it’s the binay version and not the built one that i have :oops:
Don’t know what i had smoked when i’ve read your message
(please tell me if you see some english parse errors in my posts :D)
Well, it seems to be harder than that, I downloaded the sources of Premake (SVN version, as explained in the Premake version of SourceForge), and i found just one makefile, in a sub/sub/sub/sub/sub/sub directiry of the achive, and it doesn’t work at all
Where did you find your Premake sources ?
LOL
go here:
http://sourceforge.net/project/showfiles.php?group_id=71616
Download the file called premake-src-3.3.1.zip
Thanks, how did I do not to see it :roll: i probably thought “SRC” was an OS :shock:
Now Premake works !
So, let’s come back to Juce :
in the directory juce/build/linux, i typed “premake --os linux --file juce_premake.lua” ; eveyuthing seemed fine. Then I typed make CONFIG=Release, and here comes another errors huricane :
(…)
juce_ThreadWithProgressWindow.cpp
juce_TooltipWindow.cpp
juce_TopLevelWindow.cpp
juce_linux_Audio.cpp
platform_specific_code/juce_linux_Audio.cpp:38:28: error: alsa/asoundlib.h: Aucun fichier ou répertoire de ce type
platform_specific_code/juce_linux_Audio.cpp:57: error: variable or field ‘getDeviceSampleRates’ declared void
platform_specific_code/juce_linux_Audio.cpp:57: error: ‘snd_pcm_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:57: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:57: error: expected primary-expression before ‘&’ token
platform_specific_code/juce_linux_Audio.cpp:57: error: ‘rates’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:57: error: initializer expression list treated as compound expression
platform_specific_code/juce_linux_Audio.cpp:58: error: expected ‘,’ or ‘;’ before ‘{’ token
platform_specific_code/juce_linux_Audio.cpp:74: error: variable or field ‘getDeviceNumChannels’ declared void
platform_specific_code/juce_linux_Audio.cpp:74: error: ‘snd_pcm_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:74: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:74: error: expected primary-expression before ‘unsigned’
platform_specific_code/juce_linux_Audio.cpp:74: error: expected primary-expression before ‘unsigned’
platform_specific_code/juce_linux_Audio.cpp:74: error: initializer expression list treated as compound expression
platform_specific_code/juce_linux_Audio.cpp:75: error: expected ‘,’ or ‘;’ before ‘{’ token
platform_specific_code/juce_linux_Audio.cpp: In function ‘void juce::getDeviceProperties(const juce::String&, unsigned int&, unsigned int&, unsigned int&, unsigned int&, juce::Array<int, juce::DummyCriticalSection>&)’:
platform_specific_code/juce_linux_Audio.cpp:93: error: ‘snd_ctl_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:93: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:95: error: ‘SND_CTL_NONBLOCK’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:95: error: ‘snd_ctl_open’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:97: error: ‘snd_pcm_info_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:97: error: ‘info’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:98: error: ‘snd_pcm_info_alloca’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:100: error: ‘SND_PCM_STREAM_PLAYBACK’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:100: error: ‘snd_pcm_info_set_stream’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:101: error: ‘snd_pcm_info_set_device’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:102: error: ‘snd_pcm_info_set_subdevice’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:104: error: ‘snd_ctl_pcm_info’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:106: error: ‘snd_pcm_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:106: error: ‘pcmHandle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:107: error: ‘SND_PCM_ASYNC’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:107: error: ‘SND_PCM_NONBLOCK’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:107: error: ‘snd_pcm_open’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:109: error: ‘juce::getDeviceNumChannels’ cannot be used as a function
platform_specific_code/juce_linux_Audio.cpp:110: error: ‘juce::getDeviceSampleRates’ cannot be used as a function
platform_specific_code/juce_linux_Audio.cpp:112: error: ‘snd_pcm_close’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:116: error: ‘SND_PCM_STREAM_CAPTURE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:118: error: ‘snd_ctl_pcm_info’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:120: error: ‘snd_pcm_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:120: error: ‘pcmHandle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:121: error: ‘SND_PCM_ASYNC’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:121: error: ‘SND_PCM_NONBLOCK’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:121: error: ‘snd_pcm_open’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:123: error: ‘juce::getDeviceNumChannels’ cannot be used as a function
platform_specific_code/juce_linux_Audio.cpp:126: error: ‘juce::getDeviceSampleRates’ cannot be used as a function
platform_specific_code/juce_linux_Audio.cpp:128: error: ‘snd_pcm_close’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:132: error: ‘snd_ctl_close’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: At global scope:
platform_specific_code/juce_linux_Audio.cpp:328: error: ISO C++ forbids declaration of ‘snd_pcm_t’ with no type
platform_specific_code/juce_linux_Audio.cpp:328: error: expected ‘;’ before ‘*’ token
platform_specific_code/juce_linux_Audio.cpp: In constructor ‘juce::ALSADevice::ALSADevice(const juce::String&, bool)’:
platform_specific_code/juce_linux_Audio.cpp:142: error: class ‘juce::ALSADevice’ does not have any field named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:148: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:149: error: ‘SND_PCM_STREAM_CAPTURE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:149: error: ‘SND_PCM_STREAM_PLAYBACK’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:150: error: ‘SND_PCM_ASYNC’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:150: error: ‘snd_pcm_open’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In destructor ‘juce::ALSADevice::~ALSADevice()’:
platform_specific_code/juce_linux_Audio.cpp:155: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:156: error: ‘snd_pcm_close’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSADevice::setParameters(unsigned int, int, int)’:
platform_specific_code/juce_linux_Audio.cpp:161: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:164: error: ‘snd_pcm_hw_params_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:164: error: ‘hwParams’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:165: error: ‘snd_pcm_hw_params_alloca’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:167: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:167: error: ‘snd_pcm_hw_params_any’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:170: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:170: error: ‘SND_PCM_ACCESS_RW_NONINTERLEAVED’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:170: error: ‘snd_pcm_hw_params_set_access’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:172: error: ‘SND_PCM_ACCESS_RW_INTERLEAVED’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:180: error: ‘SND_PCM_FORMAT_FLOAT_LE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:181: error: ‘SND_PCM_FORMAT_FLOAT_BE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:182: error: ‘SND_PCM_FORMAT_S32_LE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:183: error: ‘SND_PCM_FORMAT_S32_BE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:184: error: ‘SND_PCM_FORMAT_S24_LE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:185: error: ‘SND_PCM_FORMAT_S24_BE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:186: error: ‘SND_PCM_FORMAT_S16_LE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:187: error: ‘SND_PCM_FORMAT_S16_BE’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:192: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:192: error: ‘_snd_pcm_format’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:192: error: ‘snd_pcm_hw_params_set_format’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:209: error: ‘snd_pcm_uframes_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:209: error: expected ;' before ‘samplesPerPeriod’ platform_specific_code/juce_linux_Audio.cpp:211: error: ‘handle’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:211: error: ‘snd_pcm_hw_params_set_rate_near’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:212: error: ‘snd_pcm_hw_params_set_channels’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:213: error: ‘snd_pcm_hw_params_set_periods_near’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:214: error: ‘samplesPerPeriod’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:214: error: ‘snd_pcm_hw_params_set_period_size_near’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:215: error: ‘snd_pcm_hw_params’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:220: error: ‘snd_pcm_sw_params_t’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:220: error: ‘swParams’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:221: error: ‘snd_pcm_sw_params_alloca’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:223: error: ‘handle’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:223: error: ‘snd_pcm_sw_params_current’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:224: error: ‘snd_pcm_sw_params_set_silence_threshold’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:225: error: ‘snd_pcm_sw_params_set_silence_size’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:226: error: ‘samplesPerPeriod’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:226: error: ‘snd_pcm_sw_params_set_start_threshold’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:227: error: ‘snd_pcm_sw_params_set_stop_threshold’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:228: error: ‘snd_pcm_sw_params’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSADevice::write(float**, int)’: platform_specific_code/juce_linux_Audio.cpp:259: error: ‘snd_pcm_sframes_t’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:259: error: expected
;’ before ‘num’
platform_specific_code/juce_linux_Audio.cpp:261: error: ‘num’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:270: error: ‘snd_pcm_sframes_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:270: error: expected ;' before ‘num’ platform_specific_code/juce_linux_Audio.cpp:272: error: ‘num’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:276: error: ‘handle’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:276: error: ‘snd_pcm_prepare’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSADevice::read(float**, int)’: platform_specific_code/juce_linux_Audio.cpp:294: error: ‘snd_pcm_sframes_t’ was not declared in this scope platform_specific_code/juce_linux_Audio.cpp:294: error: expected
;’ before ‘num’
platform_specific_code/juce_linux_Audio.cpp:296: error: ‘num’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:300: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:300: error: ‘snd_pcm_prepare’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:312: error: ‘snd_pcm_sframes_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:312: error: expected `;’ before ‘num’
platform_specific_code/juce_linux_Audio.cpp:314: error: ‘num’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSADevice::failed(int)’:
platform_specific_code/juce_linux_Audio.cpp:345: error: ‘snd_strerror’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘void juce::ALSAThread::open(const juce::BitArray&, const juce::BitArray&, double, int)’:
platform_specific_code/juce_linux_Audio.cpp:466: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:466: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:466: error: ‘snd_pcm_link’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:469: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:469: error: ‘snd_pcm_prepare’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:472: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:472: error: ‘snd_pcm_prepare’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘virtual void juce::ALSAThread::run()’:
platform_specific_code/juce_linux_Audio.cpp:560: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:560: error: ‘snd_pcm_wait’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:565: error: ‘class juce::ALSADevice’ has no member named ‘handle’
platform_specific_code/juce_linux_Audio.cpp:565: error: ‘snd_pcm_avail_update’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSAThread::failed(int)’:
platform_specific_code/juce_linux_Audio.cpp:624: error: ‘snd_strerror’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp: In member function ‘virtual void juce::ALSAAudioIODeviceType::scanForDevices()’:
platform_specific_code/juce_linux_Audio.cpp:831: error: ‘snd_ctl_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:831: error: ‘handle’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:832: error: ‘snd_ctl_card_info_t’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:832: error: ‘info’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:833: error: ‘snd_ctl_card_info_alloca’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:839: error: ‘snd_card_next’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:844: error: ‘snd_ctl_open’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:846: error: ‘snd_ctl_card_info’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:848: error: ‘snd_ctl_card_info_get_id’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:857: error: ‘snd_ctl_pcm_next_device’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:865: error: ‘snd_ctl_card_info_get_name’ was not declared in this scope
platform_specific_code/juce_linux_Audio.cpp:879: error: ‘snd_ctl_close’ was not declared in this scope
make[1]: *** […/…/bin/intermediate_linux/Debug/juce_linux_Audio.o] Erreur 1
make: *** [JUCE] Erreur 2
johnny@debian:~/apps/juce/build/linux$
:?
jules
July 7, 2007, 2:31pm
14
Well presumably you’ve not got ALSA installed, because it can’t find the ALSA header file.
If you don’t want to build audio support, you can just turn off JUCE_ALSA in the juce_Config.h file.
is there a way to get a complete list of Juce’s dependencies ?
Try this… (no openGL so either add those *-dev packs or make sure it is not defined in the juce über header)
I’m not sure all of those are actually needed, but what the hell…
Also, if you like to keep track of stuff, like I do… save the output from apt so you can roll back the installation including dependencies. Deborphan is a helpful thing too.
Nice !
It works.
the pb was that libasound2-dev was missing. Many thanks
Now Juce is built, shall I put some things in /usr/include or /usr/lib to make it usable ?
Include is for header files, lib is for libraries. But you don’t need to put juce there unless you really want to. Just keep it where ever is convenient for you an update the path in the premake file.
Since you typically link juce statically, it doesn’t really matter where it is as long as the linker finds it. (Actually the same is pretty much true for dynamically linked libraries)
Most people keep the Juce folder next to their own project folder I think. It simplifies things since you’ll need to rebuild it every so often.