Archived

This forum has been archived. Please start a new discussion on GitHub.

Compile IcePHP

Hello,

I try to compile IcePHP with the patch but it doesn't work :(
making all in src
make[1]: Entering directory `/home/install-ice/Ice-3.3.0/php/src'
making all in IcePHP
make[2]: Entering directory `/home/install-ice/Ice-3.3.0/php/src/IcePHP'
make[2]: *** Pas de règle pour fabriquer la cible « ../../../cpp/include/Ice/CommunicatorF.h », nécessaire pour « Communicator.o ». Arrêt.
make[2]: Leaving directory `/home/install-ice/Ice-3.3.0/php/src/IcePHP'
make[1]: *** [all] Erreur 1
make[1]: Leaving directory `/home/install-ice/Ice-3.3.0/php/src'
make: *** [all] Erreur 1

I don't understand why it's bugging :(

Comments

  • benoit
    benoit Rennes, France
    Hi,

    IcePHP depends on Ice for C++ so you'll need to compile the C++ sources first in Ice-3.3.0/cpp. Another option is to set the ICE_HOME environment variable to a directory containing your Ice 3.3.0 binary distribution to compile IcePHP against it. See the Ice-3.3.0/php/INSTALL file for more information.

    Cheers,
    Benoit.
  • I tried to compile cpp but i get this:
    c++ -shared -Wl,--enable-new-dtags -Wl,-rpath,/opt/Ice-3.3/lib64 -m64 -ftemplate-depth-128 -Wall -D_REENTRANT -I/usr/include/nptl -fPIC -g -L../../lib -o ../../lib/libSlice.so.3.3.0 -Wl,-h,libSlice.so.33 Scanner.o ../Slice/Grammar.o Parser.o CPlusPlusUtil.o CsUtil.o JavaUtil.o Preprocessor.o Checksum.o PythonUtil.o DotNetNames.o RubyUtil.o Util.o MD5.o MD5I.o SignalHandler.o -lIceUtil -lmcpp -lpthread -lrt
    /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmcpp
    collect2: ld a retourné 1 code d'état d'exécution
    make[2]: *** [../../lib/libSlice.so.3.3.0] Erreur 1
    make[2]: Leaving directory `/home/install-ice/Ice-3.3.0/cpp/src/Slice'
    make[1]: *** [all] Erreur 1
    make[1]: Leaving directory `/home/install-ice/Ice-3.3.0/cpp/src'
    make: *** [all] Erreur 1

    :(
  • benoit
    benoit Rennes, France
    Hi Julien,

    See the cpp/INSTALL file for the 3rd party requirements. Here, you're missing the mcpp library. You can either compile it from source or download the RPM package for your distribution from our Download page (the mcpp-devel RPM is in one of the Ice-3.3.0-*-rpm.tar.gz files).

    Cheers,
    Benoit.