Compile on OS X 10.6 snow leopard

6 views
Skip to first unread message

Angel

unread,
Nov 2, 2009, 3:32:24 PM11/2/09
to spctools-discuss
I use MacPorts, not fink, so I had to change Makefile.incl directly.
In addition, you need to change the BOOST_BJAM_EXEC location to work
on snow leopard. One final note is that the CGI/Makefile has an
unsupported flag in one of the copy operations.

Here is how to compile from source in OS X 10.6:

$ unzip TPP_4-3-1-src.zip
$ cd trans_proteomic_pipeline
$ patch -p0 -i /path/to/attached/patch/file/copied/below

Then make and make install as usual to make and install.

Patch file below.

-angel

Index: src/Makefile.incl
===================================================================
--- src/Makefile.incl (revision 4730)
+++ src/Makefile.incl (working copy)
@@ -132,10 +132,10 @@
#
ARCH= darwin
OSFLAGS= -D__LINUX__ -DDEFAULT_TPP_INSTALL_ROOT=\"$(TPP_ROOT)\"
-GD_LIB= /sw/lib/libgd.a /sw/lib/libpng.a
-GD_INCL= -I /sw/include/
+GD_LIB= /opt/local/lib/libgd.a /opt/local/lib/libpng.a
+GD_INCL= -I /opt/local/include/
PTHREAD_LIB= -lpthread
-PERL_LIB_CORE=/sw/lib/perl5-core/5.8.6/darwin-thread-multi-2level/
CORE/
+PERL_LIB_CORE=/opt/local/lib/perl5-core/5.8.6/darwin-thread-
multi-2level/CORE/
ifeq ($(wildcard $(PERL_LIB_CORE)/*), )
#probably 5.8.8 on this system
PERL_LIB_CORE=/System/Library/Perl/5.8.8/darwin-thread-multi-2level/
CORE/
@@ -351,7 +351,7 @@
endif
endif
ifeq ($(ARCH),darwin)
-BOOST_BJAM_EXEC = $(BOOST_BJAM_DIR)bin.macosxx86/bjam
+BOOST_BJAM_EXEC = $(BOOST_BJAM_DIR)bin.macosxx86_64/bjam
endif
ifeq ($(ARCH),mingw)
BOOST_BJAM_EXEC = $(BOOST_BJAM_DIR)bin.ntx86/bjam
Index: CGI/Makefile
===================================================================
--- CGI/Makefile (revision 4730)
+++ CGI/Makefile (working copy)
@@ -44,4 +44,4 @@
cp -f tpp_gui/*.gif ${CGI_DIR}/images
cp -f ../installer_win32/*.ico ${CGI_DIR}/images
mkdir -p ${CGI_USERS_DIR}
- cp -rfu tpp_gui/users/* ${CGI_USERS_DIR}
\ No newline at end of file
+ cp -rf tpp_gui/users/* ${CGI_USERS_DIR}
\ No newline at end of file

Natalie Tasman

unread,
Nov 2, 2009, 3:57:57 PM11/2/09
to spctools...@googlegroups.com
Thank you, Angel.

By the way, I've also switched to MacPorts (vs Fink) for future TPP
development work, but haven't yet tested the TPP with 10.6 (I'm
waiting until 10.6.2 at least), so this is appreciated.

-Natalie

Angel

unread,
Nov 5, 2009, 9:56:13 AM11/5/09
to spctools-discuss
no prob. Also one other note (that was not picked up in the diff file)
is that the PWIZ_LITTLE_ENDIAN was note able to be defined in pwiz/
pwiz/utility/misc/endian.hpp, so just commented out the conditions to
set it. Didn't have time to trace how to set the proper flag to set
endianness uring the pwiz build, so you'll also need to account for
that.

-angel

On Nov 2, 3:57 pm, Natalie Tasman <natalie.tas...@insilicos.com>
wrote:
Reply all
Reply to author
Forward
0 new messages