I'm finally getting around to trying to compile 1.5 on PPC Mac, and
I'm running into the following problem (see below).
The archives suggest that the problem is that Qt-4 is not installed
(though ./configure does not complain):
<http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg109323.html>
In my case, I simply copied over the version of Qt-4 compiled on my
Intel Mac as universal (i.e., for both PPC and Intel Macs), and find
that I can run Qt's demo programs on PPC. Moreover, ./configure
correctly identifies my Qt version as 4.2.2.
Suggestions?
Bennett
--------------------
Making all in support
make all-recursive
Making all in .
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
-I. -I. -I../../src -Winvalid-pch --include=./pch.h -I./.. -I../../
boost -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_STL -
DQT_NO_KEYWORDS -I/Users/bennett/lyx/qt-4.2.2-install/include -I/
Users/bennett/lyx/qt-4.2.2-install/include/QtCore -Wextra -Wall -
g -Os -MT docstring.lo -MD -MP -MF ".deps/docstring.Tpo" -c -o
docstring.lo docstring.C; \
then mv -f ".deps/docstring.Tpo" ".deps/docstring.Plo"; else rm -f
".deps/docstring.Tpo"; exit 1; fi
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -Winvalid-pch --include=./
pch.h -I./.. -I../../boost -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -
DQT_NO_STL -DQT_NO_KEYWORDS -I/Users/bennett/lyx/qt-4.2.2-install/
include -I/Users/bennett/lyx/qt-4.2.2-install/include/QtCore -Wextra -
Wall -g -Os -MT docstring.lo -MD -MP -MF .deps/docstring.Tpo -c
docstring.C -o docstring.o
In file included from docstring.C:14:
qstring_helpers.h:17:17: error: QChar: No such file or directory
qstring_helpers.h:18:19: error: QString: No such file or directory
docstring.C:20:17: error: QFile: No such file or directory
qstring_helpers.h:30: error: expected initializer before 'const'
qstring_helpers.h:42: error: expected initializer before 'const'
qstring_helpers.h:55: error: 'lyx::qchar_to_ucs4' declared as an
'inline' variable
qstring_helpers.h:55: error: 'QChar' was not declared in this scope
qstring_helpers.h:56: error: expected ',' or ';' before '{' token
qstring_helpers.h:68: error: expected initializer before 'const'
qstring_helpers.h:93: error: expected constructor, destructor, or
type conversion before 'const'
qstring_helpers.h:103: error: 'QString' has not been declared
qstring_helpers.h: In function 'void lyx::ucs4_to_qstring(const
lyx::char_type*, size_t, int&)':
qstring_helpers.h:106: error: request for member 'resize' in 's',
which is of non-class type 'int'
qstring_helpers.h:108: error: invalid types 'int[int]' for array
subscript
qstring_helpers.h:108: error: 'ucs4_to_qchar' was not declared in
this scope
qstring_helpers.h: At global scope:
qstring_helpers.h:118: error: 'QString' was not declared in this scope
qstring_helpers.h:127: error: 'QString' was not declared in this scope
docstring.C: In function 'const lyx::docstring lyx::from_local8bit
(const std::string&)':
docstring.C:99: error: 'QString' has not been declared
docstring.C:99: error: 'fromLocal8Bit' was not declared in this scope
docstring.C: In function 'const std::string lyx::to_local8bit(const
lyx::docstring&)':
docstring.C:114: error: 'QByteArray' was not declared in this scope
docstring.C:114: error: expected `;' before 'const'
docstring.C:115: error: 'local' was not declared in this scope
docstring.C:117: error: 'local' was not declared in this scope
docstring.C: In function 'const lyx::docstring
lyx::from_filesystem8bit(const std::string&)':
docstring.C:123: error: 'QByteArray' was not declared in this scope
docstring.C:123: error: expected `;' before 'const'
docstring.C:124: error: 'QFile' has not been declared
docstring.C:124: error: 'encoded' was not declared in this scope
docstring.C:124: error: 'decodeName' was not declared in this scope
docstring.C: At global scope:
docstring.C:121: warning: unused parameter 's'
docstring.C: In function 'const std::string lyx::to_filesystem8bit
(const lyx::docstring&)':
docstring.C:130: error: 'QByteArray' was not declared in this scope
docstring.C:130: error: expected `;' before 'const'
docstring.C:131: error: 'encoded' was not declared in this scope
docstring.C: At global scope:
docstring.C:128: warning: unused parameter 's'
make[5]: *** [docstring.lo] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1