On Jul 14, 2010, at 7:28 AM, Charles Lepple wrote:
> Hmm, interesting that ./configure is used with qmake.
>
> You could probably add "INCLUDEPATH += %p/include" to src.pro via a
> patch file.
This literally adds the path "%p/include" to the compile line instead
of "/sw/include". So this does not work:
make
cd src/ && /sw/lib/qt4-mac/bin/qmake /sw/src/fink.build/
qsynth-0.3.5-350/qsynth-0.3.5/src/src.pro -macx -o qsynth.mak
cd src/ && make -f qsynth.mak
/sw/lib/qt4-mac/bin/uic qsynthAboutForm.ui -o .ui/ui_qsynthAboutForm.h
/sw/lib/qt4-mac/bin/uic qsynthChannelsForm.ui -o .ui/
ui_qsynthChannelsForm.h
/sw/lib/qt4-mac/bin/uic qsynthMainForm.ui -o .ui/ui_qsynthMainForm.h
/sw/lib/qt4-mac/bin/uic qsynthMessagesForm.ui -o .ui/
ui_qsynthMessagesForm.h
/sw/lib/qt4-mac/bin/uic qsynthOptionsForm.ui -o .ui/
ui_qsynthOptionsForm.h
/sw/lib/qt4-mac/bin/uic qsynthPresetForm.ui -o .ui/ui_qsynthPresetForm.h
/sw/lib/qt4-mac/bin/uic qsynthSetupForm.ui -o .ui/ui_qsynthSetupForm.h
g++-4.2 -c -pipe -O2 -arch ppc -Wall -W -DDATADIR="/sw/share" -
DPKGDATADIR="" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/
sw/lib/qt4-mac/mkspecs/macx-g++42 -I. -I/sw/lib/qt4-mac/lib/
QtCore.framework/Versions/4/Headers -I/sw/lib/qt4-mac/include/QtCore -
I/sw/lib/qt4-mac/lib/QtGui.framework/Versions/4/Headers -I/sw/lib/qt4-
mac/include/QtGui -I/sw/lib/qt4-mac/include -I. -I%p/include -I/sw/lib/
qt4-mac/include -I/sw/lib/qt4-mac/include/qt -I/usr/include -I.moc -
I.ui -F/sw/lib/qt4-mac/lib -o .obj/qsynth.o qsynth.cpp
In file included from qsynthOptions.h:25,
from qsynth.cpp:23:
qsynthSetup.h:28:24: error: fluidsynth.h: No such file or directory
Initially, this problem arose due to the assumption that the default
fink directory would be called "/sw".. So in the configure file I
added /sw to the line
ac_with_paths="/usr /usr/local /sw"
Compilation and installation of the application bundle completes
successfully on my 32-bit (Leopard) machine with this approach,
make
cd src/ && /sw/lib/qt4-mac/bin/qmake /sw/src/fink.build/
qsynth-0.3.5-350/qsynth-0.3.5/src/src.pro -macx -o qsynth.mak
cd src/ && make -f qsynth.mak
/sw/lib/qt4-mac/bin/uic qsynthAboutForm.ui -o .ui/ui_qsynthAboutForm.h
/sw/lib/qt4-mac/bin/uic qsynthChannelsForm.ui -o .ui/
ui_qsynthChannelsForm.h
/sw/lib/qt4-mac/bin/uic qsynthMainForm.ui -o .ui/ui_qsynthMainForm.h
/sw/lib/qt4-mac/bin/uic qsynthMessagesForm.ui -o .ui/
ui_qsynthMessagesForm.h
/sw/lib/qt4-mac/bin/uic qsynthOptionsForm.ui -o .ui/
ui_qsynthOptionsForm.h
/sw/lib/qt4-mac/bin/uic qsynthPresetForm.ui -o .ui/ui_qsynthPresetForm.h
/sw/lib/qt4-mac/bin/uic qsynthSetupForm.ui -o .ui/ui_qsynthSetupForm.h
g++-4.2 -c -pipe -O2 -arch ppc -Wall -W -DDATADIR="/sw/share" -
DPKGDATADIR="" -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/
sw/lib/qt4-mac/mkspecs/macx-g++42 -I. -I/sw/lib/qt4-mac/lib/
QtCore.framework/Versions/4/Headers -I/sw/lib/qt4-mac/include/QtCore -
I/sw/lib/qt4-mac/lib/QtGui.framework/Versions/4/Headers -I/sw/lib/qt4-
mac/include/QtGui -I/sw/lib/qt4-mac/include -I. -I/sw/lib/qt4-mac/
include -I/sw/lib/qt4-mac/include/qt -I/sw/include -I/sw/include/qt -I/
usr/include -I.moc -I.ui -F/sw/lib/qt4-mac/lib -o .obj/qsynth.o
qsynth.cpp
//
Reading buildlock packages...
All buildlocks accounted for.
/sw/bin/dpkg-lockwait -i /sw/fink/dists/local/main/binary-darwin-
powerpc/qsynth_0.3.5-350_darwin-powerpc.deb
(Reading database ... 166002 files and directories currently installed.)
Preparing to replace qsynth 0.3.5-350 (using .../
qsynth_0.3.5-350_darwin-powerpc.deb) ...
Unpacking replacement qsynth ...
Setting up qsynth (0.3.5-350) ...
Updating the list of locally available binary packages.
Scanning dists/local/main/binary-darwin-powerpc
Changed package: dists/local/main/binary-darwin-powerpc/
qsynth_0.3.5-350_darwin-powerpc.deb
Downloading the indexes of available packages in the binary
distribution.
/sw/bin/apt-get-lockwait update
This does, however, terminate in error for the 64-bit (Snow Leopard)
case where I presume the default fink directory could also be called "/
sw64" and not /sw.
Could I just not use any alternate name(s) for the fink directory
instead of %p to allow for successful compilation and installation ?
Ebrahim
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel