> What are the steps I need to take to compile a modified version of Avogadro 
> that I can share directly with other users with the same OS?  I want a simple 
> way to hand off my modified version to other researchers in the group.

If you're doing this on Mac, here's what I do -- a regular "make install" 
doesn't work.

I still use the old avogadro-super package, which couples the latest Open Babel 
and Avogadro. (On Mac, I don't need to compile zlib, Qt, etc. and the 
avogadro-squared still seems to do this.)

https://github.com/cryos/avogadro-super

Then here's the relevant part of my "nightly Avogadro" script for Mac. You may 
want to tinker with the various flags to cmake, use clang, etc.

CC=llvm-gcc CXX=llvm-g++ cmake ../../avogadro-super/ 
-DCMAKE_CXX_FLAGS=-I/usr/X11/include -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo 
-DCMAKE_OSX_ARCHITECTURES="x86_64" 
-DCMAKE_OSX_SYSROOT='/Developer/SDKs/MacOSX10.6.sdk' 
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.5 -DENABLE_PYTHON=false -DENABLE_GLSL=false 
-DENABLE_AVO_PACKAGE=true -DENABLE_UPDATE_CHECKER=true 
-DENABLE_VERSIONED_PLUGIN_DIR=false -DENABLE_BOOST=false -DENABLE_TESTS=false 
-DBUILD_TESTING=false
make -j5
make -j5
rm -r /Applications/Avogadro.app
make install

if [ -e /Applications/Avogadro.app ]; then

cd /Applications/Avogadro.app/Contents
rm -fr bin
rm -rf plugins/designer
rm -rf plugins/phonon_backend
rm -rf plugins/sqldrivers
rm -rf MacOS/libphonon*
rm -rf Frameworks/phonon.framework
rm -rf Frameworks/Qt3Support.framework
rm -rf Frameworks/QtDBus.framework
rm -rf Frameworks/QtDesigner.framework
rm -rf Frameworks/QtTest.framework
rm -rf Frameworks/QtXmlPatterns.framework
rm -rf share/avogadro/i18n/qt_help*.qm
rm -rf share/avogadro/i18n/qtconfig*.qm

fi
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to