November 26, 2010

soroush soroush
Dinosaur Breeder
781 posts

[Solved] Problem with lupdate.

 

Hi there, this is my first question here (sorry if it’s in wrong place or is irrelevant :D)

I’m new to Qt (and of course Linguist). I’ve installed Qt SDK 4.7 from linux 32bit installer file. I didn’t know that lupdate is already installed with sdk and it’s in ..\qt\bin directory, so I installed Linguist from the maverick repository. now trying to create translations by lupdate, I always receive below errors:

  1. /home/soroush/programs/programming/qtsdk-2010.05/qt/include/QtCore/qstringbuilder.h:45: circular inclusion of /home/soroush/programs/programming/qtsdk-2010.05/qt/include/QtCore/qstring.h
  2. /home/soroush/programs/programming/qtsdk-2010.05/qt/include/QtGui/qwmatrix.h:45: circular inclusion of /home/soroush/programs/programming/qtsdk-2010.05/qt/include/QtGui/qmatrix.h
  3. Parse error at /home/soroush/workspace/QCalculator/persian.ts:1:0: Premature end of document.

What I’m doing wrong?

7 replies

November 27, 2010

Volker Volker
Robot Herder
5428 posts

Seems to be a known problem:

QTBUG-14825 [bugreports.qt.nokia.com]
http://www.qtcentre.org/archive/index.php/t-25907.html

November 27, 2010

blex blex
Lab Rat
191 posts

To Volker:

I think that question is not about

  1. circular inclusion of <filename>

but about last message

  1. Premature end of document

 Signature 

————————————

Oleksiy Balabay

November 27, 2010

blex blex
Lab Rat
191 posts

To soroush:

Could you share the persian.ts file? I will try it in my environment

 Signature 

————————————

Oleksiy Balabay

November 27, 2010

soroush soroush
Dinosaur Breeder
781 posts

persian.ts is an emoty file I simply added to project. I also added below lines to the .pro file. (I’m trying to do what explained in training video)

  1. TRANSLATIONS+= persian.ts

November 27, 2010

Volker Volker
Robot Herder
5428 posts

I get a similar error when a .ts file exists but is empty. It works again when I remove the empty file.

So you could try to remove persian.ts and try again.

November 27, 2010

Smar Smar
Lab Rat
269 posts

I think lrelease should tell proper error instead of this error…

So I’d suggest you to submit a bug about that to Qt’s bug tracker.

November 28, 2010

soroush soroush
Dinosaur Breeder
781 posts

OK. Thanks.

 
  ‹‹ activateWindow() does not send window to front      Mac: How to display a context menu for a toolbar, when it’s made "unifiedTitleAndToolBarOnMac"? ››

You must log in to post a reply. Not a member yet? Register here!