Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2018 14:40:18 +0900
From:      Kouichi Hirabayashi <kh@mogami.com>
To:        freebsd-users-jp@freebsd.org
Subject:   [FreeBSD-users-jp 96219]  =?iso-2022-jp?b?RnJlZUZlbSsrIBskQiROJSQlcyU5JUghPCVrTGRCahsoQg==?=
Message-ID:  <20180611144018.f90de42d7d9a3713f86b8e4e@mogami.com>

next in thread | raw e-mail | index | archive | help
FreeFem++ (http://www.freefem.org/) freefem++-3.60.tar.gz
$B$NIA2h%W%m%0%i%`(B ffglut $B$rF0$+$9J}K!$r8+$D$1$?J}$O$*$i$l$J$$$G$7$g$&$+!)(B

$BNc$($P!"(BFreeBSD-10.3, FreeBSD-11.1 $B$J$I$G!"(B

$ ./configure --enable-download --without-mpi

$B$G(B compile $B$G$-$k(B($BCm#1(B)$B$N$G$9$,!"IA2h%W%m%0%i%`(B ffglut $B$,F0$-$^$;$s!#(B

$ ./ffglut
/usr/local/lib/compat/libstdc++.so.6: version GLIBCXX_3.4.11 required by ..

$B$H$+(B

/lib/libgcc_s.so.1: version GCC_4.6.0 required by /usr/local/lib/gcc48..

$B%i%$%V%i%j$NL7=b$G5/F0$;$:!"L5M}$K(B

LD_LIBRARY_PATH=/usr/local/lib/gcc48 ffglut

$B$H5/F0$7$F$b!X%;%0%a%s%F!<%7%g%s0cH?(B (core dumped)$B!Y$G;H$($^$;$s!#(B($BCm#2(B)


$B$I$J$?$+!"LdBj$r2r7h$7$F$$$?$@$1$k$H4r$7$$$G$9!#(B


$BCm#1(B - compile $BK!(B

FreeBSD-10.3 $B$G9T$C$?J}K!$r=q$$$F$*$-$^$9!#(B

ports/graphics/freeglut $B$,%$%s%9%H!<%k$5$l$F$$$F!"(Bwget, perl, bash
$B$,B8:_$9$k$3$H$r3NG'$7$F$+$i!"<B9T$7$F$/$@$5$$!#(B

1) compile $BCf$G;H$o$l$k%3%^%s%I$N=`Hw(B

Linux $BA0Ds$N(B script $B$K$J$C$F$$$^$9$N$G!"Nc$($P!"(B

 ln -s /usr/local/bin/wget /usr/bin/wget
 ln -s /usr/local/bin/perl /usr/bin/perl
 ln -s /usr/local/bin/bash /bin/bash
 mv /usr/bin/make /usr/bin/make.bsd
 ln -s /usr/local/bin/gmake /usr/bin/make

$B$9$Y$F$N;E;v$,=*$C$?8e$G(B /usr/bin/make $B$r85$KLa$7$^$9!#(B

 rm /usr/bin/make
 mv /usr/bin/make.bsd /usr/bin/make
 $B$"$k$$$O(B ln -s /usr/bin/make.bsd /usr/bin/make

2) FreeBSD $B$GI,MW$JJQ99(B

*** src/fflib/AFunction.cpp.orig	2018-04-13 18:14:48.000000000 +0900
--- src/fflib/AFunction.cpp	2018-06-10 20:00:03.967376000 +0900
***************
*** 35,41 ****
  //  put here some def dur to c++11 
  // problem with mixed with using namespace std; 
  // to correct bug in g++ v 4.8.1 add std
! #if defined (_WIN32  ) || (__GNUC__ >=5)
  #define NM_STD std::
  #else
  #define NM_STD 
--- 35,41 ----
  //  put here some def dur to c++11 
  // problem with mixed with using namespace std; 
  // to correct bug in g++ v 4.8.1 add std
! #if defined (_WIN32  ) || (__GNUC__ >=4)
  #define NM_STD std::
  #else
  #define NM_STD 
***************
*** 67,72 ****
--- 67,73 ----
  #include "array_init.hpp"
  
  // Add FH to get memroy used in test .. march 2014
+ #include <stdlib.h>
  #if __APPLE__
  #include <malloc/malloc.h>
  #elif HAVE_MALLOC_H
*** src/femlib/CheckPtr.cpp.orig	2018-04-13 18:14:48.000000000 +0900
--- src/femlib/CheckPtr.cpp	2018-06-10 20:07:06.831087000 +0900
***************
*** 25,35 ****
--- 25,39 ----
   void* operator new (std::size_t size, const std::nothrow_t& nothrow_value) noexcept;
   p
   */
+ #if __FreeBSD__
+ #include <stdlib.h>
+ #else
  #if __APPLE__
  #include <malloc/malloc.h>
  #else
  #include <malloc.h>
  #endif
+ #endif
  
  static long verbosity;
  
3) compile

  ./configure --enable-download --without-mpi
  make

$B$3$l$G(B src/nw/FreeFem++, FreeFem++-nw, ffglut $B$,$G$-$^$9!#(B

  ./configure --enable-download --without-mpi --enable-debug

$B$@$H!"%G%P%C%0MQ$N%P%$%J%j$,$G$-$^$9!#(B

--without-mpi $B$r;XDj$7$J$1$l$P(B MPI $B$r;H$&(B FreeFem++-mpi $B$b$G$-$^$9!#(B


$BCm#2(B - $B%0%i%U%#%C%/I=<($J$7$N(B FreeFEM-nw $B$O@5>o$KF0:n$7$^$9!#(B

$BJ?NS(B $B9@0l(B



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180611144018.f90de42d7d9a3713f86b8e4e>