IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Compilation et bamcompile


Sujet :

Langage PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Invité
    Invité(e)
    Par défaut Compilation et bamcompile
    Bonjour,
    j'utilise bamcompile pour compiler mes programme php le problème étant que j'essaye d'utiliser la librairie mcrypt.
    Voici l'erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    array
      0 => string '' (length=0)
      1 => string 'Bambalam PHP EXE Compiler/Embedder 1.21' (length=39)
      2 => string '' (length=0)
      3 => string 'Mainfile: c:\wamp\www\php_file.php' (length=32)
      4 => string 'Outfile: c:\wamp\www\php_file.exe' (length=31)
      5 => string '' (length=0)
      6 => string 'Encoding and embedding c:\wamp\www\php_file.php' (length=45)
      7 => string 'Extension php_mcrypt.dll not found' (length=34)
      8 => string 'Extension libmcrypt.dll not found' (length=33)
      9 => string 'Extension php_mhash.dll not found' (length=33)
      10 => string '' (length=0)
      11 => string 'Warning: res_set: error updating module: Paramètre incorrect.' (length=61)
      12 => string ' in bamcompile.php on line 1' (length=28)
      13 => string '' (length=0)
      14 => string 'c:\wamp\www\php_file.exe created successfully!' (length=44)
      15 => string '' (length=0)
      16 => string 'Fatal error: Call to undefined function:  mcrypt_encrypt() in c:\wamp\www\biatch.php on line 5' (length=94)
    Merci d'avance.
    Dernière modification par Invité ; 08/03/2013 à 10h01.

  2. #2
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2004
    Messages
    108
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Juin 2004
    Messages : 108
    Par défaut
    Bonjour,

    Je dirais à priori que les extensions php mcrypt et mhash ne sont pas installées.
    7 => string 'Extension php_mcrypt.dll not found' (length=34)
    9 => string 'Extension php_mhash.dll not found' (length=33)
    Après, si elles le sont, bamcompile va bien chercher les dll au bon endroit ?

  3. #3
    Invité
    Invité(e)
    Par défaut
    Salut je ne sais pas du tout ou ce logiciel vas chercher les dlls , avec wamp je n'ai pas c'est problème car je suis avec php 5.3.10 et la librairie mcrypt est incluse. J'ai essayer quand même télécharger c'est dll et de les mettre dans le dossier avec toutes les autres dll de wamp mais sa ne marche non plus

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    Options:
     -w  Hide console window for windowed applications
     -c  Compress output exe (using UPX)
     -d  Do not encode PHP files
     -e:extension.dll Embed and use PHP extension
     -i:icon.ico Add icon to exe
    Fichier readme.txt

  4. #4
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2004
    Messages
    108
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Juin 2004
    Messages : 108
    Par défaut
    Tu peux mettre la commande exacte que tu as utilisé pour compiler ?

  5. #5
    Invité
    Invité(e)
    Par défaut
    Oui biensur

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    <?php
    exec('bamcompile -e:php_mcrypt.dll -e:libmcrypt.dll -e:php_mhash.dll '.getcwd().'\\php_file.php '.getcwd().'\\php_file.exe');
    ?>
    EDIT :
    Je crois avoir trouvé il fallait mettre le chemin du fichier.
    Maintenant j'ai sa , je croit que j'ai une mauvaise dll je ne sais pas ou télécharger les dlls officiel
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    array
      0 => string '' (length=0)
      1 => string 'Bambalam PHP EXE Compiler/Embedder 1.21' (length=39)
      2 => string '' (length=0)
      3 => string 'Mainfile: c:\wamp\www\php_file.php' (length=32)
      4 => string 'Outfile: c:\wamp\www\php_file.exe' (length=31)
      5 => string '' (length=0)
      6 => string 'Encoding and embedding c:\wamp\www\php_file.php' (length=45)
      7 => string 'Embedding libmcrypt.dll and adding it to extension loader' (length=57)
      8 => string '' (length=0)
      9 => string 'c:\wamp\www\php_file.exe created successfully!' (length=44)
      10 => string '' (length=0)
      11 => string 'Warning: dl_memory(): Invalid library (maybe not a PHP library) 'LIBMCRYPT.DLL'  in bambalam_init.php on line 1' (length=111)
      12 => string '' (length=0)
      13 => string 'Fatal error: Call to undefined function:  mcrypt_encrypt() in c:\wamp\www\biatch.php on line 5' (length=94)
    Dernière modification par Invité ; 08/03/2013 à 11h16.

  6. #6
    Membre expérimenté
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juin 2004
    Messages
    108
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Loiret (Centre)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : Communication - Médias

    Informations forums :
    Inscription : Juin 2004
    Messages : 108
    Par défaut
    Et si tu enlèves tout simplement cette librairie dans ta ligne de compilation ?

Discussions similaires

  1. Réponses: 15
    Dernier message: 10/10/2002, 20h19
  2. [Installation] Borland Compiler 5.5 sous XP
    Par Ligey dans le forum Autres éditeurs
    Réponses: 16
    Dernier message: 28/09/2002, 23h45
  3. dans le fond, la compilation...
    Par deltapositive dans le forum C++Builder
    Réponses: 5
    Dernier message: 17/09/2002, 13h14
  4. Vitesse de compilation
    Par srvremi dans le forum C++Builder
    Réponses: 5
    Dernier message: 30/07/2002, 17h49
  5. Réponses: 1
    Dernier message: 27/05/2002, 02h44

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo