On Oct 12, 2010, at 8:01 PM, Daniel Johnson wrote:

I tried updating audacious2-plugins to use fluidsynth1 but fluidsynth1 doesn't build for me on 10.6/x86_64 because freaking cmake is a moron and puts the library into lib64 instead of lib. Have I mentioned that I hate cmake?

<snip>

[ 97%] Building C object src/CMakeFiles/libfluidsynth.dir/bindings/ fluid_filerenderer.c.o
Linking C shared library libfluidsynth.dylib
[ 97%] Built target libfluidsynth
Scanning dependencies of target fluidsynth
[100%] Building C object src/CMakeFiles/fluidsynth.dir/fluidsynth.c.o
Linking C executable fluidsynth
[100%] Built target fluidsynth
phase test: passed
/bin/rm -rf /sw/src/fink.build/root-fluidsynth1-1.1.3-378
/bin/mkdir -p /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw
/bin/mkdir -p /sw/src/fink.build/root-fluidsynth1-1.1.3-378/DEBIAN
/usr/sbin/chown -R fink-bld:fink-bld /sw/src/fink.build/root- fluidsynth1-1.1.3-378
sudo -u fink-bld [ENV] sh -c/var/tmp/tmp.3.btcCBf
/var/tmp/tmp.0.7FJ1VA
#! /bin/sh -ev
make install DESTDIR=/sw/src/fink.build/root-fluidsynth1-1.1.3-378
[ 97%] Built target libfluidsynth
[100%] Built target fluidsynth
Install the project...
-- Install configuration: ""
-- Installing: /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/lib64/pkgconfig/fluidsynth.pc

Right, okay I see the problem.

-- Installing: /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/bin/fluidsynth -- Installing: /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/lib64/libfluidsynth.1.4.1.dylib -- Installing: /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/lib64/libfluidsynth.1.dylib
<snip>
mkdir -p /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ pkgconfig ln -s /sw/lib/fluidsynth1/lib/pkgconfig/fluidsynth.pc /sw/src/ fink.build/root-fluidsynth1-1.1.3-378/sw/lib/pkgconfig/fluidsynth.pc
sudo -u fink-bld [ENV] sh -c/var/tmp/tmp.4.CeuOA1
/usr/bin/install -d -m 700 /sw/src/fink.build/root- fluidsynth1-1.1.3-378/sw/share/doc/fluidsynth1 /bin/cp -r COPYING /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/ share/doc/fluidsynth1/ /bin/cp -r README /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/ share/doc/fluidsynth1/ /bin/cp -r README-OSX /sw/src/fink.build/root-fluidsynth1-1.1.3-378/ sw/share/doc/fluidsynth1/ /bin/chmod -R go=u-w /sw/src/fink.build/root-fluidsynth1-1.1.3-378/ sw/share/doc/fluidsynth1 /bin/rm -f /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/info/ dir /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/info/dir.old / sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/share/info/dir /sw/ src/fink.build/root-fluidsynth1-1.1.3-378/sw/share/info/dir.old
/bin/rm -rf /sw/src/fink.build/root-fluidsynth1-shlibs-1.1.3-378
/bin/mkdir -p /sw/src/fink.build/root-fluidsynth1-shlibs-1.1.3-378/sw
/bin/mkdir -p /sw/src/fink.build/root-fluidsynth1-shlibs-1.1.3-378/ DEBIAN /usr/sbin/chown -R fink-bld:fink-bld /sw/src/fink.build/root- fluidsynth1-shlibs-1.1.3-378
sudo -u fink-bld [ENV] sh -c/var/tmp/tmp.5.Egjuw9
/usr/bin/install -d -m 755 /sw/src/fink.build/root-fluidsynth1- shlibs-1.1.3-378/sw/lib/fluidsynth1/lib /bin/mv /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/lib/libfluidsynth.*.dylib /sw/src/fink.build/root- fluidsynth1-shlibs-1.1.3-378/sw/lib/fluidsynth1/lib/ mv: rename /sw/src/fink.build/root-fluidsynth1-1.1.3-378/sw/lib/ fluidsynth1/lib/libfluidsynth.*.dylib to /sw/src/fink.build/root- fluidsynth1-shlibs-1.1.3-378/sw/lib/fluidsynth1/lib/ libfluidsynth.*.dylib: No such file or directory
### execution of /bin/mv failed, exit code 1

Daniel

Thanks for testing. Your error looks somewhat similar to Q6.6 in <http://www.finkproject.org/faq/comp-general.php >

The source of the error could be that with cmake, one is unable to pass the autotools equivalent of

--libdir=%p/lib/%N/lib

1. The problem probably arises in line 10 of fluidsynth1.patch. The LIB_SUFFIX variable was already set upstream in the CMakeLists.txt file in the upper level source tree. With a bit of hacking, try changing

+set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" CACHE STRING "Library directory name")

to

+set (LIB_DESTINATION "${CMAKE_INSTALL_PREFIX}/lib" CACHE STRING "Library directory name")

(You will also need to adjust the PatchFile-md5 field accordingly.)

I don't think the following is necessary but setting certain environment variables for 64-bit compiling before running cmake in the CompileScript could also help.

        export CXXFLAGS=-m64
        export CFLAGS=-m64
        export LDFLAGS=-m64

Many thanks,
Ebrahim

P.S. Yeah, cmake is a witch!
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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

Reply via email to