On Aug 24, 2007, at 10:29, David Bovill wrote:
On 24/08/07, Ryan Schmidt wrote:
On Aug 23, 2007, at 16:14, David Bovill wrote:
I am trying to compile an application using Macports. The instructions are for Fink and Suse and ./configure fails as it canot locate "libqt-mt.(l)a" and "libpng.(l)a" which is to be found in qt3-devel and qt3-devel and libpng-devel in OpenSUSE 10.0 respectively.
-lqt-mt requests file libqt-mt.(l)a -lpng requests file libpng.(l)a
Any clue where these packages are to be found in MacPorts?
libpng.a and libpng.la are found in the port "libpng"
libqt* are probably provided by the ports "qt3" or "qt3-mac" though I don't use them myself.
I have these installed: libpng @1.2.10_2+darwin_8 libpng @1.2.18_0+darwin_8 (active) ... qt3 @3.3.6_1+darwin_8 qt3 @3.3.8_1+darwin_8 (active) However, after: ./configure --with-kde-support=no --prefix=/opt/local --without- arts --disable-docs --with-qt-dir=/opt/local/bin --with-qt- includes=/opt/local/include/qt3 --with-qt-libraries=/opt/local/lib/ qt3 --with-extra-includes=/opt/local/include --with-extra-libs=/opt/ local/lib then "make" fails with:
-rpath /opt/local/lib -L/opt/local/lib/qt3 -L/usr/X11R6/lib -L/opt/ local/lib/qt3 -version-info 3:3:0 -no-undefined Utility.lo RealFormat.lo Tokenizer.lo ExpressionFunctionTable.lo ExpressionParser.lo ParserTreeContext.lo ParserNode.lo ParserElement.lo TjMessageHandler.lo Operation.lo ExpressionTree.lo ExpressionTreeFunction.lo ShiftSelectionList.lo ShiftSelection.lo BookingList.lo TransactionList.lo TaskDependency.lo TaskScenario.lo VacationList.lo CoreAttributes.lo CoreAttributesList.lo ScenarioList.lo Scenario.lo TaskList.lo ResourceList.lo AccountList.lo ShiftList.lo Task.lo Resource.lo Account.lo Shift.lo Allocation.lo Journal.lo MacroTable.lo FileInfo.lo FileToken.lo ProjectFile.lo XMLFile.lo ReportElementBase.lo ReportElement.lo ElementHolder.lo Report.lo ReportXML.lo QtReportElement.lo QtReport.lo QtTaskReport.lo QtTaskReportElement.lo QtResourceReport.lo QtResourceReportElement.lo HTMLPrimitives.lo TableColumnFormat.lo TableColumnInfo.lo HTMLReport.lo HTMLReportElement.lo HTMLSingleReport.lo HTMLTaskReport.lo HTMLTaskReportElement.lo HTMLResourceReport.lo HTMLResourceReportElement.lo HTMLWeeklyCalendar.lo HTMLWeeklyCalendarElement.lo HTMLMonthlyCalendar.lo HTMLMonthlyCalendarElement.lo HTMLAccountReport.lo HTMLAccountReportElement.lo HTMLStatusReport.lo CSVPrimitives.lo CSVReport.lo CSVReportElement.lo CSVTaskReport.lo CSVTaskReportElement.lo CSVResourceReport.lo CSVResourceReportElement.lo CSVAccountReport.lo CSVAccountReportElement.lo ExportReport.lo XMLReport.lo Project.lo ICalReport.lo Project.moc.lo -lqt-mt -lz -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread /usr/bin/libtool: can't locate file for: -lqt-mt /usr/bin/libtool: file: -lqt-mt is not an object file (not allowed in a library) /usr/bin/libtool: can't locate file for: -lpng /usr/bin/libtool: file: -lpng is not an object file (not allowed in a library) make[2]: *** [libtaskjuggler.la] Error 1 Would be great not to have to use fink for this one application - any clues appreciated so i can post the solution to the TaskJugler forum.
Well, MacPorts (and Fink too) exists so that people don't have to keep discovering compilation recipes and posting them to forums, and so that instead all the necessary knowledge is encapsulated in a portfile. So the best solution would be for someone to write a portfile for TaskJuggler. Of course it helps to actually be able to compile TaskJuggler first. I set about trying to do this yesterday, but got stuck on installing qt3-mac. Apparently MacPorts 1.4.1 broke this port; see this bug: http://trac.macports.org/projects/macports/ticket/11895 So it's taking awhile to even get the dependencies installed, and only then can I look at what's involved in getting TaskJuggler installed. Maybe I'll give qt3 a try today. To get you started with TaskJuggler, have you tried setting the CPPFLAGS and LDFLAGS environment variables during configure? You may also need to set them during make. That is: CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib ./configure ... CPPFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib make Please remember to use Reply To All so that your reply goes to the mailing list too, not just to me.