[Clam-devel] CLAM & Eclipse on OS X

Xavier xavier at amatriain.net
Wed Feb 11 01:32:11 PST 2009


Great! Actually I just remembered that we could have access to clam's 
wiki using Google's cache. Here is the instructions we prepared on using 
Eclipse with CLAM. Is there anything different in the steps you took? If 
so, once we have the wiki up again we could update.

*http://tinyurl.com/dn3v77*


Amichi Amar wrote:
> I solved the problems I was having with scons and eclipse.
>
> The issue was that the PATH environment variable of eclipse, when 
> launched by double clicking the icon, was always 
> /usr/bin:/bin:/usr/sbin:/sbin
>
> For some reason eclipse isn't getting the appropriate PATH. I don't 
> know why and by reading various mailing list posts this problem exists 
> with eclipse on both Windows and OS X.
>
> The solution is to launch eclipse from the command line which makes it 
> inherit the environment of the shell - along with an appropriate PATH.
>
> Also, anytime you click 'Apply' on the configuration panel of SCons it 
> *overwrites* the SConstruct file. If you set arguments to pass to  
> SCons (e.g. force_avoid_configure=1) and don't click Apply, things 
> will work as intended. Funky behavior.
>
> CLAM and NetworkEditor now working for me with eclipse.
>
> Cheers,
>
> Amichi
>
> On Feb 9, 2009, at 3:53 AM, Pau Arumí wrote:
>
>> El dl 09 de 02 de 2009 a les 11:32 +0100, en/na Xavier va escriure:
>>> We had instructions on how to work with Eclipse and CLAM in the wiki...
>>> but the wiki is down :-( David, Pau, any news of when this is going to
>>> be fixed? Should we move the wiki somewhere else?
>>
>> Yes, there is news on this. We already have the BD dumps of the wikis
>> and a new hosting ready. Now it's a matter of finding time to do the
>> mediawiki versions upgrade by running scripts. It should be done,
>> hopefully, in one week.
>>
>> P
>>
>>
>>
>>> David García Garzón wrote:
>>>> It seems like eclipse was generating its own SConstruct file 
>>>> instead of taking
>>>> the provided one. The output is unrelated to anything you can find 
>>>> in CLAM's
>>>> SConstruct file: 'darwin' subdirectory, compiling the examples 
>>>> (which have
>>>> their own SConstruct)...
>>>>
>>>> No idea about how to manage that in eclipse.
>>>>
>>>> David.
>>>>
>>>>
>>>> On Diumenge 08 Febrer 2009 08:45:43 Amichi Amar wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I'm trying to get an eclipse project set up to compile CLAM and I'm
>>>>> having trouble. I'm using eclipse 3.4.1
>>>>>
>>>>> I have all the appropriate dependencies installed including the SCons
>>>>> plugin for eclipse. My scons installation is from macports and sits
>>>>> under /opt/local. I've updated the appropriate fields in the SCons
>>>>> configuration panel of the eclipse preferences.
>>>>>
>>>>> In eclipse I create a new C++ makefile project (empty project) and 
>>>>> set
>>>>> the location to where I have CLAM unpacked. Then I convert the 
>>>>> project
>>>>> to SCons project. When I try to 'build all' I get the output that is
>>>>> below.
>>>>>
>>>>> If I try to build CLAM using Scons from the terminal (scons 
>>>>> configure,
>>>>> scons, etc) everything works just fine. And I get very different
>>>>> output than the output below. Only through eclipse things go wrong.
>>>>>
>>>>> Has anyone encountered this already?
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Amichi
>>>>>
>>>>>
>>>>> Console output in eclipse:
>>>>> --------------------------
>>>>>
>>>>> /opt/local/bin/scons -u platform=default configuration=release
>>>>> with_jack=no .
>>>>> scons: Entering directory `/Users/amichi/Code/CLAM/CLAM-1.3.0'
>>>>> scons: Reading SConscript files ...
>>>>> host='darwin'
>>>>> platform='darwin'
>>>>> configuration='release'
>>>>>
>>>>> prepared directory '.'
>>>>>
>>>>> scons: warning: The env.Copy() method is deprecated; use the
>>>>> env.Clone() method instead.
>>>>> File "/Users/amichi/Code/CLAM/CLAM-1.3.0/SConstruct", line 454, in
>>>>> prepareEnvironment
>>>>> prepared directory 'artwork'
>>>>> prepared directory 'debian'
>>>>> prepared directory 'deprecated'
>>>>> prepared target    'libdeprecated.dylib'
>>>>> prepared directory 'deprecated/Base'
>>>>> prepared target    'libBase.dylib'
>>>>> prepared directory 'deprecated/Util'
>>>>> prepared target    'libUtil.dylib'
>>>>> prepared directory 'deprecated/View'
>>>>> prepared target    'libView.dylib'
>>>>> prepared directory 'examples'
>>>>> prepared target    'libexamples.dylib'
>>>>> prepared directory 'examples/ConfiguratorExample'
>>>>> prepared target    'libConfiguratorExample.dylib'
>>>>> prepared directory 'examples/ControlArrayExamples'
>>>>> prepared target    'libControlArrayExamples.dylib'
>>>>> prepared directory 'examples/FormantTracking'
>>>>> prepared directory 'examples/FormantTracking/DownSampling'
>>>>> prepared target    'libDownSampling.dylib'
>>>>> prepared directory 'examples/FormantTracking/FormantExtractor'
>>>>> prepared target    'libFormantExtractor.dylib'
>>>>> prepared directory 'examples/FormantTracking/FormantTracker'
>>>>> prepared target    'libFormantTracker.dylib'
>>>>> prepared directory 'examples/FormantTracking/LPC'
>>>>> prepared target    'libLPC.dylib'
>>>>> prepared directory 'examples/FormantTracking/MDP'
>>>>> prepared target    'libMDP.dylib'
>>>>> prepared directory 'examples/FormantTracking/TDFilterGenerator'
>>>>> prepared target    'libTDFilterGenerator.dylib'
>>>>> prepared directory 'examples/loopMaker'
>>>>> prepared target    'libloopMaker.dylib'
>>>>> prepared directory 'examples/PluginExamples'
>>>>> prepared directory 'examples/PluginExamples/ClamLadspaPluginExample'
>>>>> prepared target    'libClamLadspaPluginExample.dylib'
>>>>> prepared directory 'examples/PluginExamples/ClamNativePluginExample'
>>>>> prepared target    'libClamNativePluginExample.dylib'
>>>>> prepared directory 
>>>>> 'examples/PluginExamples/LadspaOSCRemoteController'
>>>>> prepared target    'libLadspaOSCRemoteController.dylib'
>>>>> prepared directory 'examples/PortsAndControlsUsageExample'
>>>>> prepared target    'libPortsAndControlsUsageExample.dylib'
>>>>> prepared directory 'examples/SDIF2Wav'
>>>>> prepared target    'libSDIF2Wav.dylib'
>>>>> prepared directory 'examples/SDIF2WavStreaming'
>>>>> prepared target    'libSDIF2WavStreaming.dylib'
>>>>> prepared directory 'examples/SDIFToWavStreaming'
>>>>>
>>>>> scons: *** Multiple ways to build the same target were specified for:
>>>>> examples/SDIFToWavStreaming/.build/darwin/release/
>>>>> SDIF2WavStreaming.os  (from ['examples/SDIFToWavStreaming/
>>>>> SDIF2WavStreaming.c'] and from ['examples/SDIFToWavStreaming/
>>>>> SDIF2WavStreaming.cxx'])
>>>>> File "/Users/amichi/Code/CLAM/CLAM-1.3.0/SConstruct", line 565, in
>>>>> prepareTargets
>>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Clam-devel mailing list
>>> Clam-devel at llistes.projectes.lafarga.org
>>> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel 
>>>
>>
>>
>> _______________________________________________
>> Clam-devel mailing list
>> Clam-devel at llistes.projectes.lafarga.org
>> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel 
>>
>
>
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel





More information about the clam-devel mailing list