Le Wed, 03 Apr 2013 04:10:30 +0200,
David García Garzón <david.gar...@upf.edu> a écrit :

> Al 01/04/13 16:38, En/na Dominique Michel ha escrit:
> > After a recent change to the svn code, I was not able to get the
> > NetworkEditor to configure any more.
> >
> > First, it was not able to find shiboken.pc. That's normal because on
> > gentoo, shiboken will install several .pc files, one for each
> > supported python version. In my system they are shiboken-python-2.7
> > and shiboken-python-3.2
> 
> Well if the point of doing pkg-config is to remove platform specifics,
> they did it (pun). I would report that shiboken.pc should point to the
> default python version for Gentoo.
> 
> 
> > The following patching to SConstruct solved it:
> >
> > sed -i -e 's/shiboken/shiboken-python2.7/' SConstruct
> >
> >
> > During compiling, I get this:
> >
> > == Linking library libclam_qtmonitors.so.1.4.1
> > /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/../../../../x86_64-pc-linux-gnu/bin/ld:
> > cannot find -lboost_python
> >
> > This is the same problematic. My fix is:
> >
> > sed -i -e 's/boost_python/boost_python-2.7/' SConstruct
> 
> It seems to be a quite a platform dependant issue so, please either:
> - report Gentoo to include a versionless shiboken and boost pc files
> - report Gentoo CLAM ebuild maintainer to apply such patches

It is done into the pro-audio overlay's ebuild from a few months ago.
> 
> 
> > Another issue is that scons complain about QTDIR and QCore.pc not
> > found.
> 
> It always complaints (as a warning) on QTDIR which is already used in
> some environments. Not finding QtCore.pc is more critical. Could you
> paste the literal message? It usually helps.

scons -j3 clam_prefix=/usr
DESTDIR=/var/tmp/portage/media-sound/NetworkEditor-9999/image//usr
prefix=/var/tmp/portage/media-sound/NetworkEditor-9999/image//usr
qt_plugins_install_path=/lib/qt4/plugins/designer scons: Reading
SConscript files ...

scons: warning: QTDIR variable is not defined, using moc executable as
a hint (QTDIR=/usr) File "/usr/share/clam/sconstools/qt4.py", line 208,
in _detect Package QCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QCore' found
Package QCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QCore' found
Package QCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QCore' found
Package QCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QCore' found
Package QCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `QCore.pc'
to the PKG_CONFIG_PATH environment variable
No package 'QCore' found

But the build success and run fine in my tower.

In the laptop, I get another issue. I changed the cflags to be able to
cross-compile into the tower. The clqags are as follow:

CFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param
l1-cache-size=32 --param l1-cache-line-size=64 --param
l2-cache-size=512 -mtune=amdfam10 -O2 -pipe"
CFLAGS_amd64="-m64"
CXXFLAGS="-march=amdfam10 -mcx16 -msahf -mpopcnt -mabm --param
l1-cache-size=32 --param l1-cache-line-size=64 --param
l2-cache-size=512 -mtune=amdfam10 -O2 -pipe"

and I get the following error:

Loading nsis tool...
Lodading dmg tool...
svn: E155007:
'/var/tmp/portage/media-sound/NetworkEditor-9999/work/NetworkEditor/NetworkEditor'
is not a working copy Version:  1.4.1 Package version:  1.4.1~svn15441
scons: done reading SConscript files.
scons: Building targets ...
== Compiling interface src/About.ui
== Compiling interface src/MainWindow.ui
src/About.ui: Warning: The name 'tab' (QWidget) is already in use,
defaulting to 'tab1'. src/About.ui: Warning: The name
'TabPage' (QWidget) is already in use, defaulting to 'TabPage1'. ==
Compiling C++ src/processing/ControlGate.cxx cc1plus: error: invalid
--param value ‘amdfam10’ == Compiling C++ src/main.cxx
cc1plus: error: invalid --param value ‘amdfam10’
scons: *** [src/processing/generated/ControlGate.o] Error 1
scons: *** [src/generated/main.o] Error 1
== Compiling C++ src/ProcessingBoxEmbededWidgets.cxx
cc1plus: error: invalid --param value ‘amdfam10’
scons: *** [src/generated/ProcessingBoxEmbededWidgets.o] Error 1
scons: building terminated because of errors.

Dominique
_______________________________________________
clam-devel mailing list
clam-devel@lists.clam-project.org
http://lists.clam-project.org/listinfo.cgi/clam-devel-clam-project.org

Reply via email to