November 26, 2010

soroush soroush
Ant Farmer
814 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?

10 replies

November 27, 2010

Volker Volker
Ant Farmer
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
192 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
192 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
Ant Farmer
814 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
Ant Farmer
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
Ant Farmer
814 posts

OK. Thanks.

July 29, 2013

vishu vishu
Ant Farmer
36 posts

hi.. i am struck exactly here can you explain how you resolved it… please…..

September 20, 2013

sunnie sunnie
Lab Rat
1 posts

Hi,
Add following lines in <project_name>.ts file :

<?xml version=“1.0” encoding=“utf-8”?>
<!DOCTYPE TS>
<TS version=“2.0”>
</TS>

It may resolve the problem of “Premature end of document”.

September 20, 2013

vishu vishu
Ant Farmer
36 posts

Hi…
Thanks for your replay i solved it long time back,
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!