4 thoughts on “libIEC61850 now on github

  1. Sayonsom Chanda

    Has anyone been able to work with the Python build for LibIEC61850?
    I have tried to build it using SWIG and CMAKE, and followed all instructions in the tutorial, but I end up with a bunch of missing *.h files error.
    I was wondering if there is a fixed version for it? Please let me know.

    Reply
    1. Jamie Ross

      I was trying the same thing.. you can copy the header files from .install where the build puts them and create a include directory.. then reference it in the .i file

      You also need to create a shared library (.so) from the .a archive

      I am having problems now as the library uses i386 and I am running 64bit (osx) .. but making progress:)

      Reply
      1. Michael Zillgith Post author

        I only build the python wrapper on Ubuntu. I do the following steps:
        – create a build directory for cmake in a separate folder (e.g. subfolder of the library folder)
        – in this folder I call “ccmake ..” (or replace “..” with the source path of libiec61850)
        – activate BUILD_PYTHON_BINDINGS in ccmake
        – make
        – sudo make install

        In my case the so file will be installed in /usr/local/lib but python doesn’t seem to find it there. So I copied the so file to /usr/lib or set LD_LIBRARY_PATH to /usr/local/lib

        Reply
  2. Jezzy

    Hi,
    I have tried to use libiec61850 but still failing to install it correctly. I have used cmake for making the build files but got the following errors after many attempts. Please help. Thank you

    Microsoft Windows [version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
    C:\Users\SESA160732>cmake -G “Visual Studio 15 2017 Win64” C:\Users\SESA160732\D
    ocuments\PROJETSM\PYTHON\libiec61850-1.1\libiec61850-1.1\libiec61850
    CMake Error: Error: generator : Visual Studio 15 2017 Win64
    Does not match the generator used previously: NMake Makefiles
    Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
    C:\Users\SESA160732>cmake -G “Visual Studio 15 2017 Win64” C:\Users\SESA160732\D
    ocuments\PROJETSM\PYTHON\libiec61850-1.1\libiec61850-1.1\libiec61850
    CMake Error: The source directory “C:/Users/SESA160732/Documents/PROJETSM/PYTHON
    /libiec61850-1.1/libiec61850-1.1/libiec61850” does not appear to contain CMakeLists.txt.
    Specify –help for usage, or press the help button on the CMake GUI.

    C:\Users\SESA160732>cmake -G “Visual Studio 15 2017 Win64” C:\Users\SESA160732\D
    ocuments\PROJETSM\PYTHON\libiec61850-1.1\libiec61850-1.1\libiec61850\build
    CMake Error: The source directory “C:/Users/SESA160732/Documents/PROJETSM/PYTHON
    /libiec61850-1.1/libiec61850-1.1/libiec61850/build” does not appear to contain C
    MakeLists.txt.
    Specify –help for usage, or press the help button on the CMake GUI.

    C:\Users\SESA160732>cmake -G “Visual Studio 15 2017 Win64” C:\Users\SESA160732\D
    ocuments\PROJETSM\PYTHON\libiec61850-1.1\libiec61850-1.1\libiec61850
    CMake Error: Error: generator : Visual Studio 15 2017 Win64
    Does not match the generator used previously: NMake Makefiles
    Either remove the CMakeCache.txt file and CMakeFiles directory or choose a diffe
    rent binary directory.

    C:\Users\SESA160732>cmake -G “NMake Makefiles” C:\Users\SESA160732\Documents\PRO
    JETSM\PYTHON\libiec61850-1.1\libiec61850-1.1\libiec61850
    — The C compiler identification is unknown
    — The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:10 (project):
    The CMAKE_C_COMPILER:
    cl
    is not a full path and was not found in the PATH.
    To use the NMake generator with Visual C++, cmake must be run from a shell
    that can use the compiler cl from the command line. This environment is
    unable to invoke the cl compiler. To fix this problem, run cmake from the
    Visual Studio Command Prompt (vcvarsall.bat).

    Tell CMake where to find the compiler by setting either the environment
    variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.
    CMake Error at CMakeLists.txt:10 (project):
    The CMAKE_CXX_COMPILER:
    cl
    is not a full path and was not found in the PATH.
    To use the NMake generator with Visual C++, cmake must be run from a shell
    that can use the compiler cl from the command line. This environment is
    unable to invoke the cl compiler. To fix this problem, run cmake from the
    Visual Studio Command Prompt (vcvarsall.bat).

    Tell CMake where to find the compiler by setting either the environment
    variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.

    — Configuring incomplete, errors occurred!
    See also “C:/Users/SESA160732/CMakeFiles/CMakeOutput.log”.
    See also “C:/Users/SESA160732/CMakeFiles/CMakeError.log”.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *