Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 3

Qt-interest Archive, January 2008
Problem with qt-mac-opensource-src-4.4.0-snapshot-20080101


Message 1 in thread

I am trying to check out QPrinter::setPaperSize ( QSizeF, Unit )  but  
I am having trouble if I compile with XCode.

It tells me:

/usr/bin/ld: Undefined symbols:
QPrinter::setPaperSize(QSizeF const&, QPrinter::Unit)

However, if I compile with the macx-g++ spec, I get a clean build.

Should I submit a bug report ?

--
 [ signature omitted ] 

Message 2 in thread

Hi,

> It tells me:
> 
> /usr/bin/ld: Undefined symbols:
> QPrinter::setPaperSize(QSizeF const&, QPrinter::Unit)
> 
> However, if I compile with the macx-g++ spec, I get a clean build.

QPrinter::setPaperSize() has been introduced in Qt 4.4.

Is some other version of Qt 4 installed on your system? For some reason you 
must be linking to that version of Qt 4 instead of the Qt 4.4 snapshot.

--
 [ signature omitted ] 

Message 3 in thread

I kinda doubt it.

Here is the tail end of both compiles -- the bold/underlines are mine  
to point out the library reference.
BTW, g++ is a link to g++-4.0.  That was the FIRST thing I checked.

With XCode:
     /usr/bin/g++-4.0 -o /Users/igor/Desktop/DIY-Templates/Qt/DIY/ 
current/DIY_Notes/v1.1i/DIY_Notes-beta-pageSize/build/DIY_Notes.build/ 
Default/DIY_Notes.build/Objects-normal/i386/DIY_Notes -L/Users/igor/ 
Desktop/DIY-Templates/Qt/DIY/current/DIY_Notes/v1.1i/DIY_Notes-beta- 
pageSize/build/Default -L/Volumes/Dev/Intel/qt-mac-opensource- 
src-4.4.0-snapshot-20080101/lib -L/Developer/SDKs/MacOSX10.4u.sdk/ 
System/Library/Frameworks -F/Users/igor/Desktop/DIY-Templates/Qt/DIY/ 
current/DIY_Notes/v1.1i/DIY_Notes-beta-pageSize/build/Default - 
filelist /Users/igor/Desktop/DIY-Templates/Qt/DIY/current/DIY_Notes/ 
v1.1i/DIY_Notes-beta-pageSize/build/DIY_Notes.build/Default/ 
DIY_Notes.build/Objects-normal/i386/DIY_Notes.LinkFileList -framework  
QtGui -framework Carbon -framework AppKit -framework QtCore - 
framework ApplicationServices -arch i386 -Wl,-Y,1455 -mmacosx-version- 
min=10.3 -headerpad_max_install_names -L/Volumes/Dev/Intel/qt-mac- 
opensource-src-4.4.0-snapshot-20080101/lib -lz -lm -liconv -isysroot / 
Developer/SDKs/MacOSX10.4u.sdk

/usr/bin/ld: Undefined symbols:

QPrinter::setPaperSize(QSizeF const&, QPrinter::Unit)

without:
g++ -headerpad_max_install_names -arch ppc -arch i386 -Wl,- 
syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -o DIY_Notes.app/Contents/ 
MacOS/DIY_Notes main.o myWindow.o renderarea.o renderareaDoPDF.o  
renderareaDrawLeftPage.o renderareaPaintEvent.o renderareaSets.o  
moc_myWindow.o moc_renderarea.o   -F/Volumes/Dev/Intel/qt-mac- 
opensource-src-4.4.0-snapshot-20080101/lib -L/Volumes/Dev/Intel/qt- 
mac-opensource-src-4.4.0-snapshot-20080101/lib -framework QtGui - 
framework Carbon -framework AppKit -framework QtCore -lz -lm -liconv - 
framework ApplicationServices

On Jan 20, 2008, at 10:18 AM, Dimitri wrote:

> Hi,
>
>> It tells me:
>> /usr/bin/ld: Undefined symbols:
>> QPrinter::setPaperSize(QSizeF const&, QPrinter::Unit)
>> However, if I compile with the macx-g++ spec, I get a clean build.
>
> QPrinter::setPaperSize() has been introduced in Qt 4.4.
>
> Is some other version of Qt 4 installed on your system? For some  
> reason you must be linking to that version of Qt 4 instead of the  
> Qt 4.4 snapshot.
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>


Message 4 in thread

Hi,

> Here is the tail end of both compiles -- the bold/underlines are mine to 
> point out the library reference.

But is there no other version of Qt installed on the system?

This really looks strange: if linking to the same library, I don't understand 
how the symbol is found in the second case, but not in the in the first case.

--
 [ signature omitted ] 

Message 5 in thread

Yes, there are other Qt installations on the system, but in different  
directories.

I was assured repeatedly (Look for a thread - Subject: Multiple  
development environments: How To on Mac and Windows ?) that  
everything depended on what version of qmake is used
Nothing more.
QTDIR makes no difference - Qt 4 ignores it.

Is that the case ?

Any suggestions ?
In the meantime, I am compiling the latest snapshot to see if it  
makes any difference.

On Jan 20, 2008, at 3:25 PM, Dimitri wrote:

> Hi,
>
>> Here is the tail end of both compiles -- the bold/underlines are  
>> mine to point out the library reference.
>
> But is there no other version of Qt installed on the system?
>
> This really looks strange: if linking to the same library, I don't  
> understand how the symbol is found in the second case, but not in  
> the in the first case.
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ] 

Message 6 in thread

Hi,

> Yes, there are other Qt installations on the system, but in different 
> directories.

Then maybe one of these Qt libraries is installed in a directory searched by 
the linker by default, or in a directory pointed to by a linker "-L" option in 
the XCode case. For example:
/Users/igor/Desktop/DIY-Templates/Qt/DIY/current/DIY_Notes/v1.1i/DIY_Notes-beta-pageSize/build/Default

> [...]
> In the meantime, I am compiling the latest snapshot to see if it makes 
> any difference.

It probably won't.

--
 [ signature omitted ] 

Message 7 in thread

Hi,

> Yes, there are other Qt installations on the system, but in different 
> directories.

Which directories?

--
 [ signature omitted ] 

Message 8 in thread

On this disc volume (/Volumes/Dev), I have:

/Volumes/Dev/Intel/qt-mac-opensource-src-4.4.0-snapshot-20080101
/Volumes/Dev/qt-mac-opensource-src-4.3.0
/Volumes/Dev/qt-mac-opensource-src-4.3.2-G4-Shared
/Volumes/Dev/qt-mac-opensource-src-4.4.0-snapshot-20080120-G4-Shared
/Volumes/Dev/qt-mac-preview-opensource-src-4.4.0-tp1

On Jan 20, 2008, at 4:10 PM, Dimitri wrote:

> Hi,
>
>> Yes, there are other Qt installations on the system, but in  
>> different directories.
>
> Which directories?
>
> --
> Dimitri
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>

--
 [ signature omitted ] 

Message 9 in thread

Dan White a écrit :
> On this disc volume (/Volumes/Dev), I have:
> 
> /Volumes/Dev/Intel/qt-mac-opensource-src-4.4.0-snapshot-20080101
> /Volumes/Dev/qt-mac-opensource-src-4.3.0
> /Volumes/Dev/qt-mac-opensource-src-4.3.2-G4-Shared
> /Volumes/Dev/qt-mac-opensource-src-4.4.0-snapshot-20080120-G4-Shared
> /Volumes/Dev/qt-mac-preview-opensource-src-4.4.0-tp1

And on other volumes, for example in /Users or /Developer?

--
 [ signature omitted ] 

Message 10 in thread

There was (emphasis on past tense) one in /Developer (from Qt 4.3.dmg) but I removed it.
Things work now
That was probably it.
 -------------- Original message ----------------------
From: Dimitri <dimitri@xxxxxxxxxxxxx>
> Dan White a écrit :
> > On this disc volume (/Volumes/Dev), I have:
> > 
> > /Volumes/Dev/Intel/qt-mac-opensource-src-4.4.0-snapshot-20080101
> > /Volumes/Dev/qt-mac-opensource-src-4.3.0
> > /Volumes/Dev/qt-mac-opensource-src-4.3.2-G4-Shared
> > /Volumes/Dev/qt-mac-opensource-src-4.4.0-snapshot-20080120-G4-Shared
> > /Volumes/Dev/qt-mac-preview-opensource-src-4.4.0-tp1
> 
> And on other volumes, for example in /Users or /Developer?
> 
> --
> Dimitri
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 

--
 [ signature omitted ] 

Message 11 in thread

> There was (emphasis on past tense) one in /Developer (from Qt 4.3.dmg) but I removed it.
> Things work now
> That was probably it.

Good, I'm happy the problem is solved. Most probably the library had been 
pulled in by this compiler option:
	-L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks

I'm not sure why this compiler option appears in the XCode case and not in the 
plain g++ case - I don't know much about Mac OS.

This looks like an issue with the .dmg package you were using, which somehow 
configured XCode to use that directory and/or put Qt 4.3 in that directory. 
Where did you get the .dmg package from?

--
 [ signature omitted ] 

Message 12 in thread

The dmg in question is one of the official ones.
I got it from trolltech,com or one of the official mirrors

I found that by building the different versions with the "-prefix-install" option isolates them nicely to allow for multiples.
Additionally, a static build fits on a single CD-ROM (between 400-500Mb), while I have to use a DVD-R for a shared build (just under 2Gb).  By making the path to the build on the CD the same as to the hard drive it builds on, I can develop from the CD/DVD and easily swap versions.

Is there a target date for 4.4 ?
 
 -------------- Original message ----------------------
From: Dimitri <dimitri@xxxxxxxxxxxxx>
> > There was (emphasis on past tense) one in /Developer (from Qt 4.3.dmg) but I 
> removed it.
> > Things work now
> > That was probably it.
> 
> Good, I'm happy the problem is solved. Most probably the library had been 
> pulled in by this compiler option:
> 	-L/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
> 
> I'm not sure why this compiler option appears in the XCode case and not in the 
> plain g++ case - I don't know much about Mac OS.
> 
> This looks like an issue with the .dmg package you were using, which somehow 
> configured XCode to use that directory and/or put Qt 4.3 in that directory. 
> Where did you get the .dmg package from?
> 
> --
> Dimitri
> 
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
> 

--
 [ signature omitted ]