How to install Mixmod on a Mac

39 views
Skip to first unread message

Baudry

unread,
Nov 3, 2010, 11:51:53 AM11/3/10
to mixmod
Hi,

I had some troubles to install Mixmod on my new Mac (under Snow
Leopard : Mac OS X 10.6.4). I finally overcame them (thanks, Florent!)
and explain how, in case it may help anyone in the same situation...


First, some tools to compile C codes are needed:
_Cmake, which can be downloaded from the Web* and installed anywhere
on the Mac.
_gcc compiler tools, which come for example with the Apple developer
tools, available on the Apple site** (it is required to register (for
free), but many very useful tools are obtained at the same time). I
had trouble because I tried to install this in a folder different from
the default one: I would not advice to do so...

Then, of course, download Mixmod source files from the Mixmod site and
unzip them in any folder.

I had to make the following changes to the file ./SRC/CMakeLists.txt
(as suggested in an other discussion of this group) :

##############################################"
--- SRC/CMakeLists.txt 2010-04-06 08:55:40.063337623 +0200
+++ SRC/CMakeLists-patch.txt 2010-04-06 08:56:19.577538936 +0200
@@ -4,13 +4,13 @@
ADD_EXECUTABLE(mixmod ${mixmod_src})
-TARGET_LINK_LIBRARIES(mixmod -static mixmodlib newmatlib)
+TARGET_LINK_LIBRARIES(mixmod mixmodlib newmatlib)
SET(test_src XEMTest.cpp)
ADD_EXECUTABLE(test ${test_src})
-TARGET_LINK_LIBRARIES(test -static mixmodlib newmatlib)
+TARGET_LINK_LIBRARIES(test mixmodlib newmatlib)
INSTALL(TARGETS mixmod test DESTINATION "BIN")
##############################################"
(replace the lines preceded by - with those preceded by +)

Finally, open a terminal, change directory to the Mixmod folder (cd
Mixmod_path) and follow the standard installation steps:
_Cmake (in the terminal, "Cmake ." or from the Cmake GUI directly).
_In the terminal : "make" and then "make install".

It works for me...

* here for example : http://www.cmake.org/cmake/resources/software.html
** here : http://developer.apple.com/technologies/xcode.html
Reply all
Reply to author
Forward
0 new messages