mz-automation / libiec61850

Official repository for libIEC61850, the open-source library for the IEC 61850 protocols
http://libiec61850.com/libiec61850
GNU General Public License v3.0
863 stars 461 forks source link

Python library not working as intended #478

Closed AjeyDikshit closed 11 months ago

AjeyDikshit commented 11 months ago

I have been trying to install the iec68150 library in my system, but I'm not able to get it to work. I'm getting the following error when I try to "make" the makefile.

collect2.exe: error: ld returned 1 exit status

pyiec61850\CMakeFiles_iec61850.dir\build.make:101: recipe for target 'pyiec61850/_iec61850.pyd' failed mingw32-make[2]: [pyiec61850/_iec61850.pyd] Error 1 CMakeFiles\Makefile2:1501: recipe for target 'pyiec61850/CMakeFiles/_iec61850.dir/all' failed mingw32-make[1]: [pyiec61850/CMakeFiles/_iec61850.dir/all] Error 2 Makefile:164: recipe for target 'all' failed mingw32-make: *** [all] Error 2

along with multiple "undefined reference" for Goose related functions.

I've been getting the iec61850.py and _iec61850.pyd files, but after I move them to python/Lib/site-packages and try to import it, I get DLL not found error.

The system I'm using is Windows 11, x64 bits architecture. And I'm using mingw32-make for makefile (What I've understood is this might be issue as I'm trying to compile x64 files using x32 bits compiler)