Re: Compilation problems IPE 7.0.13 on MacOS X 10.6.5 (Qt3 vs Qt4

elwood151 <elwood151-S0/[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
Dear Otfried and others,

I'm trying to compile IPE 7.0.13 on MacOS 10.6.5 without success.
I wanted to use the MacPorts variant, but it does not work because I still
have Qt3 installed for some other programs and MacPort refuses to install
qt4-mac.

-------
Port command started with PID 65970 
Computing dependencies for qt4-mac. 
Activating qt4-mac @4.7.1_1+quartz 
Error: Target org.macports.activate returned: Image error: /opt/local/ 
bin/lrelease is being used by the active qt3 port.  Please deactivate 
this port first, or use 'port -f activate qt4-mac' to force the 
activation. 
Log for qt4-mac is at: /opt/local/var/macports/logs/ 
_opt_local_var_macports_registry_portfiles_qt4-mac_4.7.1_1+quartz/ 
main.log 
Warning: Failed to execute portfile from registry for qt4-mac 
@4.7.1_1+quartz 
Activating qt4-mac @4.7.1_1+quartz 
Error: port activate failed: Image error: /opt/local/bin/lrelease is 
being used by the active qt3 port.  Please deactivate this port first, 
or use 'port -f activate qt4-mac' to force the activation. 
Executing: /opt/local/bin/port -v activate [email protected]_1+quartz 
--------

So I installed Qt4.7.1 with the installer DMG from here:
http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x
Cocoa: Mac binary package for Mac OS X 10.5 - 10.6 (32-bit and 64-bit)
http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.1.dmg (206 MB,
includes build and interface tools)

Then I tried to run make in the IPE src directory, but I get the following
errors.

make IPEFREFIX=/usr/local/ipe7
IPEFONTMAP=/Volumes/Daten/Eingang/ipe-7.0.13/fontmaps/texlive-fontmap.xml

------
Compiling moc_ipeqtcanvas.cpp...
g++ -Wall -g -O2 -fPIC -I../include -I../ipecairo -D_REENTRANT
-I/opt/local/include/cairo -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include
-I/opt/local/include/pixman-1 -I/opt/local/include/freetype2
-I/opt/local/include/libpng14  
-I/Library/Frameworks/QtCore.framework/Versions/4/Headers
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers  -c -o
../../build/obj/ipeqtcanvas/moc_ipeqtcanvas.o moc_ipeqtcanvas.cpp
moc_ipeqtcanvas.cpp:15:34: error: private/qucomextra_p.h: No such file or
directory
moc_ipeqtcanvas.cpp:17:2: error: #error "This file was generated using the
moc from 3.3.8. It"
moc_ipeqtcanvas.cpp:18:2: error: #error "cannot be used with the include
files from this version of Qt."
moc_ipeqtcanvas.cpp:19:2: error: #error "(The moc has changed too much.)"
moc_ipeqtcanvas.cpp:22: error: no ‘const char* ipeqt::Canvas::className()
const’ member function declared in class ‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp:27: error: ‘QMetaObject* ipeqt::Canvas::metaObj’ is not
a static member of ‘class ipeqt::Canvas’
moc_ipeqtcanvas.cpp:28: error: ‘QMetaObjectCleanUp’ does not name a type
moc_ipeqtcanvas.cpp:31: error: redefinition of ‘static QString
ipeqt::Canvas::tr(const char*, const char*)’
ipeqtcanvas.h:88: error: ‘static QString ipeqt::Canvas::tr(const char*,
const char*)’ previously defined here
moc_ipeqtcanvas.cpp:39: error: redefinition of ‘static QString
ipeqt::Canvas::trUtf8(const char*, const char*)’
ipeqtcanvas.h:88: error: ‘static QString ipeqt::Canvas::trUtf8(const char*,
const char*)’ previously defined here
moc_ipeqtcanvas.cpp:50: error: no ‘QMetaObject*
ipeqt::Canvas::staticMetaObject()’ member function declared in class
‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp: In member function ‘QMetaObject*
ipeqt::Canvas::staticMetaObject()’:
moc_ipeqtcanvas.cpp:52: error: ‘metaObj’ was not declared in this scope
moc_ipeqtcanvas.cpp:54: error: no match for call to ‘(const QMetaObject) ()’
moc_ipeqtcanvas.cpp:55: error: ‘QUParameter’ does not name a type
moc_ipeqtcanvas.cpp:58: error: ‘QUMethod’ does not name a type
moc_ipeqtcanvas.cpp:59: error: ‘QUParameter’ does not name a type
moc_ipeqtcanvas.cpp:62: error: ‘QUMethod’ does not name a type
moc_ipeqtcanvas.cpp:63: error: ‘QUMethod’ does not name a type
moc_ipeqtcanvas.cpp:64: error: ‘QUParameter’ does not name a type
moc_ipeqtcanvas.cpp:67: error: ‘QUMethod’ does not name a type
moc_ipeqtcanvas.cpp:68: error: ‘QMetaData’ does not name a type
moc_ipeqtcanvas.cpp:74: error: ‘metaObj’ was not declared in this scope
moc_ipeqtcanvas.cpp:74: error: ‘new_metaobject’ is not a member of
‘QMetaObject’
moc_ipeqtcanvas.cpp:77: error: ‘signal_tbl’ was not declared in this scope
moc_ipeqtcanvas.cpp:83: error: ‘cleanUp_ipeqt__Canvas’ was not declared in
this scope
moc_ipeqtcanvas.cpp: At global scope:
moc_ipeqtcanvas.cpp:87: error: no ‘void* ipeqt::Canvas::qt_cast(const
char*)’ member function declared in class ‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp: In member function ‘void* ipeqt::Canvas::qt_cast(const
char*)’:
moc_ipeqtcanvas.cpp:91: error: ‘qt_cast’ is not a member of ‘QWidget’
moc_ipeqtcanvas.cpp: In member function ‘void
ipeqt::Canvas::wheelMoved(int)’:
moc_ipeqtcanvas.cpp:97: error: ‘struct QMetaObject’ has no member named
‘signalOffset’
moc_ipeqtcanvas.cpp:97: error: ‘activate_signal’ was not declared in this
scope
moc_ipeqtcanvas.cpp: In member function ‘void
ipeqt::Canvas::mouseAction(int)’:
moc_ipeqtcanvas.cpp:103: error: ‘struct QMetaObject’ has no member named
‘signalOffset’
moc_ipeqtcanvas.cpp:103: error: ‘activate_signal’ was not declared in this
scope
moc_ipeqtcanvas.cpp: In member function ‘void
ipeqt::Canvas::positionChanged()’:
moc_ipeqtcanvas.cpp:109: error: ‘struct QMetaObject’ has no member named
‘signalOffset’
moc_ipeqtcanvas.cpp:109: error: ‘activate_signal’ was not declared in this
scope
moc_ipeqtcanvas.cpp: In member function ‘void
ipeqt::Canvas::toolChanged(bool)’:
moc_ipeqtcanvas.cpp:115: error: ‘struct QMetaObject’ has no member named
‘signalOffset’
moc_ipeqtcanvas.cpp:115: error: ‘activate_signal_bool’ was not declared in
this scope
moc_ipeqtcanvas.cpp: At global scope:
moc_ipeqtcanvas.cpp:118: error: ‘QUObject’ has not been declared
moc_ipeqtcanvas.cpp:118: error: no ‘bool ipeqt::Canvas::qt_invoke(int,
int*)’ member function declared in class ‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp: In member function ‘bool ipeqt::Canvas::qt_invoke(int,
int*)’:
moc_ipeqtcanvas.cpp:120: error: ‘qt_invoke’ is not a member of ‘QWidget’
moc_ipeqtcanvas.cpp: At global scope:
moc_ipeqtcanvas.cpp:123: error: ‘QUObject’ has not been declared
moc_ipeqtcanvas.cpp:123: error: no ‘bool ipeqt::Canvas::qt_emit(int, int*)’
member function declared in class ‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp: In member function ‘bool ipeqt::Canvas::qt_emit(int,
int*)’:
moc_ipeqtcanvas.cpp:125: error: ‘struct QMetaObject’ has no member named
‘signalOffset’
moc_ipeqtcanvas.cpp:126: error: ‘static_QUType_int’ was not declared in this
scope
moc_ipeqtcanvas.cpp:129: error: ‘static_QUType_bool’ was not declared in
this scope
moc_ipeqtcanvas.cpp:131: error: ‘qt_emit’ is not a member of ‘QWidget’
moc_ipeqtcanvas.cpp: At global scope:
moc_ipeqtcanvas.cpp:137: error: no ‘bool ipeqt::Canvas::qt_property(int,
int, QVariant*)’ member function declared in class ‘ipeqt::Canvas’
moc_ipeqtcanvas.cpp: In member function ‘bool
ipeqt::Canvas::qt_property(int, int, QVariant*)’:
moc_ipeqtcanvas.cpp:139: error: ‘qt_property’ is not a member of ‘QWidget’
moc_ipeqtcanvas.cpp: At global scope:
moc_ipeqtcanvas.cpp:142: error: no ‘bool
ipeqt::Canvas::qt_static_property(QObject*, int, int, QVariant*)’ member
function declared in class ‘ipeqt::Canvas’
make[1]: *** [../../build/obj/ipeqtcanvas/moc_ipeqtcanvas.o] Error 1
rm moc_ipeqtcanvas.cpp
make: *** [ipeqtcanvas] Error 2

------

I read Otfrieds reply to Venkataraman Subramaniam and so I tried the
following in the config.mak:

# Settings for Mac OS 10.6
#
CONFIG     += x86_64
(...)
MOC	   = moc-qt4

but now it does't work at all:

-----
Running moc on ipeqtcanvas.h...
moc-qt4 -o moc_ipeqtcanvas.cpp ipeqtcanvas.h
make[1]: moc-qt4: No such file or directory
make[1]: *** [moc_ipeqtcanvas.cpp] Error 1
make: *** [ipeqtcanvas] Error 2

----- 

Can anybody tell me what's going wrong here and how I can fix it?
a) install Qt4 via macports (without removing qt3)
or b) compiling successfully with make

Kind regards

Martin


Venkataraman Subramaniam wrote:
> 
> 
> --- On Wed, 4/11/09, Otfried Cheong <[email protected]> wrote:
> 
>> From: Otfried Cheong <[email protected]>
>> Subject: Re: [Ipe-discuss] Compilation problems in jaunty jackalope
>> To: "Venkataraman Subramaniam" <s_vraman-/[email protected]>
>> Cc: [email protected]
>> Date: Wednesday, 4 November, 2009, 12:42 PM
>> Venkataraman Subramaniam wrote:
>> > I have a problem compiling ipe-7.0.7.  I have
>> recently upgraded
>> > my desktop from Hardy heron to ubuntu jaunty
>> jackalope. I have given the error message below:
>> > It seems to be a problem with qt. Can anybody help?
>> > 
>> > moc_ipeqtcanvas.cpp:15:34: error:
>> private/qucomextra_p.h: No such file or directory
>> > moc_ipeqtcanvas.cpp:17:2: error: #error "This file was
>> generated using the moc from 3.3.8b. It"
>> > moc_ipeqtcanvas.cpp:18:2: error: #error "cannot be
>> used with the include files from this version of Qt."
>> > moc_ipeqtcanvas.cpp:19:2: error: #error "(The moc has
>> changed too much.)"
>> 
>> You have both Qt3 and Qt4 on your system, and "moc" calls
>> the one from Qt4.  Probably you can fix this by
>> changing the MOC line in "src/config.mak" to
>> 
>> MOC = moc-qt4
>> 
>> Cheers,
>>  Otfried
>> 
>> 
>> 
> Thanks! Worked like a charm!
> Best regards,
> S. Venkataraman
> 
> 
>       Yahoo! India has a new look. Take a sneak peek
> http://in.yahoo.com/trynew
> _______________________________________________
> Ipe-discuss mailing list
> [email protected]
> https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss
> 
> 

-- 
View this message in context: http://old.nabble.com/Compilation-problems-in-jaunty-jackalope-tp26191331p30844253.html
Sent from the Ipe - General mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.