← Back to team overview

yade-dev team mailing list archive

Re: [Branch ~yade-dev/yade/trunk] Rev 2449: 1. Rename InteractionDispatchers to InteractionLoop; backwards-compat for python as usual, typede...

 

One more problem. scons -c gives an error:

scons -c
scons: Reading SConscript files ...
@@@ Using profile default (scons.profile-default) @@@
Yade version is `bzr2452' (bzr2452), installed files will be suffixed with
`-bzr2452/dbg'.
All intermediary files will be in
`/home/gladk/dem/yade/cleanCompDbg/build-bzr2452/dbg'.
Mkdir("/home/gladk/dem/yade/cleanCompDbg/build-bzr2452/dbg")
SCons.Script:575: DeprecationWarning: the md5 module is deprecated; use
hashlib instead
KeyError: 'QGLVIEWER_LIB':
  File "/home/gladk/dem/yade/cleanCompDbg/yade/SConstruct", line 621:
    env.SConscript(dirs=['.'],build_dir=buildDir,duplicate=0)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 553:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 262:
    exec _file_ in call_stack[-1].globals
  File "/home/gladk/dem/yade/cleanCompDbg/yade/SConscript", line 5:
    SConscript(dirs=['core','lib']+[d for d in ('extra','py','gui') if d not
in env['exclude']],duplicate=0)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 616:
    return apply(method, args, kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 553:
    return apply(_SConscript, [self.fs,] + files, subst_kw)
  File "/usr/lib/scons/SCons/Script/SConscript.py", line 262:
    exec _file_ in call_stack[-1].globals
  File "/home/gladk/dem/yade/cleanCompDbg/yade/gui/SConscript", line 12:

env.SharedLibrary('_GLViewer',['qt4/GLViewer.cpp','qt4/_GLViewer.cpp','qt4/OpenGLManager.cpp'],SHLIBPREFIX='',LIBS=env['LIBS']+[env['QGLVIEWER_LIB']]+linkPlugins(['PeriodicEngines']),RPATH=env['RPATH']+[env.Literal('\\$$ORIGIN/../../../gui')])
  File "/usr/lib/scons/SCons/Environment.py", line 408:
    return self._dict[key]


Anton



On Thu, Sep 30, 2010 at 4:27 PM, Anton Gladky <gladky.anton@xxxxxxxxx>wrote:

> It caused another error :)
>
>
>
>
> #debug build
> NO_SCONS_GET_RECENT= scons profile=default buildPrefix=debian
> runtimePREFIX=/usr version=bzr2452 brief=0 chunkSize=1 jobs=1
> features=vtk,gts,opengl,openmp,qt4 PREFIX=debian/yade-bzr2452/usr variant=''
> optimize=0 march= debug=1
> CPPPATH=/usr/include/vtk-5.0:/usr/include/vtk-5.2:/usr/include/vtk-5.4:/usr/include/eigen2
> QT4DIR=/usr/share/qt4
> scons: Reading SConscript files ...
> @@@ Using profile default (scons.profile-default) @@@
> Setting number of jobs (using DEB_BUILD_OPTIONS) to `1'
> Yade version is `bzr2452' (bzr2452), installed files will be suffixed with
> `-bzr2452/dbg'.
> All intermediary files will be in
> `/tmp/buildd/yade-bzr2452-bzr2452/debian/build-bzr2452/dbg'.
> Mkdir("/tmp/buildd/yade-bzr2452-bzr2452/debian/build-bzr2452/dbg")
> Checking whether c++ compiler "g++" works...yes
> Finding libstdc++ library... (cached)
> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/libstdc++.so
> Checking for pthread_exit(NULL) in C library pthread... yes
> Checking for Python development files... ok
> Checking for C++ header file numpy/ndarrayobject.h... yes
> Checking for required python modules... (cached) all ok
> Checking boost libraries... all ok
> Checking for C++ header file boost/foreach.hpp... yes
> Checking for C++ header file Eigen/Core... yes
> Checking for C++ header file loki/NullType.h... yes
> Checking for glutGetModifiers() in C++ library glut... yes
> Checking for QGLViewer() in C++ library qglviewer-qt4... yes
> Checking for QGLViewer() in C++ library libQGLViewer... no
> Checking for vtkInstantiator::New() in C++ library vtkCommon... yes
>
> Checking for gts_object_class() in C++ library gts... yes
> Rebuilding combined files, since the md5 has changed.
>
> IOError: [Errno 2] No such file or directory:
> '/tmp/buildd/yade-bzr2452-bzr2452/debian/build-bzr2452/dbg/combined-files':
>    File "/tmp/buildd/yade-bzr2452-bzr2452/SConstruct", line 651:
>     combs=[l.split(':')[0] for l in open(combinedFiles)]
>
> make: *** [install] Error 2
> dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
> status 2
>  E: Failed autobuilding of package
> I: unmounting dev/pts filesystem
> I: unmounting proc filesystem
> I: cleaning the build env
> I: removing directory /var/cache/pbuilder/build//8538 and its
> subdirectories
>
>
>
> Anton
>
>
>
>
> On Thu, Sep 30, 2010 at 3:07 PM, Vaclav Smilauer <eudoxos@xxxxxxxx> wrote:
>
>>
>> > I have got an error during packaging:
>> >
>> > Checking for gts_object_class() in C++ library gts... yes
>> > IOError: [Errno 2] No such file or directory:
>> >
>> '/tmp/buildd/yade-bzr2452-bzr2452/debian/build-bzr2452/dbg/combined-files':
>> >   File "/tmp/buildd/yade-bzr2452-bzr2452/SConstruct", line 649:
>> >
>> > combinedFilesMd5New=md5.md5(open(combinedFiles).read()).hexdigest()
>> > make: *** [install] Error 2
>> > dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit
>> > status 2
>> Hi, that is very bizzare; as a fix, you can replace the conditional at
>> 650 by
>>
>> if not os.path.exists(combinedFiles) or
>> combinedFilesMd5!=md5.md5(open(combinedFiles).read()).hexdigest():
>>
>> skpping the previous line, of course. Can you reproduce it with normal
>> builds? The file should be written at the beginning, I don't relly see
>> how the file can not exists.
>>
>> HTH, v.
>>
>>
>>
>

Follow ups

References