← Back to team overview

sslug-teknik team mailing list archive

Re: Er Qt4 ikke bagud kompatibel med Qt3?

 

On 2008-09-16, Michael Schmidt <michael.zmit@xxxxxxxxx> wrote:
> Hej NG

For at svare på hvad du skriver i /topic. Et stort rungende nej. Med
libQt3Support kommer man noget af vejen, men der er stadig lang vej.

Er det en qt4-applikation eller en qt3-applikation du forsøger at bygge?


> Forsøger at bygge en applikation fra source, men melder følgende fejl:
>
> [root@A31p bpmdetect]# ./configure
> Checking for Python               :  /usr/bin/python
> Checking for SCons                :  /usr/bin/scons
>
> --------------------------------------------------
> Use MinGW compiler                :  no
> Enable debug                      :  no
> Checking for pkg-config           :  /usr/bin/pkg-config  version 0.23
> installation prefix               :  /usr/local
> GUI                               :  enabled
> Checking for taglib               :  OK
> Loading qt4 tool...
> /Data/Media/Source/bpmdetect/bpmdetect/admin/qt4.py:234:  
> DeprecationWarning: raising a string exception is deprecated
>    raise "Qt4 command '" + command + "' not found. Tried: " + fullpath1 + "  
> and "+ fullpath2
> Qt4 command 'moc' not found. Tried: /usr/lib/qt3/bin/moc-qt4 and  
> /usr/lib/qt3/bin/moc: None:
>    File "/Data/Media/Source/bpmdetect/bpmdetect/SConstruct", line 33:
>      SConscript(File('src/SConscript'), build_dir=Dir('build'), duplicate=0)
>    File "/usr/lib/scons/SCons/Script/SConscript.py", line 596:
>      return apply(method, args, kw)
>    File "/usr/lib/scons/SCons/Script/SConscript.py", line 533:
>      return apply(_SConscript, [self.fs,] + files, subst_kw)
>    File "/usr/lib/scons/SCons/Script/SConscript.py", line 256:
>      exec _file_ in call_stack[-1].globals
>    File "/Data/Media/Source/bpmdetect/bpmdetect/src/SConscript", line 340:
>      env.Tool('qt4')
>    File "/usr/lib/scons/SCons/Environment.py", line 1583:
>      tool(self)
>    File "/usr/lib/scons/SCons/Tool/__init__.py", line 175:
>      apply(self.generate, ( env, ) + args, kw)
>    File "/Data/Media/Source/bpmdetect/bpmdetect/admin/qt4.py", line 251:
>      QT4_MOC = locateQt4Command(env,'moc', env['QTDIR']),
>    File "/Data/Media/Source/bpmdetect/bpmdetect/admin/qt4.py", line 234:
>      raise "Qt4 command '" + command + "' not found. Tried: " + fullpath1 +  
> " and "+ fullpath2
>
> Nogen der kan anvise en løsning?

Jeg går lige ud fra at det er en Qt4 applikation.

Sørg for at det er den rigtige moc der findes. Hvis det er en debian
(eller afledte), så prøv at sætte QTDIR til /usr/lib/qt4

(og så bruger programmet SCons til at bygge med. det er jo forfærdeligt)

/Sune


Follow ups

References