Re: Mac Compilation Problem
Brought to you by:
rathmann
From: Tilman S. <qw...@sp...> - 2013-01-24 21:21:26
|
I'd be willing to help out and fix this (hopefully once and for all) From reading the files in Qt's mkspec folder and your "qwtfunctions.pri" I guess that you modelled the function 'qwtAddLibrary' somewhat after Qt's 'qtAddLibrary' function. Is that correct? If so, it seams that you missed an important point: If QWT is compiled as Mac OS X Framework, you should not use the '-l' switch in the LINKAGE variable to link the library. Instead – from what I read in the file 'features/qt_functions.pri' (inside the 'mkspec' folder in my Qt 4.8.4 installation) – you should use the '-framework' switch in the LINKAGE variable. Take a look at 'qt_function.pri' and check how, why and where LINKAGE is set. This needs to be fixed some where in the .pri/.prf files in order to link projects that USE QWT. I'll give it a try and report on the progress (appending some patches as necessary). Meanwhile I'm interested to know why QWT for Win32 is built as 'debug_and_release' whereas on Mac OS X, the default is 'debug' only. When doing so, the configuration scripts will only build a "qwt_debug" file in the framework folder, but no "qwt" file. I assume that it doesn't make sense to use the 'qwt_debug' for the designer plugin since the designer itself will probably use the release libs all the way. Since this is your project and I am not (yet) a power user of QWT, I want to know the directions that you intend to go, before trying to make a lot of changes. skybow > I don't have a Mac myself so I have to rely on contributions from Mac > users ( in this case you ) to fix platform specific issues ! > > The issue above looks like that the library was built with a different > name than the one that is used for linking the designer plugin. > > The rules for the names can be found in qwtfunctions.pri. Maybe there is > a mismatch between qwtLibraryTarget and qwtAddLibrary for the > combination Mac/g++. > > If you want see more details about the commands processed by make remove > the line "CONFIG += silent" from qwtbuild.pri. |