|
From: 有坂富雄 <ari...@ic...> - 2017-03-11 14:30:28
|
Hello, The following is my note of compiling wxWidgets and wxMaxima on MacOS X 10.11.6. In my case, wxWidgets depends on three libraries (jpeg, libpng, tiff). They have been automatically installed due to installing Gnuplot with MacPorts. I use some patch files which are included in MacPorts. -------------------------------------------------------------------------------- $ bzip2 -dc ./wxWidgets-3.0.2.tar.bz2 | tar xf - $ pushd ./wxWidgets-3.0.2/ $ patch -p0 </opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/wxWidgets-3.0/files/patch-upstream-webkit-proper-types.diff $ patch -p0 </opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/wxWidgets-3.0/files/patch-upstream-src-osx-carbon-fontdlgosx.mm.diff $ patch -p0 </opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/wxWidgets-3.0/files/patch-upstream-noquicktime.diff $ patch -p0 </opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/graphics/wxWidgets-3.0/files/patch-upstream-src-stc-scintilla-src-Editor.cxx.diff $ pushd ./build/ $ arch_flags="-arch x86_64" $ ../configure --with-macosx-version-min=10.9 --enable-unicode --with-opengl --with-osx_cocoa --with-libjpeg --with-libtiff --with-libpng --with-zlib --disable-mediactrl --enable-graphics_ctx --with-expat --disable-precomp-headers --disable-shared CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" LDFLAGS="$arch_flags" CC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/g++ -E" CXXCPP="/usr/bin/g++ -E" $ make $ popd;popd -------------------------------------------------------------------------------- $ tar xzf ./wxmaxima-15.08.2.tar.gz $ pushd ./wxmaxima-15.08.2 $ cp -i ../wxWidgets-3.0.2/wxwin.m4 ./acinclude.m4 $ ./configure --with-wx-config=../wxWidgets-3.0.2/build/lib/wx/config/inplace-osx_cocoa-unicode-static-3.0 --enable-fullystatic CC="/usr/bin/gcc -arch x86_64" CXX="/usr/bin/g++ -arch x86_64" CPP="/usr/bin/g++ -E" CXXCPP="/usr/bin/g++ -E" $ make $ make wxMaxima.app $ popd -------------------------------------------------------------------------------- But, I am afraid I cannot avoid linking some dynamic-libraries (libpng, libjpeg, libtiff). By the way, I have a trouble with wxMaxima-16.12.2 on my MacOS X. wxMaxima-16.12.2 is hung when I select the menu File->New or drop a file into the icon of wxMaxima. But, I don't have the trouble with wxMaxima-15.08.2. Therefore I decide to use wxMaxima-15.08.2. Thanks, Tomio Arisaka On 2017-2-20 18:03, 有坂富雄 <ari...@ic...> wrote: > Hello, > > I am migrating from Mac OS X 10.6.8 to 10.11.6. > Then, I compiled the source-code of Maxima to get the current version. > I think it is not hard to compile Maxima from the source-code. > > My notes of compiling Maxima is the following: > > (0) Install Xcode-8.2.1: > <https://guide.macports.org/#installing.xcode> > > (1) Install MacPorts: > <https://www.macports.org/> > > (2) Install some softwares with MacPorts: > $ sudo port install recode > $ sudo port install texinfo > $ sudo port install rlwrap > $ sudo port install autoconf > $ sudo port install automake > $ sudo port install gnuplot +pdflib +qt5 > > (3) Install Homebrew: > <https://brew.sh/> > > (4) Install SBCL-1.3.14 with Homebrew: > $ brew install sbcl > > (5) Download the source-code of Maxima-5.39.0: > <http://maxima.sourceforge.net/> > > (6) Compile Maxima and install it in "$HOME/sw": > $ mkdir $HOME/sw > $ cd $HOME/Downloads > $ tar xzf ./maxima-5.39.0.tar.gz > $ cd ./maxima-5.39.0 > $ ./configure --prefix=$HOME/sw --enable-gettext --enable-recode --enable-sbcl-exec > $ make > $ make install > $ cd .. > $ export PATH=$HOME/sw/bin:$PATH > $ maxima --version > > (7) We can install XQuartz (X11) if necessary: > <https://www.xquartz.org/> > > (8) We can install VTK-6.3.0 with Homebrew if necessary: > $ curl -G https://raw.githubusercontent.com/Homebrew/homebrew-science/092849afd643314eda1699ab6e6f1a793df91521/vtk.rb > ./vtk.rb > $ cp -ip ./vtk.rb ./vtk.rb.orig > $ open -e ./vtk.rb > $ diff -u ./vtk.rb.orig ./vtk.rb > --- ./vtk.rb.orig 2017-02-13 22:16:24.000000000 +0900 > +++ ./vtk.rb 2017-02-13 22:24:12.000000000 +0900 > @@ -34,7 +34,7 @@ > > depends_on "boost" => :recommended > depends_on "fontconfig" => :recommended > - depends_on "hdf5" => :recommended > + depends_on "homebrew/science/hdf5" => :recommended > depends_on "jpeg" => :recommended > depends_on "libpng" => :recommended > depends_on "libtiff" => :recommended > $ > $ brew install ./vtk.rb > > > By the way, if you have useful tips, please let me know. > > Thanks, > Tomio Arisaka > |