I'd like to just turn the bundle application off, and make a regular unix
app, even on the mac. Any ideas how to do this? I tried setting -D
MACOSX_BUNDLE=OFF in the cmake configuration script, but it still installed
everything into /Applications. Here's my config script:
cmake \
-D CMAKE_PREFIX_PATH=$PREFIX \
-D CMAKE_INSTALL_PREFIX=$PREFIX \
-D EIGEN3_INCLUDE_DIR=$PREFIX/include/eigen3 \
-D USE_SYSTEM_YAEHMOP=ON \
-D MACOSX_BUNDLE=OFF \
..
Here $PREFIX is defined as my CONDA_PREFIX directory, e.g.
~/miniconda2/envs/dev, and I was hoping the executable would end up there,
like it does on linux. Instead, some file named 'avopkg' and 'qube' are in
the /Applications/Avogadro.app/Contents/bin folder.
On Fri, Apr 21, 2017 at 4:58 PM Rick Muller <rpmul...@gmail.com> wrote:
> I had set CMAKE_INSTALL_PREFIX to point to my conda environment directory,
> which was why I was so surprised to see it install elsewhere. Most of the
> time that works, even on the Mac. But if I have a little bit of time I'll
> see if I can figure out what's going on.
>
> On Fri, Apr 21, 2017, 12:24 PM Geoffrey Hutchison <
> geoff.hutchi...@gmail.com> wrote:
>
>> > I tried to build my conda recipe for avogadro on my mac laptop, and was
>> surprised to see the code installing under /Applications rather than in the
>> conda environment subdirectory where I had expected it.
>>
>>
>> The default is to install in /Applications because that's where Mac apps
>> go. It's pretty easy to add a symlink, eg..
>>
>> sudo ln -s /Applications/Avogadro.app/Contents/MacOS/Avogadro
>> /usr/local/bin/avogadro
>>
>> If you want to change the location of the bundle, you'll need to look at
>> CMakeLists.txt, e.g.
>>
>> set(CMAKE_BUNDLE_LOCATION "/Applications")
>> set(CMAKE_INSTALL_PREFIX
>> "/Applications/${CMAKE_BUNDLE_NAME}.app/Contents")
>>
>> So you can set those when running cmake on Mac and you'll get it in a
>> different location. I'll note that some Anaconda and MacPorts recipes will
>> install things in /Applications too.
>>
>> -Geoff
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Avogadro-devel mailing list
Avogadro-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/avogadro-devel