Begin forwarded message:
> From: Roger Mc Murtrie <[email protected]> > Date: 17 November 2009 7:01:57 PM AEDT > To: [email protected] > Cc: Vadim Godunko <[email protected]> > Subject: Re: [qtada-users] Problem building QtAda 3.0 on Mac > > Thanks Vadim, > I now have QT 4.5.3 installed and accordingly set PKG_CONFIG_PATH to > /usr/local/Trolltech/Qt-4.5.3/lib/pkgconfig. > Also started PATH with /usr/bin to use the "right" gcc (version 4.2.1 (Apple > Inc. build 5646) (dot 1) > configure then worked without any complaint. > Compilation went well for a while then some problems occurred with gprbuild > saying no Ada compiler but I managed to get a bit further by replacing > gprbuild with gnatmake in Makefiles that produced that error. > > The gprbuild error: > gprbuild -j2 -p -aP../../gnat -aP../../gnat --config=../../gnat/config.cgpr > -Psource_core.gpr > object directory "/Ada_Source/qtada-gpl-3.0.0/source/core/.objs" created for > project source_core > library directory "/Ada_Source/qtada-gpl-3.0.0/source/core/.libs" created for > project source_core > source_core.gpr:32:17: warning: no compiler specified for language "Ada", > ignoring all its sources > source_core.gpr:46:25: warning: libraries are not supported on this platform > gprbuild: no sources to compile > > Finally, I am stopped with numerous (hundreds) undefined symbols: > > building dynamic library for project source_core > /usr/local/ada-4.4/bin/gcc -dynamiclib -o > /Ada_Source/qtada-gpl-3.0.0/source/core/.libs/libQtAdaCore.dylib > -L/usr/local/ada-4.4/lib/gcc/i686-apple-darwin9/4.4.3/adalib/ > -F/usr/local/Trolltech/Qt-4.5.3/lib -framework QtCore > -L/usr/local/ada-4.4/lib/gcc/i686-apple-darwin9/4.4.3/adalib/ -lgnat-4.4 > -Wl,-flat_namespace -shared-libgcc > /Ada_Source/qtada-gpl-3.0.0/source/core/.objs/qt4-abstract_item_models-directors.o > ... > ld: warning: duplicate dylib /usr/local/ada-4.4/lib/libgcc_s.1.dylib > Undefined symbols: > "___QtAda_QCoreApplication_instance_wrapper", referenced from: > _qt4__core_applications__instance in qt4-core_applications.o > - > - > - > "___Qt4Ada_QCoreApplication_applicationDirPath_wrapper", referenced from: > _qt4__core_applications__application_dir_path in qt4-core_applications.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > gnatmake: gcc execution error > make[3]: *** [.libs/libQtAdaCore.so] Error 4 > > Some -L missing somewhere? > > -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log.zip Type: application/zip Size: 6548 bytes Desc: not available URL: <http://lists.qtada.com/pipermail/qtada-users_lists.qtada.com/attachments/20091117/dac0d887/attachment.zip> -------------- next part -------------- > > > Regards, > Roger > > > On 17/11/2009, at 4:38 AM, Vadim Godunko wrote: > >> Roger Mc Murtrie wrote: >>> Sorry I no-longer have that one. >>> I decided to start again, then I figured I'd be better off compiling QT >>> 4.5.3 from source in the hope of getting the libraries that way. >>> For qtada, I probably need to set PKG_CONFIG_PATH but I'm not sure to what. >>> Alternatively, I can set the QT..._CFLAGS to QT Framework directories bur I >>> don't know what to set the QT..._LIBS to. >>> Pity --with-qt-prefix= is only for Windows. >>> >> You need to search for *.pc files inside Qt's installation directory and >> point PKG_CONFIG_PATH to this directory. If where are no such files we >> need probably to extend configure script to handle Max OS X in special way. > _______________________________________________ qtada-users mailing list [email protected] http://lists.qtada.com/mailman/listinfo/qtada-users_lists.qtada.com
