> On Aug 8, 2016, at 08:26, Bollinger, John C <john.bollin...@stjude.org> wrote:
> 
> Dear Fink Users,
>  
> Pursuant to Fink’s instructions, having exhausted its other suggestions, I am 
> asking here for help with installing the libopenjp2.7 package on Yosemite.  
> The build is currently failing for me with a CMake error at the configuration 
> step.  Here is example output:
>  
> ====
>  
> The following package will be installed or updated:
> libopenjp2.7
> The following additional package will be installed:
> libopenjp2.7-shlibs
> Default answer will be chosen in 60 seconds...
> Do you want to continue? [Y/n] 
> Setting runtime build-lock...
> dpkg-deb -b 
> /sw/src/fink.build/root-fink-buildlock-libopenjp2.7-shlibs-2.1.1-1 
> /sw/src/fink.build
> dpkg-deb: building package `fink-buildlock-libopenjp2.7-shlibs-2.1.1-1' in 
> `/sw/src/fink.build/fink-buildlock-libopenjp2.7-shlibs-2.1.1-1_2016.08.08-08.57.46_darwin-x86_64.deb'.
> Installing build-lock package...
> /sw/bin/dpkg-lockwait -i 
> /sw/src/fink.build/fink-buildlock-libopenjp2.7-shlibs-2.1.1-1_2016.08.08-08.57.46_darwin-x86_64.deb
> Selecting previously deselected package 
> fink-buildlock-libopenjp2.7-shlibs-2.1.1-1.
> (Reading database ... 120669 files and directories currently installed.)
> Unpacking fink-buildlock-libopenjp2.7-shlibs-2.1.1-1 (from 
> .../fink-buildlock-libopenjp2.7-shlibs-2.1.1-1_2016.08.08-08.57.46_darwin-x86_64.deb)
>  ...
> Setting up fink-buildlock-libopenjp2.7-shlibs-2.1.1-1 (2016.08.08-08.57.46) 
> ...
>  
> sudo -u fink-bld [ENV] sh -c /tmp/fink.ZyruP
> env LANG=C LC_ALL=C /sw/bin/tar  --no-same-owner --no-same-permissions -xf 
> /sw/src/openjpeg-2.1.1.tar.gz
> sudo -u fink-bld [ENV] sh -c /tmp/fink.gYe_u
> cmake -DCMAKE_INSTALL_PREFIX=/sw -DCMAKE_C_FLAGS:STRING=-MD .
> -- The C compiler identification is AppleClang 7.0.0.7000176
> CMake Error at /sw/share/cmake-3.6/Modules/Platform/Darwin.cmake:76 (message):
>   CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
>  
>    ""
>  
>   is not set to a MacOSX SDK with a recognized version.  Either set
>   CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
>   empty.
> Call Stack (most recent call first):
>   /sw/share/cmake-3.6/Modules/CMakeSystemSpecificInformation.cmake:36 
> (include)
>   CMakeLists.txt:27 (project)
>  
>  
> -- Configuring incomplete, errors occurred!
> See also 
> "/sw/src/fink.build/libopenjp2.7-shlibs-2.1.1-1/openjpeg-2.1.1/CMakeFiles/CMakeOutput.log".
> See also 
> "/sw/src/fink.build/libopenjp2.7-shlibs-2.1.1-1/openjpeg-2.1.1/CMakeFiles/CMakeError.log".
> ### execution of cmake failed, exit code 1
> ### execution of /tmp/fink.gYe_u failed, exit code 1
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-libopenjp2.7-shlibs-2.1.1-1
> (Reading database ... 120670 files and directories currently installed.)
> Removing fink-buildlock-libopenjp2.7-shlibs-2.1.1-1 ...
> Failed: phase compiling: libopenjp2.7-shlibs-2.1.1-1 failed
>  
> ====
>  
> (boilerplate and maintainer e-mail elided)
>  
> Mine is a fresh install of the latest Fink, up to date as of this morning, 
> with all packages so far installed updated to their latest versions.  I am 
> using the Xcode 7.1 command-line tools (for 10.10) underneath.  This is 
> reflected in the following system information that Fink directs me to include:
>  
> Package manager version: 0.39.4
> Distribution version: selfupdate-cvs Mon Aug  8 08:57:04 2016, 10.10, x86_64
> Trees: local/main stable/main
> No recognized Xcode.app installed
> Xcode command-line tools: 7.1.0.0.1.1444952191
> Max. Fink build jobs:  1
>  
>  
> It looks like this may be similar to the error reported in 
> https://sourceforge.net/p/fink/mailman/message/34848199/ 
> <https://sourceforge.net/p/fink/mailman/message/34848199/>, but that issue 
> was resolved by the maintainer rolling out a package update, so it doesn’t 
> seem to provide anything I can use directly.  Is there a way I can work 
> around this?
>  
>  
> Thanks,
>  
> John Bollinger
>  
> --
> John C. Bollinger
> Computing and X-Ray Scientist
> Department of Structural Biology
> St. Jude Children's Research Hospital
>  
>  
> 

The build appears to want one of the SDKs from Xcode.app.  Installing Xcode 7.1 
to match your command-line tools could be a quick workaround.

If this is indeed a requirement, libopenjp2.7 should probably declare this in 
its build dependencies.  On the other hand, it seems like some upstreams don’t 
really understand when to use the SDK and when not to, and it might be possible 
to adjust the build procedure not to bother with the SDKs.

-- 
Alexander Hansen, Ph.D.
Fink User Liaison

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to