conda deactivate --> utiliser python 3.10 avec qt5


MODIF du makefile : 
#all: packages pysimcoder shv nuttx f7
all: packages pysimcoder shv


 2091  sudo apt install qtbase5-dev qttools5-dev qttools5-dev-tools
 2092  ls
 2093  cd SHV/
 2104  make clean
 2105  make SHV=1
 2106  cd pysimCoder/
 2107  ls
 2108  bash pysim-run.sh 


https://www.robots5.com/pysimcoder-installation-tutorial

========================================================================
MAJ variables d'état

export PYSUPSICTRL=/home/kerhoas/pysimcoder_v2026/pysimCoder


========================================================================
Conception bibliothèques  
------------------------  

/kerhoas/pysimcoder_v2026

------------------------------------------------------------------------
AJOUT d'UNE BIBLIOTHEQUE : 
modifier fichier : 
./resources/blocks/blocks/folders:ENIB_PMSM


------------------------------------------------------------------------  
CodeGen
  ENIB
	duty1_function.c
	...
  ENIB_PMSM
    clarke_INT16_function.c 
    ...
    
------------------------------------------------------------------------  
BlockEditor
------------------------------------------------------------------------  
resources  
   blocks
      blocks
		 ENIB
		    duty1.xblk
		        {"lib": "ENIB", "name": "duty1", "ip": 1, "op": 1, "stin": 0, "stout": 0, "icon": "duty1", "params": "duty1_function", "help": ""}
=============>  {
				  "lib": "ENIB",
				  "name": "duty1",
				  "ip": 1,
				  "op": 1,
				  "stin": 0,
				  "stout": 0,
				  "icon": "duty1",
				  "params": "duty1_function",
				  "help": ""
				}		        
		    ...
		 ENIB_PMSM
      Icons
          duty1.svg
      rcpBlk
          ENIB
             duty1_function.py
											from supsisim.RCPblk import RCPblk
											from scipy import size

											def duty1_function(pin, pout):
												"""

												Call:   duty1_function(pin, pout)

												Parameters
												----------
												   pin: connected input port(s)
												   pout: connected output port(s)

												Returns
												-------
												   blk: RCPblk

												"""

												blk = RCPblk('duty1_function', pin, pout, [0,0], 0, [], [])
												return blk
                   
========================>
											from supsisim.RCPblk import RCPblk
											from numpy import size

											def duty1_function(pin, pout):
												"""

												Call:   duty1_function(pin, pout)

												Parameters
												----------
												   pin: connected input port(s)
												   pout: connected output port(s)

												Returns
												-------
												   blk: RCPblk

												"""

												blk = RCPblk('duty1_function', pin, pout, [0,0], 0, [], [])
												return blk
                   
                   
                   
          ENIB_PMSM
   icons
   

========================================================================  
Defining new blocks
   defBlocks  --> .xblk
   xblk2Blk   --> 
      
 =======================================================================
 !!! il faut aussi copier les fichiers .c dans CodeGen/LinuxRT/devices
 puis faire $ make lib 
--> .o

(base) kerhoas@kerhoas-HP-EliteBook-850-G8-Notebook-PC:~/pysimcoder_v2026/pysimCoder$ make lib


########################################################################
########################################################################


# NOUVELLE INSTALL
#===================
su
dnf update
dnf install -y epel-release
dnf install -y geany
dnf install -y inkscape


dnf install -y qt5-qtbase-devel qt5-qtwebkit-devel qt5-qtserialport-devel
dnf install -y qt5-qtwebsockets-devel qt5-qtsvg-devel qt5-qttools-devel doctest-devel
dnf install -y gcc-gfortran git cmake binutils emacs
dnf install -y lua gcc-toolset-11  
dnf install -y lapack-devel libgfortran

dnf config-manager --set-enabled powertools
dnf install -y blas-devel lapack-devel -y  
dnf install -y python3-numpy python3-matplotlib
dnf install -y gsl gsl-devel

#---------------------------------------------------------------------------------
# USER
      
mkdir -p SHV
git clone https://github.com/silicon-heaven/shvapp SHV/shvapp
git clone https://github.com/silicon-heaven/shvspy SHV/shvspy
cd SHV/shvapp; git submodule update --init --recursive
cd ../shvspy; git submodule update --init --recursive

cd ../shvapp; mkdir build;cd build;

scl enable gcc-toolset-11 bash
cmake  -DSHVSPY_USE_QT6=OFF -DLIBSHV_USE_QT6=OFF -DCMAKE_INSTALL_PREFIX=.. ..
make -j6

sudo make install  

cd ../../shvspy/
mkdir build
cd build

cmake  -DSHV_USE_QT6=OFF -DLIBSHV_USE_QT6=OFF -DSHVSPY_USE_QT6=OFF -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=.. ..

sudo make install

#---------------------------------------------------------------------------------

conda create -p /home/kerhoas/pysimcoder_12 python=3.12 --channel conda-forge ####### !!! REMPLACER par /home/TP/sujets/pysimcoder_12  
conda activate /home/kerhoas/pysimcoder_12

pip install control
conda install -c conda-forge slycot

pip uninstall numpy -y
pip install "numpy<2.0"

python3 -m pip install \
    pyqt5 \
    cmake \
    tk-tools \
    "qtconsole>=5.0.2" \
    "matplotlib>=3.3.4" \
    "sympy>=1.7.1" \
    "pyqtgraph>=0.11.0" \
    "lxml>=4.6.3" \
    "tornado>=6.1" \
    "scikit-build>=0.15.0" \
    "pyshv>=0.8.0" \
    "typing-extensions>=4.13.1"

? git clone https://github.com/robertobucher/pysimCoder
? cd pysimCoder

? make modules


##########################################################################
# SCADABr

dnf install -y libnsl
git clone https://github.com/thiagoralves/ScadaBR_Installer.git
cd ScadaBR_Installer
./install_scadabr.sh
/opt/tomcat6/apache-tomcat-6.0.53/bin/startup.sh
sudo chmod 777 /opt/tomcat6/apache-tomcat-6.0.53/logs/catalina.out


##########################################################################
http://localhost:9090/ScadaBR/login.htm


================================================================================
MODBUS ***
================================================================================
dnf install -y git gcc make autoconf automake libtool
dnf install -y cmake gcc make
dnf install -y libmodbus libmodbus-devel
git clone https://github.com/epsilonrt/mbpoll.git
cd mbpoll
mkdir build
cd build
cmake ..
make
make install






#############################################################################
kerhoas n'apparaît pas dans le fichier sudoers. Cet incident sera signalé.

++
su --login

dnf install epel-release
dnf install geany

dnf groupinstall "Xfce"
dnf groupinstall "Server with GUI"
systemctl set-default graphical.target
systemctl start graphical.target

================================================================================
INSTALL PYSIMCODER
================================================================================

dnf install inkscape

dnf install python38  
sudo dnf groupinstall "Development Tools" -y
sudo dnf install python3 python3-devel python3-pip \
                 cmake gcc gcc-c++ lapack-devel blas-devel \
                 libxml2-devel -y

sudo dnf config-manager --set-enabled powertools
sudo dnf config-manager --set-enabled crb
sudo dnf install blas-devel lapack-devel -y    

sudo dnf install qt5-qtbase-devel qt5-qtx11extras-devel \
                 python3-devel python3-pip python3-setuptools -y             
                 
python3 -m pip install --upgrade pip setuptools wheel


#####

sudo dnf install qt5-qtbase-devel qt5-qtx11extras-devel \
                 python3-devel python3-pip python3-setuptools -y

sudo dnf module enable python:3.12 -y
sudo dnf install python3.12 python3.12-devel python3.12-pip -y
dnf install conda
conda create -p /home/kerhoas/condadir python=3.12 --channel conda-forge
conda activate /home/kerhoas/condadir

python3 -m pip install \
    cmake \
    tk-tools \
    "qtconsole>=5.0.2" \
    "numpy>=1.19.5" \
    "control>=0.9.2" \
    "matplotlib>=3.3.4" \
    "slycot>=0.5.0" \
    "sympy>=1.7.1" \
    "pyqtgraph>=0.11.0" \
    "lxml>=4.6.3" \
    "tornado>=6.1" \
    "scikit-build>=0.15.0" \
    "pyshv>=0.8.0" \
    "typing-extensions>=4.13.1"\
 ######   PyQt6  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

cd pysimcoder
make all
 

https://github.com/robertobucher/LinuxLabo/
cd Ubuntu_installer

dnf install gcc gfortran git cmake binutils emacs
dnf install gcc-gfortran
dnf install python3-numpy python3-sympy python3-matplotlib
dnf install jupyter-qtconsole python3-lxml python3-pyqtgraph
pip install sympy
pip install qtconsole pyqtgraph lxml
#dnf install libopenblas-devel liblapack-devel libxml2-devel libcomedi-devel
dnf install openblas-devel lapack-devel libxml2-devel
pip install pyqt5 serial
pip install PythonQwt

dnf install python3-pyqt5-sip

pip install pyqt5-tools XXX



    sudo apt-get install \
        gcc \
        gfortran \
        git \
        cmake \
        binutils \
        emacs \
        python3 \
        python3-numpy \
        python3-scipy \
        python3-sympy \         
        python3-matplotlib \
        python3-pip \
        jupyter-qtconsole \
        python3-lxml \
        python3-pyqtgraph \
        libopenblas-dev \
        liblapack-dev \
        libxml2-dev \
        libcomedi-dev \    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        python3-pyqt5 \
        python3-qwt \
        python3-serial \
        qt6-svg-dev   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

wget https://www.comedi.org/download/comedi-0.7.76.tar.gz
tar xvf comedi-0.7.76.tar.gz
cd comedi-0.7.76
./configure
make
make install XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    git clone https://github.com/robertobucher/pysimCoder
    cd pysimCoder; make addfiles  ***
    cd pysimCoder; make modules   ***
    cd pysimCoder; make full_lib  XXX COMEDI
    cd pysimCoder; make fmu ***
    cd pysimCoder; sudo make link  ***  
    cd pysimCoder; make user; make alias ***  
    cd pysimCoder; sudo make driver ***  

Shv:

dnf install qt5-qtbase-devel qt5-qtwebkit-devel qt5-qtserialport-devel
dnf install  qt5-qtwebsockets-devel qt5-qtsvg-devel qt5-qttools-devel doctest-devel
dnf install lua lua-devel -y
dnf install gcc-toolset-11          ********  IMPORTANT
scl enable gcc-toolset-11 bash      ********  IMPORTANT



    sudo apt-get install \
        qtbase5-dev \
        qt5-qmake \        XXXXXXX
        libqt5webkit5-dev \  ***
        libqt5serialport5-dev \ ***
        libqt5websockets5-dev \ ***
        libqt5svg5-dev \ **  
        liblua5.4-dev \ XXXX
        qttools5-dev \ ***
        qt6-websockets-dev \ XXXXX
        doctest-dev

sudo rm -rf SHV
mkdir -p SHV
git clone https://github.com/silicon-heaven/shvapp SHV/shvapp
git clone https://github.com/silicon-heaven/shvspy SHV/shvspy
cd SHV/shvapp; git submodule update --init --recursive
cd ../shvspy; git submodule update --init --recursive
****
  conda activate pysimcoder_conda
  conda install pyqt=5.15.11 pyqt5-tools sip
  conda install pyqt=5.15.11 sip
****
cd ../shvapp; mkdir build;cd build;
cmake  -DSHVSPY_USE_QT6=OFF -DLIBSHV_USE_QT6=OFF -DCMAKE_INSTALL_PREFIX=.. ..
make -j6; make install
cd ../../shvspy; mkdir build;cd build;
**
conda install pyqt=5.15.11 sip gcc_linux-64 gxx_linux-64
export CC=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-gcc
export CXX=$CONDA_PREFIX/bin/x86_64-conda-linux-gnu-g++

cd /home/kerhoas/Documents/SHV/shvapp/build

**
cmake  -DSHV_USE_QT6=OFF -DLIBSHV_USE_QT6=OFF -DSHVSPY_USE_QT6=OFF -DBUILD_TESTING=OFF -DCMAKE_INSTALL_PREFIX=.. ..
make -j8; make install

 



------------------------------------------------------------------------
TEST EN USER


pysim-run.sh :
remplacer #/usr/bin/python3 par #!/usr/bin/env python3

conda create -p pysimcoder_env python=3.11 --channel conda-forge
conda activate /home/kerhoas/pysimCoder_test/pysimcoder_env
python3 -m pip install \
    pyqt5 \
    cmake \
    tk-tools \
    "qtconsole>=5.0.2" \
    "numpy>=1.19.5" \
    "control>=0.9.2" \
    "matplotlib>=3.3.4" \
    "slycot>=0.5.0" \
    "sympy>=1.7.1" \
    "pyqtgraph>=0.11.0" \
    "lxml>=4.6.3" \
    "tornado>=6.1" \
    "scikit-build>=0.15.0" \
    "pyshv>=0.8.0" \
    "typing-extensions>=4.13.1"

bash pysim-run.sh




------------------------------------------------------------------------


cp shv /usr/local/bin




------------------
TEST

conda activate /home/kerhoas/condadir
pip install PyQt6

PB pas de qt6

dnf install xcb-util-cursor xcb-util-cursor-devel
https://www.qt.io/development/download-qt-installer

export PATH=/opt/Qt/6.10.2/gcc_64/bin:$PATH
conda install -c conda-forge pyqt=6
# pip install pyqt6 --global-option=build_ext --global-option="--qmake=/opt/Qt/6.10.2/gcc_64/bin/qmake"

pip install pyqt5
conda install -c conda-forge pyqt=5 pyqt5-tools


TEST AVEC PYTHON 3.11  

conda create -n pysimcoder_conda python=3.11
conda activate pysimcoder_conda  

conda install -c conda-forge pyqt=5 pyqt5-tools

pip install pyqt5-tools  


sed -i '1s|/usr/bin/python3|/usr/bin/env python3|' BlockEditor/pysimCoder.py



Éditez :

toolbox/supsisim/supsisim/qtvers.py

et remplacez les imports.

Remplacer :
from PyQt5 import uic, QtSvg

par :

from PyQt5 import uic
from PyQt5.QtSvg import *


from PyQt6 import uic, QtSvg

par

from PyQt6 import uic
from PyQt6.QtSvg import *


*** NE PAS FAIRE
    # ---- PyQt6 ----
    from PyQt6 import QtCore, QtGui, QtWidgets, uic
    from PyQt6.QtSvg import *

    Signal = QtCore.pyqtSignal
    Slot = QtCore.pyqtSlot

    QT_VERSION = 6

except ImportError:

    # ---- PyQt5 ----
    from PyQt5 import QtCore, QtGui, QtWidgets, uic
    from PyQt5.QtSvg import *

    Signal = QtCore.pyqtSignal
    Slot = QtCore.pyqtSlot

    QT_VERSION = 5
***  
dnf install -y libxcb xcb-util xcb-util-image xcb-util-keysyms xcb-util-wm xcb-util-renderutil mesa-libGL mesa-libEGL libX11 libXext libXrender libXrandr libXcursor
dnf install -y qt5-qtbase-gui qt5-qtx11extras  # Qt5 pour xcb


dnf install -y \
libxcb \
libxcb-devel \
xcb-util \
xcb-util-devel \
xcb-util-image \
xcb-util-keysyms \
xcb-util-wm \
xcb-util-renderutil \
mesa-libGL \
mesa-libEGL \
libX11 \
libXext \
libXrender \
libXrandr \
libXcursor \
freetype \
fontconfig

export PYSUPSICTRL=/home/kerhoas/Documents/pysimCoder_test
export PYTHONPATH=/root/Documents/PYTHON:/home/kerhoas/Documents/pysimCoder_test/resources/blocks/rcpBlk:/home/kerhoas/Documents/pysimCoder_test/toolbox/supsisim/

pip install numpy pyshv
pip install typing-extensions lxml

python -c "from PyQt5.QtWidgets import QApplication, QLabel; app=QApplication([]); QLabel('test').show(); app.exec()"

# conda install -c conda-forge qt-svg
# pip uninstall pyqt5 pyqt5-tools pyqt5-plugins -y
# conda install -c conda-forge pyqt=5 qt=5 qt-svg

# dnf install mamba
# mamba create -n pysimcoder python=3.10 pyqt=5 qt=5 qt-svg -c conda-forge

python3 -m pip install \
    cmake \
    tk-tools \
    "qtconsole>=5.0.2" \
    "numpy>=1.19.5" \
    "control>=0.9.2" \
    "matplotlib>=3.3.4" \
    "slycot>=0.5.0" \
    "sympy>=1.7.1" \
    "pyqtgraph>=0.11.0" \
    "lxml>=4.6.3" \
    "tornado>=6.1" \
    "scikit-build>=0.15.0" \
    "pyshv>=0.8.0" \
    "typing-extensions>=4.13.1"\
pip install pyqt5-tools
pip install



python BlockEditor/pysimCoder.py



modifier CodeGen/templates/sim.tmf --> enlever -static

sudo dnf install gsl gsl-devel

=========================
=======================================================
OPENPLC EDITOR  
================================================================================
~/glibc-2.31/ld-linux-x86-64.so.2 \
  --library-path ~/glibc-2.31 \
  /tmp/.mount_OpenPLkjnv72/open-plc-editor


================================================================================
MODBUS ***
================================================================================
dnf install -y git gcc make autoconf automake libtool
dnf install -y cmake gcc make
dnf install -y libmodbus libmodbus-devel
git clone https://github.com/epsilonrt/mbpoll.git
cd mbpoll
mkdir build
cd build
cmake ..
make
make install

--
usermod -aG dialout kerhoas
mbpoll -a 17 -b 115200 -t 3 -r 1 -c 2 /dev/ttyUSB0 -P none


================================================================================
SCADABR ***
================================================================================
dnf install libnsl
git clone https://github.com/thiagoralves/ScadaBR_Installer.git
cd ScadaBR_Installer
./install_scadabr.sh
/opt/tomcat6/apache-tomcat-6.0.53/bin/startup.sh






-----------------------------



http://localhost:8081/ScadaBR



-----------------------------
nano /opt/tomcat6/apache-tomcat-6.0.53/conf/server.xml

Cherchez la ligne :

<Connector port="9090" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

et changez 9090 en un port libre, par exemple 8081 :

<Connector port="8081" protocol="HTTP/1.1"
           connectionTimeout="20000"
           redirectPort="8443" />

/opt/tomcat6/apache-tomcat-6.0.53/bin/startup.sh
---------------------------------


http://localhost:8081/ScadaBR

================================================================================
OPENCV PYTHON
================================================================================



################################################################################

openplc editor 3

bash openplc_editor.sh
Traceback (most recent call last):
  File "/home/kerhoas/OpenPLC_Editor/./editor/Beremiz.py", line 32, in <module>
    import wx
ModuleNotFoundError: No module named 'wx'

conda activate openplc_9
conda install wxPython

openplc_9) [kerhoas@localhost OpenPLC_Editor]$ conda install wxPython
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: /
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                          

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - wxpython -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']

Your python: python=3.9

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - feature:|@/linux-64::__glibc==2.28=0
  - wxpython -> cairo[version='>=1.14.12,<2.0a0'] -> __glibc[version='>=2.17|>=2.17,<3.0.a0|>=2.28,<3.0.a0']

Your installed version is: 2.28


(openplc_9) [kerhoas@localhost OpenPLC_Editor]$


-----------------------------------------------
conda create -p /home/TP/sujets/openplc_env python=3.7 --channel conda-forge
conda activate openplc_env
conda install wxPython  
conda uninstall wxPython
pip install -U wxPython
# dnf search wxPython
python3 -m pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/rocky-8 wxPython

conda activate wxenv

    wxPython-4.2.0-cp38-cp38-linux_x86_64.whl


!!! modifier openplc_editor.sh

>>>
conda create -p /home/TP/sujets/openplc_env python=3.7 --channel conda-forge
conda activate /home/TP/sujets/openplc_env
conda install wxPython
pip install matplotlib
conda install lxml
pip install zeroconf
conda install jinja2
pip install serial pyserial pyro5 pubsub pypubsub




****

décaler theta pour avoir des valeurs uniquements positives en simu
ajouter compilation du gain 





p /home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/src/linux_main.c .
gcc -g -O2 -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/tos1a/includes -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/arduinoFirmata/includes -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/LinuxRT/include -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/Common/include  -DMODEL=pmsm_sim_boucle_courant   -c -o linux_main.o linux_main.c
gcc -g -O2 -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/tos1a/includes -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/arduinoFirmata/includes -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/LinuxRT/include -I/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/Common/include  -DMODEL=pmsm_sim_boucle_courant   -c -o pmsm_sim_boucle_courant.o pmsm_sim_boucle_courant.c
gcc -o ../pmsm_sim_boucle_courant  linux_main.o pmsm_sim_boucle_courant.o  /home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/CodeGen/LinuxRT/lib/libpyblk.a  -lrt -lpthread -lgsl -lgslcblas -lm
/usr/bin/ld : ne peut trouver -lgsl
/usr/bin/ld : ne peut trouver -lgslcblas
collect2: error: ld a retourné le statut de sortie 1
make: *** [Makefile:47: ../pmsm_sim_boucle_courant] Error 1
Traceback (most recent call last):
  File "/home/casa/kerhoas/Desktop/NEW_ACE/pmsm_v2/1_generation-d-un-signal-pwm-a-valeur-moyenne-constante/PMSM_PYSIM/PYSIMCODER/tmp.py", line 550, in <module>
    raise RuntimeError("C code compilation failed")
RuntimeError: C code compilation failed









