mriconvert: Can't build MRIConvert on Arch Linux, fails with "make: *** No rule to make target 'install'. Stop."

Chuck chuckt at uoregon.edu
Mon Apr 14 09:15:57 PDT 2014


Hello Lorenzo,

MRIConvert/mcverter is not built with the typical automake tools. The 
method of compiling from source is simply:

$ cd <MRIConvert source directory>
$ cmake
$ make

Note that you will need the developer distributions of Boost and 
wxWidgets for compilation and linking to succeed, and you will also need 
a static library build of wxWidgets, as the CMake file for 
MRIConvert/mcverter specifies static linking. See the README-SRC.txt 
file for details on configuring and building these packages.

Installation consists of copying the resulting binaries to a convenient 
directory. We may look into a way to automate the installation process, 
though other development issues will take priority.

FYI,
Chuck


On 04/08/2014 08:44 AM, Lorenzo Bandieri wrote:
> hi list,
>
> A bit of context: I'm trying to build MRIConvert 2.0.7 from source on
> Arch Linux. I'm hoping to write a PKGBUILD, that is a set of
> instructions used by Arch Linux to create a binary package from source
> (similar to slackbuild for those of you familiar with Slackware); I
> will then submit said PKGBUILD to the AUR (Arch User Repository), an
> unofficial but widely-used repository for user-submitted package, so
> to make easy for others Arch Linux users to build and run MRIConvert.
> Writing a PKGBUILD is done with the same commands that one would issue
> if he/she were compiling manually (e.g. ./configure && make && make
> install).
>
> In my case, the build fails with:
>
> make: *** No rule to make target 'install'.  Stop.
>
> I couldn't spot anything obvious in the output- not that I could make
> much sense of it, to be honest. I'm not experienced with building
> packages, so I don't know exactly what to look for.
>
> Anyway, the failure has been confirmed by another Arch Linux user.
> There is no installation directive in the makefile.
>
> The commands I'm running ("translated" from the PKGBUILD):
>
> mkdir MRIConvert-2.0.7/build
> tar -xzf MRIConvert-2.0.7-src.tar.gz -C MRIConvert-2.0.7/build
>
> cmake ./build -DCMAKE_INSTALL_PREFIX='/usr'
> -DCMAKE_BUILD_TYPE='Release'
> -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-2.8'
> -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc-2.8'
> make
> make install
>
> The build log can be found here: http://pastebin.com/6LgBkRr6
>
> I should probably mention that I didn't build wxWidgets and boost from
> source (which I'd like to avoid if possible). Also:
> - recommended: cmake 2.8.2 or greater - I have: cmake 2.8.12.2-2
> - recommended: wxWidgets 2.8.12 - I have: wxgtk2.8 2.8.12.1-1
> - recommended: Boost 1.52.0 - I have: boost 1.55.0-5
>
> Any help is greatly appreciated.
>
> Thanks,
>
> Lorenzo


-- 
Chuck Theobald
System Administrator
The Robert and Beverly Lewis Center for Neuroimaging
University of Oregon
P: 541-346-0343
F: 541-346-0345



More information about the mriconvert mailing list