Fix https://www.lrde.epita.fr/cgi-bin/twiki/view/Projects/SwigVersion .
Applique le meme principe pour ruby.
Index: ChangeLog
from Nicolas Burrus <burrus_n(a)lrde.epita.fr>
* config/oln-local.m4: Fix swig detection.
* configure.ac: Stop if ruby is not found. Stop if swig is not
found.
+2003-09-21 Nicolas Burrus <burrus_n(a)lrde.epita.fr>
+
* configure.ac: Generate makefiles for swilena tests.
2003-09-21 Nicolas Burrus <burrus_n(a)lrde.epita.fr>
Index: configure.ac
--- configure.ac Sun, 21 Sep 2003 23:13:48 +0200 burrus_n (oln/3_configure. 1.47.1.1.1.1.1.4.1.15.1.12 640)
+++ configure.ac Sun, 21 Sep 2003 23:54:00 +0200 burrus_n (oln/3_configure. 1.47.1.1.1.1.1.4.1.15.1.13 640)
@@ -350,6 +350,12 @@
AC_CHECK_SWIG13 dnl definition in oln-local.m4
+ # We cannot enable swilena without swig because we need the dynamic
+ # library (swig{py,rb}).
+ if test "x$oln_cv_recent_swig" != "xyes"; then
+ AC_MSG_ERROR([You need swig >= 1.3 to compile swilena. You can disable swilena by specifying --without-swilena to configure.])
+ fi
+
AC_ARG_VAR([DVIPS], [program to make Postscript from TeX DVI files])
AC_CHECK_PROGS([DVIPS], [dvips], [$am_aux_dir/missing dvips])
AC_ARG_VAR([TEXI2DVI], [program to create DVI from Texinfo files])
@@ -387,15 +393,20 @@
[tools/swilena/ruby/Makefile
tools/swilena/ruby/tests/Makefile],
[
+ AC_CHECK_PROGS([RUBY], [ruby], [$am_aux_dir/missing ruby])
+ if test "x$RUBY" = "x$am_aux_dir/missing ruby"; then
+ AC_MSG_ERROR([You need ruby to compile the ruby interface. Specify --without-rblena to disable the ruby interface.])
+ fi
+
AC_ARG_VAR([RUBY_CPPFLAGS], [Path to ruby.h])
- AC_ARG_WITH([python-includedir], [Include path for ruby.h],
+ AC_ARG_WITH([ruby-includedir], [Include path for ruby.h],
[RUBY_CPPFLAGS="-I$withval"],
[RUBY_CPPFLAGS="-I/usr/lib/ruby/1.6/i386-linux"])
CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
AC_CHECK_HEADERS([ruby.h],,
AC_MSG_ERROR(
- [You need Ruby development files to compile the Ruby interface. Specify --with-python-includedir to set it manually or --without-rblena to disable it.]))
+ [You need Ruby development files to compile the Ruby interface. Specify --with-ruby-includedir to set it manually or --without-rblena to disable it.]))
CPPFLAGS=$save_CPPFLAGS
], [ruby])dnl End of OLN_COMPONENT([tools/swilena/ruby])
Index: config/oln-local.m4
--- config/oln-local.m4 Mon, 04 Aug 2003 17:34:35 +0200 burrus_n (oln/p/37_oln-local. 1.6 640)
+++ config/oln-local.m4 Sun, 21 Sep 2003 23:54:00 +0200 burrus_n (oln/p/37_oln-local. 1.7 640)
@@ -60,12 +60,7 @@
AC_DEFUN([AC_CHECK_SWIG13],
[dnl
AC_ARG_VAR([SWIG], [the SWIG interface generator])
-# FIXME: cleanup this
-# We cannot enable the compilation of swilena without swig, since
-# the link phase requires libswigpy.so.
-# AC_CHECK_PROGS([SWIG], [swig], [$am_aux_dir/missing swig])
- AC_CHECK_PROGS([SWIG], [swig], AC_MSG_ERROR([You need swig >= 1.3 to compile swilena. You can disable swilena by specifying --without-swilena to configure.]))
-
+ AC_CHECK_PROGS([SWIG], [swig], [$am_aux_dir/missing swig])
AC_CACHE_CHECK([for SWIG >= 1.3],
[oln_cv_recent_swig],
[oln_cv_recent_swig=no
@@ -81,4 +76,5 @@
fi
fi
fi])
+
])
Soit la méthode "print" d'une classe située dans le namespace oln.
Soit p un point2d.
Je souhaite afficher mon point2d, et j'écris :
os << p << std::endl;
Malheureusement, le compilateur ne voit pas
operator<<(ostream&, const point2d&) pourtant défini en dehors de
tout namespace dans point2d.hh.
Pour afficher mon point, je dois alors écrire :
::operator<<(os, p);
C'est pas très joli. C'est moi qui fume, ou bien ?
--
astrid
Dans cette nouvelle branche sera mis en place le nouveau
système de documentation à base de Doxygen.
D'après de premières estimations, il ressort que le système
créé par Pollux ne sera pas maintenu (= abandonné), car il est assez
compliqué et fait double-emploi avec les nouvelles fonctionnalités de
Doxygen.
Responsables : Giovanni, Sylvain, Nes (?) et moi-même.
--
astrid
J'ai un probleme avec le threshold dans olena. J'utilise la version
.9 du wiki. Le probleme est le suivant : le make check dans level me
donne un petit vecteur a la place d'une image 2d. (sur la version
0.10, l'image a la bonne taille)
ce que j'ai :
P4
# Creator: OLENA / Epita-LRDE
512 1 <---- au lieu de 256 par 256
....
De plus il y a un deuxieme probleme : le suillage se termine (sur .9
et .10) par une image noire (tout le monde est a zero).
Enfin je crois que le probleme viens des io car l'algo de seuillage est assez
simple, et de temps a autre, le pgm de sortie est invalide.
pour info l'image invalide que j'obtient est :
P5
# Creator: OLENA / Epita-LRDE
620 874
0 <---- je pense pas que ce soit normal
....
--
Giovanni Palma
EPITA - promo 2005 - membre d'EpX - LRDE
Mob. : +33 (0)6 60 97 31 74
Attn: Sir/Madam,
My name is Mr. Eric Jones chairman of contract award and monitoring
committee of the ministry of industry and international trade development
,my duty as empowered by the Mauritius government is to provide the basic
amenities, social recreational activities in urban and rural areas.
This program includes assistance to deprived local communities and to
co-ordinate projects and development at the national level, furthermore,
from this projects we have been able to secured some Reasonable amount of
u.s.$21.8(twenty one million eight hundred thousand US. dollars only) as
commission from various contractors resulting from over invoicing ,hence all
the necessary approvals has been completed.
These approved fund was packaged and dispatched through a security company
for onward delivery to its Destination in Europe.
These fund was first deposited into a security vault before we arrange for
its movement to Europe through diplomatic channel using decoy purporting
that the fund belongs to an expatriate/company. As we are government
officials, we are not allowed to operate foreign bank
account, hence we need you to stand as the beneficiary and claim the fund on
our behalf from the security company.
Presently I am now in Europe to search for a reliable person/company of high
integrity /dignity and one with conscience who will claim this fund on our
behalf as the beneficiary ,and we have agreed to give you 25%of the total
sum as commission for your Assistance/effort and 5% will
be used to settle every expenses incurred we will use 70%to invest under
your recommendation and guide and go into joint venture business with you.
I would greatly appreciate your assistance . I look forward to your response
as soon as possible.
Best regards
Eric Jones
0031630324551