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

Qt-interest Archive, May 2008
Qt 4.4.0 problem on Mac (tiger).


Message 1 in thread

Hi folks,

I have installed Qt4.4.0 for Mac (open source editon, the dmg file I
downloaded from the official site). My mac configuration is:

1. Tiger (Mac OS X version 10.4.11)

2.  My g++ version is (by typing g++ -v )


Using built-in specs.

Target: i686-apple-darwin8

Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
--with-arch=pentium-m --with-tune=prescott --program-prefix=
--host=i686-apple-darwin8 --target=i686-apple-darwin8

Thread model: posix

gcc version 4.0.1 (Apple Computer, Inc. build 5250)


I have some programs which were working right with Qt4.3. But now after I
installed Qt4.4, I can not compile them. The error message are the
following:





*/usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
unknown cmd field*

*/usr/bin/ld: warning can't open dynamic library:
QtCore.framework/Versions/4/QtCore referenced from:
/Library/Frameworks/QtGui.framework/QtGui
(checking for undefined symbols may be affected) (No such file or directory,
errno = 2)*

*collect2: ld returned 1 exit status*


warning can't open dynamic library: QtCore.framework/Versions/4/QtCore
referenced from: /Library/Frameworks/QtGui.framework/QtGui(checking for
undefined symbols may be affected) (No such file or directory)

Command /usr/bin/g++-4.0 failed with exit code 1



Please help.


Best,

Dave

Message 2 in thread

Try regenerating the xcode project file with qmake

On Wed, May 7, 2008 at 12:26 PM, Dave Sun <dave.sun.moon@xxxxxxxxx> wrote:

> Hi folks,
>
> I have installed Qt4.4.0 for Mac (open source editon, the dmg file I
> downloaded from the official site). My mac configuration is:
>
> 1. Tiger (Mac OS X version 10.4.11)
>
> 2.  My g++ version is (by typing g++ -v )
>
>
> Using built-in specs.
>
> Target: i686-apple-darwin8
>
> Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> --enable-languages=c,objc,c++,obj-c++
> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
> --with-arch=pentium-m --with-tune=prescott --program-prefix=
> --host=i686-apple-darwin8 --target=i686-apple-darwin8
>
> Thread model: posix
>
> gcc version 4.0.1 (Apple Computer, Inc. build 5250)
>
>
> I have some programs which were working right with Qt4.3. But now after I
> installed Qt4.4, I can not compile them. The error message are the
> following:
>
>
>
>
>
> */usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
> unknown cmd field*
>
> */usr/bin/ld: warning can't open dynamic library:
> QtCore.framework/Versions/4/QtCore referenced from: /Library/Frameworks/QtGui.framework/QtGui
> (checking for undefined symbols may be affected) (No such file or directory,
> errno = 2)*
>
> *collect2: ld returned 1 exit status*
>
>
> warning can't open dynamic library: QtCore.framework/Versions/4/QtCore
> referenced from: /Library/Frameworks/QtGui.framework/QtGui(checking for
> undefined symbols may be affected) (No such file or directory)
>
> Command /usr/bin/g++-4.0 failed with exit code 1
>
>
>
> Please help.
>
>
> Best,
>
> Dave
>
>

Message 3 in thread

Yes. I deleted all the old xcode related files and used qmake to generate
the new .pro file and the xcode file. But the problem is still there.

Best,
Dave

On Wed, May 7, 2008 at 12:37 AM, Adam Gibson <lethalmonk@xxxxxxxxx> wrote:

> Try regenerating the xcode project file with qmake
>
>
> On Wed, May 7, 2008 at 12:26 PM, Dave Sun <dave.sun.moon@xxxxxxxxx> wrote:
>
> >  Hi folks,
> >
> > I have installed Qt4.4.0 for Mac (open source editon, the dmg file I
> > downloaded from the official site). My mac configuration is:
> >
> > 1. Tiger (Mac OS X version 10.4.11)
> >
> > 2.  My g++ version is (by typing g++ -v )
> >
> >
> > Using built-in specs.
> >
> > Target: i686-apple-darwin8
> >
> > Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
> > --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> > --enable-languages=c,objc,c++,obj-c++
> > --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> > --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
> > --with-arch=pentium-m --with-tune=prescott --program-prefix=
> > --host=i686-apple-darwin8 --target=i686-apple-darwin8
> >
> > Thread model: posix
> >
> > gcc version 4.0.1 (Apple Computer, Inc. build 5250)
> >
> >
> > I have some programs which were working right with Qt4.3. But now after
> > I installed Qt4.4, I can not compile them. The error message are the
> > following:
> >
> >
> >
> >
> >
> > */usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
> > unknown cmd field*
> >
> > */usr/bin/ld: warning can't open dynamic library:
> > QtCore.framework/Versions/4/QtCore referenced from: /Library/Frameworks/QtGui.framework/QtGui
> > (checking for undefined symbols may be affected) (No such file or directory,
> > errno = 2)*
> >
> > *collect2: ld returned 1 exit status*
> >
> >
> > warning can't open dynamic library: QtCore.framework/Versions/4/QtCore
> > referenced from: /Library/Frameworks/QtGui.framework/QtGui(checking for
> > undefined symbols may be affected) (No such file or directory)
> >
> > Command /usr/bin/g++-4.0 failed with exit code 1
> >
> >
> >
> > Please help.
> >
> >
> > Best,
> >
> > Dave
> >
> >
>

Message 4 in thread

I have regenerated the xcode project, but it still does not work. I also
tried use qmake to generate a Makefile. The following is the output.
> qmake -project
> qmake -spec macx-g++
> make

g++ -c -pipe -g -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Qt4
.4/mkspecs/macx-g++ -I.
-I/Library/Frameworks/QtCore.framework/Versions/4/Header
s -I/usr/include/QtCore
-I/Library/Frameworks/QtGui.framework/Versions/4/Headers
 -I/usr/include/QtGui -I/usr/include -I. -I. -I. -F/Library/Frameworks -o
main.o
 main.cpp
g++ -headerpad_max_install_names -o t1.app/Contents/MacOS/t1 main.o
-F/Library
/Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon
-framework
AppKit -framework QtCore -lz -lm -framework ApplicationServices
/usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
unknown
cmd field
/usr/bin/ld: warning can't open dynamic library:
QtCore.framework/Versions/4/QtC
ore referenced from: /Library/Frameworks/QtGui.framework/QtGui (checking for
und
efined symbols may be affected) (No such file or directory, errno = 2)
collect2: ld returned 1 exit status
make: *** [t1.app/Contents/MacOS/t1] Error 1


It seems to related with the dynamic library. But I don't know how to fix
it.


Best,
Dave


On Wed, May 7, 2008 at 12:37 AM, Adam Gibson <lethalmonk@xxxxxxxxx> wrote:

> Try regenerating the xcode project file with qmake
>
>
> On Wed, May 7, 2008 at 12:26 PM, Dave Sun <dave.sun.moon@xxxxxxxxx> wrote:
>
> >  Hi folks,
> >
> > I have installed Qt4.4.0 for Mac (open source editon, the dmg file I
> > downloaded from the official site). My mac configuration is:
> >
> > 1. Tiger (Mac OS X version 10.4.11)
> >
> > 2.  My g++ version is (by typing g++ -v )
> >
> >
> > Using built-in specs.
> >
> > Target: i686-apple-darwin8
> >
> > Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
> > --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
> > --enable-languages=c,objc,c++,obj-c++
> > --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
> > --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
> > --with-arch=pentium-m --with-tune=prescott --program-prefix=
> > --host=i686-apple-darwin8 --target=i686-apple-darwin8
> >
> > Thread model: posix
> >
> > gcc version 4.0.1 (Apple Computer, Inc. build 5250)
> >
> >
> > I have some programs which were working right with Qt4.3. But now after
> > I installed Qt4.4, I can not compile them. The error message are the
> > following:
> >
> >
> >
> >
> >
> > */usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
> > unknown cmd field*
> >
> > */usr/bin/ld: warning can't open dynamic library:
> > QtCore.framework/Versions/4/QtCore referenced from: /Library/Frameworks/QtGui.framework/QtGui
> > (checking for undefined symbols may be affected) (No such file or directory,
> > errno = 2)*
> >
> > *collect2: ld returned 1 exit status*
> >
> >
> > warning can't open dynamic library: QtCore.framework/Versions/4/QtCore
> > referenced from: /Library/Frameworks/QtGui.framework/QtGui(checking for
> > undefined symbols may be affected) (No such file or directory)
> >
> > Command /usr/bin/g++-4.0 failed with exit code 1
> >
> >
> >
> > Please help.
> >
> >
> > Best,
> >
> > Dave
> >
> >
>

Message 5 in thread

Have you checked if QtCore.framework is inside /Library/Frameworks?

-Richard

On May 7, 2008, at 8:16 PM, Dave Sun wrote:

> I have regenerated the xcode project, but it still does not work. I  
> also tried use qmake to generate a Makefile. The following is the  
> output.
>
> > qmake -project
> > qmake -spec macx-g++
> > make
>
> g++ -c -pipe -g -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/ 
> usr/local/Qt4
> .4/mkspecs/macx-g++ -I. -I/Library/Frameworks/QtCore.framework/ 
> Versions/4/Header
> s -I/usr/include/QtCore -I/Library/Frameworks/QtGui.framework/ 
> Versions/4/Headers
>  -I/usr/include/QtGui -I/usr/include -I. -I. -I. -F/Library/ 
> Frameworks -o main.o
>  main.cpp
> g++ -headerpad_max_install_names -o t1.app/Contents/MacOS/t1  
> main.o   -F/Library
> /Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon  
> -framework
> AppKit -framework QtCore -lz -lm -framework ApplicationServices
> /usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load  
> command 5 unknown
> cmd field
> /usr/bin/ld: warning can't open dynamic library: QtCore.framework/ 
> Versions/4/QtC
> ore referenced from: /Library/Frameworks/QtGui.framework/QtGui  
> (checking for und
> efined symbols may be affected) (No such file or directory, errno = 2)
> collect2: ld returned 1 exit status
> make: *** [t1.app/Contents/MacOS/t1] Error 1
>
>
> It seems to related with the dynamic library. But I don't know how  
> to fix it.
>
>
> Best,
> Dave
>
>
> On Wed, May 7, 2008 at 12:37 AM, Adam Gibson <lethalmonk@xxxxxxxxx>  
> wrote:
> Try regenerating the xcode project file with qmake
>
>
> On Wed, May 7, 2008 at 12:26 PM, Dave Sun <dave.sun.moon@xxxxxxxxx>  
> wrote:
> Hi folks,
>
> I have installed Qt4.4.0 for Mac (open source editon, the dmg file I  
> downloaded from the official site). My mac configuration is:
>
> 1. Tiger (Mac OS X version 10.4.11)
>
> 2.  My g++ version is (by typing g++ -v )
>
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure  
> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man  
> --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg] 
> [^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 -- 
> build=powerpc-apple-darwin8 --with-arch=pentium-m --with- 
> tune=prescott --program-prefix= --host=i686-apple-darwin8 -- 
> target=i686-apple-darwin8
> Thread model: posix
> gcc version 4.0.1 (Apple Computer, Inc. build 5250)
>
> I have some programs which were working right with Qt4.3. But now  
> after I installed Qt4.4, I can not compile them. The error message  
> are the following:
>
>
>
> /usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load  
> command 5 unknown cmd field
> /usr/bin/ld: warning can't open dynamic library: QtCore.framework/ 
> Versions/4/QtCore referenced from: /Library/Frameworks/ 
> QtGui.framework/QtGui (checking for undefined symbols may be  
> affected) (No such file or directory, errno = 2)
> collect2: ld returned 1 exit status
>
> warning can't open dynamic library: QtCore.framework/Versions/4/ 
> QtCore referenced from: /Library/Frameworks/QtGui.framework/ 
> QtGui(checking for undefined symbols may be affected) (No such file  
> or directory)
> Command /usr/bin/g++-4.0 failed with exit code 1
>
>
> Please help.
>
> Best,
> Dave
>
>
>
>
>




Message 6 in thread

Yes. It is there.
When I switched back to Qt 4.3.4, my programs can be compiled successfully.

Best,
Dave



On Thu, May 8, 2008 at 3:24 AM, Richard <richardmg@xxxxxxxxxxxxx> wrote:

> Have you checked if QtCore.framework is inside /Library/Frameworks?
>
> -Richard
>
> On May 7, 2008, at 8:16 PM, Dave Sun wrote:
>
> I have regenerated the xcode project, but it still does not work. I also
> tried use qmake to generate a Makefile. The following is the output.
> > qmake -project
> > qmake -spec macx-g++
> > make
>
> g++ -c -pipe -g -Wall -W -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
> -I/usr/local/Qt4
> .4/mkspecs/macx-g++ -I.
> -I/Library/Frameworks/QtCore.framework/Versions/4/Header
> s -I/usr/include/QtCore
> -I/Library/Frameworks/QtGui.framework/Versions/4/Headers
>  -I/usr/include/QtGui -I/usr/include -I. -I. -I. -F/Library/Frameworks -o
> main.o
>  main.cpp
> g++ -headerpad_max_install_names -o t1.app/Contents/MacOS/t1 main.o
> -F/Library
> /Frameworks -L/Library/Frameworks -framework QtGui -framework Carbon
> -framework
> AppKit -framework QtCore -lz -lm -framework ApplicationServices
> /usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
> unknown
> cmd field
> /usr/bin/ld: warning can't open dynamic library:
> QtCore.framework/Versions/4/QtC
> ore referenced from: /Library/Frameworks/QtGui.framework/QtGui (checking
> for und
> efined symbols may be affected) (No such file or directory, errno = 2)
> collect2: ld returned 1 exit status
> make: *** [t1.app/Contents/MacOS/t1] Error 1
>
>
> It seems to related with the dynamic library. But I don't know how to fix
> it.
>
>
> Best,
> Dave
>
>
> On Wed, May 7, 2008 at 12:37 AM, Adam Gibson <lethalmonk@xxxxxxxxx> wrote:
>
>> Try regenerating the xcode project file with qmake
>>
>>
>> On Wed, May 7, 2008 at 12:26 PM, Dave Sun <dave.sun.moon@xxxxxxxxx>
>> wrote:
>>
>>>  Hi folks,
>>>
>>> I have installed Qt4.4.0 for Mac (open source editon, the dmg file I
>>> downloaded from the official site). My mac configuration is:
>>>
>>> 1. Tiger (Mac OS X version 10.4.11)
>>>
>>> 2.  My g++ version is (by typing g++ -v )
>>>
>>>  Using built-in specs.
>>> Target: i686-apple-darwin8
>>> Configured with: /private/var/tmp/gcc/gcc-5250.obj~20/src/configure
>>> --disable-checking -enable-werror --prefix=/usr --mandir=/share/man
>>> --enable-languages=c,objc,c++,obj-c++
>>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
>>> --with-gxx-include-dir=/include/c++/4.0.0 --build=powerpc-apple-darwin8
>>> --with-arch=pentium-m --with-tune=prescott --program-prefix=
>>> --host=i686-apple-darwin8 --target=i686-apple-darwin8
>>> Thread model: posix
>>> gcc version 4.0.1 (Apple Computer, Inc. build 5250)
>>>
>>> I have some programs which were working right with Qt4.3. But now after I
>>> installed Qt4.4, I can not compile them. The error message are the
>>> following:
>>>
>>>
>>>
>>> */usr/bin/ld: /Library/Frameworks/QtCore.framework/QtCore load command 5
>>> unknown cmd field*
>>>  */usr/bin/ld: warning can't open dynamic library:
>>> QtCore.framework/Versions/4/QtCore referenced from: /Library/Frameworks/QtGui.framework/QtGui
>>> (checking for undefined symbols may be affected) (No such file or directory,
>>> errno = 2)*
>>> *collect2: ld returned 1 exit status*
>>>
>>> warning can't open dynamic library: QtCore.framework/Versions/4/QtCore
>>> referenced from: /Library/Frameworks/QtGui.framework/QtGui(checking for
>>> undefined symbols may be affected) (No such file or directory)
>>> Command /usr/bin/g++-4.0 failed with exit code 1
>>>
>>>
>>> Please help.
>>>
>>> Best,
>>> Dave
>>>
>>>
>>>
>>>
>>
>
>
>
>


-- 
 [ signature omitted ]