Anders Dahnielson | 9 Nov 2008 21:52
Gravatar

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
David García Garzón | 9 Nov 2008 23:02
X-Face
Favicon

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
Anders Dahnielson | 9 Nov 2008 22:55
Gravatar

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

Gmane