hobbyjobs / textroom

Automatically exported from code.google.com/p/textroom
Other
0 stars 0 forks source link

‘LayoutDirectionAuto’ is not a member of ‘Qt’ #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install dependencies using apt-get: build-essential, qt-sdk, libsdl-dev, 
libsdl-mixer1.2-dev, libhunspell-dev
2. run 'qmake', 'make'

What is the expected output? What do you see instead?
Clean install.

Produces 'Error 2':
src/textroom.cpp: In member function ‘void TextRoom::readSettings()’:
src/textroom.cpp:752: error: ‘LayoutDirectionAuto’ is not a member of 
‘Qt’

What version of the product are you using? On what operating system?
Textroom v0.8.2

Debian 6.0.1 (Squeeze)
Kernel Linux 2.6.32-5-686
Gnome 2.30.2

Please provide any additional information below.
I am trying to install on a fresh Debian installation, there are many packages 
that are installed with the apt-get installs from above as well.  I encounter 
the same issue with Ubuntu 10.4 LTS.

I'm thoroughly confused as to what is going wrong.  I have been installing 
packages as they come up and this is the first error I have not been able to 
circumvent.

Thanks for any help!

Original issue reported on code.google.com by coleman....@gmail.com on 18 May 2011 at 4:48

GoogleCodeExporter commented 9 years ago
Just in case it wasn't obvious, I'm trying to install from source.  The error 
is the same whether I checkout source with svn, or download the Linux source 
.tar.gz

Original comment by coleman....@gmail.com on 18 May 2011 at 4:50

GoogleCodeExporter commented 9 years ago
Hi everybody,

I had the same problems as well with Ubuntu 10.04 32bit.

I had tried to install manually the tar for 0.8.1 and 0.8.0 with no success 
There were some probs during the make in both cases:

src/textroom.cpp: In member function ‘void TextRoom::readSettings()’:
src/textroom.cpp:752: error: ‘LayoutDirectionAuto’ is not a member of 
‘Qt’

I also tried to install textroom debs from 0.8.1 backwards.
The one that works is 0.6.5.

Cheers

Aleix

Original comment by freakon...@gmail.com on 3 Nov 2011 at 10:28

GoogleCodeExporter commented 9 years ago
BTW, I forgot to say that when I try to install 0.8.1. and 0.8 through the deb, 
it successfully install but got the following problem:

The splash screen shows up for a very short time and then the program crashes 
with "textroom: symbol lookup error: textroom: undefined symbol: 
_ZN9QListData11detach_growEPii".

So maybe this is caused by or at least related to the problem above.

Cheers.

Original comment by freakon...@gmail.com on 4 Nov 2011 at 9:21

GoogleCodeExporter commented 9 years ago
If anyone is still reading these pages (the project seems rather moribund with 
nothing on the site since 2011) I fixed the problem above by editing 
src/textroom.cpp and changing the offending line:

textEdit->setLayoutDirection(Qt::LayoutDirectionAuto);

to

textEdit->setLayoutDirection(Qt::LeftToRight);

I know nothing about Qt but my guess is that Qt::LayoutDirectionAuto is either 
not yet available or else deprecated in the Qt package that Debian installs. I 
Googled around a bit and found that LeftToRight seemed to be another reasonable 
value for setLayoutDirection. I suppose you could also set it to 
Qt::RightToLeft!

Once you get past this error you may find, like I did, that compilation fails 
later because both curl.h and xml++.h aren't found. On Debian systems install 
libcurl4-gnutls-dev and libxml++2.6-dev and compilation should complete. AFAICT 
Textroom now works on my system (CrunchBang Linux Statler).

Hope this is still of some use to someone.

Ta,

Gav

Original comment by gavmassi...@gmail.com on 12 Jun 2012 at 6:43

GoogleCodeExporter commented 9 years ago
Addendum to last message - 

There do seem to be a few problems, but none (not even an occasional 
segmentation fault!) fatal. I might try and track down a few of the issues and 
will post them - and hopefully solutions - here if I do.

Ta,

Gav

Original comment by gavmassi...@gmail.com on 12 Jun 2012 at 6:54