Anders Dahnielson | 9 Nov 21:52 2008

Building NetworkEditor on Gentoo

I'm trying to build the NetworkEditor on Gentoo with SCons v1.0.0.r3266.

But I'm getting this error:

scons: Reading SConscript files ...
EnvironmentError: No module named qt4:
  File "/home/anders/builds/NetworkEditor-1.3.0/SConstruct", line 44:
    env.Tool('qt4', toolpath=[clam_sconstoolspath])
  File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 1582:
    tool = apply(SCons.Tool.Tool, (tool, toolpath), kw)
  File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 89:
    module = self._tool_module()
  File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 140:
    raise SCons.Errors.EnvironmentError, e

--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>

_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
Anders Dahnielson | 9 Nov 22:55 2008

Re: Building NetworkEditor on Gentoo



On Sun, Nov 9, 2008 at 21:52, Anders Dahnielson <anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org> wrote:
I'm trying to build the NetworkEditor on Gentoo with SCons v1.0.0.r3266.

But I'm getting this error:

scons: Reading SConscript files ...
EnvironmentError: No module named qt4:
  File "/home/anders/builds/NetworkEditor-1.3.0/SConstruct", line 44:
    env.Tool('qt4', toolpath=[clam_sconstoolspath])
  File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 1582:
    tool = apply(SCons.Tool.Tool, (tool, toolpath), kw)
  File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 89:
    module = self._tool_module()
  File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 140:
    raise SCons.Errors.EnvironmentError, e

BTW, the above is from building manually.

If I try to emerge the NetworkEditor I get the instead:

scons: Reading SConscript files ...
Loading nsis tool...
Lodading dmg tool...
Version:  1.3.0
Package version:  1.3.0
Package QtDesigner was not found in the pkg-config search path.
Perhaps you should add the directory containing `QtDesigner.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QtDesigner' found
OSError: 'pkg-config QtCore QtGui QtOpenGL QtXml QtSvg QtUiTools QtDesigner --libs --cflags' exited 1:
  File "/var/tmp/portage/media-sound/NetworkEditor-1.3.0/work/NetworkEditor-1.3.0/SConstruct", line 91:
    crosscompiling=crosscompiling,
  File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 183:
    return apply(self.method, nargs, kwargs)
  File "/usr/share/clam/sconstools/qt4.py", line 464:
    self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
  File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 1371:
    return function(self, self.backtick(command))
  File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 549:
    raise OSError("'%s' exited %d" % (command, status))

I do have Qt Designer 4.3.3 installed but I can't find any QtDesigner.pc on my system!

--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>
_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
David García Garzón | 9 Nov 23:02 2008
X-Face

Re: Building NetworkEditor on Gentoo

Such qt4.py file is installed with the clam library. Frequent causes for this 
error are either not having a properly installed CLAM or not providing the 
proper clam_prefix option when calling scons for the NetworkEditor.

Could some of those reasons apply to your case?

David.

On Diumenge 09 Novembre 2008, Anders Dahnielson wrote:
> I'm trying to build the NetworkEditor on Gentoo with SCons v1.0.0.r3266.
>
> But I'm getting this error:
>
> scons: Reading SConscript files ...
> EnvironmentError: No module named qt4:
>   File "/home/anders/builds/NetworkEditor-1.3.0/SConstruct", line 44:
>     env.Tool('qt4', toolpath=[clam_sconstoolspath])
>   File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 1582:
>     tool = apply(SCons.Tool.Tool, (tool, toolpath), kw)
>   File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 89:
>     module = self._tool_module()
>   File "//usr/lib64/scons-1.0.0/SCons/Tool/__init__.py", line 140:
>     raise SCons.Errors.EnvironmentError, e

--

-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
David García Garzón | 10 Nov 00:01 2008
X-Face

Re: Building NetworkEditor on Gentoo

On Diumenge 09 Novembre 2008, Anders Dahnielson wrote:
> On Sun, Nov 9, 2008 at 23:02, David García Garzón 
<dgarcia@...>wrote:
> > Such qt4.py file is installed with the clam library. Frequent causes for
> > this
> > error are either not having a properly installed CLAM or not providing
> > the proper clam_prefix option when calling scons for the NetworkEditor.
> >
> > Could some of those reasons apply to your case?
>
> I emerged CLAM from the Pro-Audio Overlay but forgot to set the clam_prefix
> to /usr instead of /usr/local. D'oh!
>
> Now I'm getting this when building manually:
>
> scons: Reading SConscript files ...
> Loading nsis tool...
> Lodading dmg tool...
> Version:  1.3.0
> Package version:  1.3.0
> Package QtDesigner was not found in the pkg-config search path.
> Perhaps you should add the directory containing `QtDesigner.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'QtDesigner' found
> OSError: 'pkg-config QtCore QtGui QtOpenGL QtXml QtSvg QtUiTools QtDesigner
> --libs --cflags' exited 1:
>   File "/home/anders/builds/NetworkEditor-1.3.0/SConstruct", line 91:
>     crosscompiling=crosscompiling,
>   File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 183:
>     return apply(self.method, nargs, kwargs)
>   File "/usr/share/clam/sconstools/qt4.py", line 464:
>     self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
>   File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 1371:
>     return function(self, self.backtick(command))
>   File "//usr/lib64/scons-1.0.0/SCons/Environment.py", line 549:
>     raise OSError("'%s' exited %d" % (command, status))

NetworkEditor requires Qt 4.4. Compiling it with 4.3 could be feasible but it 
is not that straight forward. Qt4.3 missed the pc file for QtDesigner module 
but also and CLAM uses some 4.4 features that should be backported to 4.3.

I would look on how to upgrade to Qt 4.4 in gentoo.

--

-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia
Anders Dahnielson | 10 Nov 00:53 2008

Re: Building NetworkEditor on Gentoo



On Mon, Nov 10, 2008 at 00:01, David García Garzón <dgarcia-Rd+YOfPD5vKVc3sceRu5cw@public.gmane.org> wrote:

NetworkEditor requires Qt 4.4. Compiling it with 4.3 could be feasible but it
is not that straight forward. Qt4.3 missed the pc file for QtDesigner module
but also and CLAM uses some 4.4 features that should be backported to 4.3.

I would look on how to upgrade to Qt 4.4 in gentoo.

Upgraded to Qt 4.4.2 and everything compiles!

:-)

--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>
_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
Anders Dahnielson | 10 Nov 09:21 2008

SMSTools crashes when loading SDIF

1. Create a new configuration

2. Analyze the audio

3. Store analysis data as SDIF

4. Load the analysis data

5. Assertion fail:

##########################################################
################### ASSERTION FAILED #####################
##########################################################
At file /usr/include/CLAM/Frame.hxx line 66
You are trying to access attribute SinusoidalAnalSpectrum that is not Added or not Updated.

 Backtrace:

[0] /usr/lib/libclam_core.so.13(_ZN4CLAM13DumpBacktraceERSo+0x24) [0x2b155c977e80]
[1] /usr/lib/libclam_core.so.13 [0x2b155c978088]
[2] /usr/lib/libclam_core.so.13(_ZN4CLAM26ExecuteAssertFailedHandlerEPKcS1_i+0x27) [0x2b155c977af7]
[3] SMSTools [0x4f7f51]
[4] SMSTools [0x4c98c1]
[5] SMSTools [0x5151a5]
[6] /usr/lib/libclam_core.so.13(_ZNK3CBL8Functor0clEv+0x1a) [0x2b155c9ded94]
[7] /usr/lib/libclam_core.so.13(_ZN4CLAM6Thread12LaunchThreadEPv+0x3d) [0x2b155c9defff]
[8] /lib/libpthread.so.0 [0x2b155e846037]
[9] /lib/libc.so.6(clone+0x6d) [0x2b155e2bc25d]
Trace/breakpoint trap

When I saved the analysis data as XML and tried to load it I got this instead:

pure virtual method called
terminate called without an active exception
Aborted


My platform: CLAM 1.3.0 on Gentoo with Qt 4.4.2

--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>

_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
Anders Dahnielson | 10 Nov 09:26 2008

Re: SMSTools crashes when loading SDIF



On Mon, Nov 10, 2008 at 09:21, Anders Dahnielson <anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org> wrote:
1. Create a new configuration

2. Analyze the audio

3. Store analysis data as SDIF

4. Load the analysis data

5. Assertion fail:

##########################################################
################### ASSERTION FAILED #####################
##########################################################
At file /usr/include/CLAM/Frame.hxx line 66
You are trying to access attribute SinusoidalAnalSpectrum that is not Added or not Updated.

 Backtrace:

[0] /usr/lib/libclam_core.so.13(_ZN4CLAM13DumpBacktraceERSo+0x24) [0x2b155c977e80]
[1] /usr/lib/libclam_core.so.13 [0x2b155c978088]
[2] /usr/lib/libclam_core.so.13(_ZN4CLAM26ExecuteAssertFailedHandlerEPKcS1_i+0x27) [0x2b155c977af7]
[3] SMSTools [0x4f7f51]
[4] SMSTools [0x4c98c1]
[5] SMSTools [0x5151a5]
[6] /usr/lib/libclam_core.so.13(_ZNK3CBL8Functor0clEv+0x1a) [0x2b155c9ded94]
[7] /usr/lib/libclam_core.so.13(_ZN4CLAM6Thread12LaunchThreadEPv+0x3d) [0x2b155c9defff]
[8] /lib/libpthread.so.0 [0x2b155e846037]
[9] /lib/libc.so.6(clone+0x6d) [0x2b155e2bc25d]
Trace/breakpoint trap

When I saved the analysis data as XML and tried to load it I got this instead:

pure virtual method called
terminate called without an active exception
Aborted


My platform: CLAM 1.3.0 on Gentoo with Qt 4.4.2

Oh, by the way, I installed SDIF library from IRCAM and tried to use the querysdif tool on the analysis data but it only returned this:

querysdif: SdifFRead.c:524: SdifFReadPadding: Assertion `Padding <= 1024' failed.
Aborted

Don't know if it's due to an error in the stored SDIF file in both cases. It's beyond me.

--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>
_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
Anders Dahnielson | 10 Nov 10:08 2008

Re: SMSTools crashes when loading SDIF



On Mon, Nov 10, 2008 at 09:26, Anders Dahnielson <anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org> wrote:

Oh, by the way, I installed SDIF library from IRCAM and tried to use the querysdif tool on the analysis data but it only returned this:

querysdif: SdifFRead.c:524: SdifFReadPadding: Assertion `Padding <= 1024' failed.
Aborted

Don't know if it's due to an error in the stored SDIF file in both cases. It's beyond me.

I tried to use the SMSBatch utility and it worked!

Loading synthesizing stored analysis data, no problem.

(The only nitpicking is that an segmentation fault occurs when I hit '0' to  exit.)
 
--
Anders Dahnielson
<anders-lCF+ZhLzejfSUeElwK9/Pw@public.gmane.org>
_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
eparzy | 11 Nov 16:27 2008
Picon

Problem with compiling simple examples with scons

Hi!
I have a little problem with compiling the code examples that are in the wiki... I am new with using mingw and scons; I could compile the clam library itself, but now I want to compile these code examples to get familiar with the (I will need to make my own classes for my project).

I tried with the first example (http://clam.iua.upf.edu/wikis/clam/index.php/Constructing_and_playing_a_simple_network), using the given sconstruct file (http://clam.iua.upf.edu/wikis/clam/index.php/Minimal_SConstruct_to_build_with_CLAM_and_Qt4).

I try to compile it by typing that in the console in the directory where i have the sconstruct and main.cxx files:
$ scons clam_prefix='c:/mingw/local'

I get these errors:
TypeError: exceptions must be classes or instances, not str:
  File "D:\medialogy\med7\project\prog\SConstruct", line 23:
    env.Tool('qt4', toolpath=[clam_sconstoolspath])
  File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Environment.py", line 1632:
    tool(self)
  File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Tool\__init__.py", line 181:
    apply(self.generate, ( env, ) + args, kw)
  File "C:\mingw\local\share\clam\sconstools\qt4.py", line 258:
    QT4_LUPDATE = locateQt4Command(env,'lupdate', env['QTDIR']),
  File "C:\mingw\local\share\clam\sconstools\qt4.py", line 238:
    raise "Qt4 command '" + command + "' not found. Tried: " + ', '.join(triedPaths)

I then tried commenting env.Tool('qt4', toolpath=[clam_sconstoolspath]) and the lines in the env.EnableQt4Modules call (I don't plan to use Qt classes later on).
. Trying to compile with the same console command as before, I get:
ValueError: list.remove(x): x not in list:
  File "D:\medialogy\med7\project\prog\SConstruct", line 60:
    sources.remove(mainSource)

So in this case it seems that it's not even finding the main file...

Can somebody give me a hint about what's going wrong? It might be something trivial, as I said before I am really not used to scons and python scripting...

Thanks a lot in advance for help!
Emmanuel


_______________________________________________
CLAM mailing list
CLAM@...
http://clam.iua.upf.edu
David García Garzón | 11 Nov 17:09 2008
X-Face

Re: Problem with compiling simple examples with scons

You solved the first problem in the right way. If you don't have Qt and you 
are not planning to use it, just comment the related lines.

Regarding the second problem, sconstruct expects a 'main.cxx' file to be in 
the current folder. You can change that at the line where the mainSources 
variable is defined.

Regards.
David.

On Dimarts 11 Novembre 2008, eparzy@... wrote:
> Hi!
> I have a little problem with compiling the code examples that are in the
> wiki... I am new with using mingw and scons; I could compile the clam
> library itself, but now I want to compile these code examples to get
> familiar with the (I will need to make my own classes for my project).
>
> I tried with the first example
> (http://clam.iua.upf.edu/wikis/clam/index.php/Constructing_and_playing_a_si
>mple_network), using the given sconstruct file
> (http://clam.iua.upf.edu/wikis/clam/index.php/Minimal_SConstruct_to_build_w
>ith_CLAM_and_Qt4).
>
> I try to compile it by typing that in the console in the directory where i
> have the sconstruct and main.cxx files: $ scons
> clam_prefix='c:/mingw/local'
>
> I get these errors:
> TypeError: exceptions must be classes or instances, not str:
> ? File "D:\medialogy\med7\project\prog\SConstruct", line 23:
> ??? env.Tool('qt4', toolpath=[clam_sconstoolspath])
> ? File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Environment.py",
> line 1632: ??? tool(self)
> ? File "c:\Python26\Lib\site-packages\scons-1.1.0\SCons\Tool\__init__.py",
> line 181: ??? apply(self.generate, ( env, ) + args, kw)
> ? File "C:\mingw\local\share\clam\sconstools\qt4.py", line 258:
> ??? QT4_LUPDATE = locateQt4Command(env,'lupdate', env['QTDIR']),
> ? File "C:\mingw\local\share\clam\sconstools\qt4.py", line 238:
> ??? raise "Qt4 command '" + command + "' not found. Tried: " + ',
> '.join(triedPaths)
>
> I then tried commenting env.Tool('qt4', toolpath=[clam_sconstoolspath]) and
> the lines in the env.EnableQt4Modules call (I don't plan to use Qt classes
> later on). . Trying to compile with the same console command as before, I
> get: ValueError: list.remove(x): x not in list:
> ? File "D:\medialogy\med7\project\prog\SConstruct", line 60:
> ??? sources.remove(mainSource)
>
> So in this case it seems that it's not even finding the main file...
>
> Can somebody give me a hint about what's going wrong? It might be something
> trivial, as I said before I am really not used to scons and python
> scripting...
>
> Thanks a lot in advance for help!
> Emmanuel

--

-- 
David García Garzón
(Work) dgarcia at iua dot upf anotherdot es
http://www.iua.upf.edu/~dgarcia

Gmane