Files
linux_tools/dot/bashrc

62 lines
1.6 KiB
Bash

# NTCNA V2X development
# QT
QTVER=5.15.2
#QTVER=6.3.0
if [ -d /opt/Qt/$QTVER ]; then
export PATH=/opt/Qt/$QTVER/gcc_64/bin:$PATH
# export LD_LIBRARY_PATH=/opt/Qt/$QTVER/gcc_64/lib
fi
# Python and VirtualEnv
if [ -d ~/.local/bin ]; then
export PATH=~/.local/bin:$PATH
fi
if [ -x /usr/local/bin/virtualenvwrapper.sh ]; then
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
fi
# Android Studio
if [ -d ~/android-studio ]; then
export PATH=$PATH:~/android-studio/bin
fi
# Marben ASN.1 compiler
if [ -d /opt/marben/asnsdk ]; then
export ASNSDK_TCE_DIR=/opt/marben/asnsdk/TCE-C_V61/Compiler
export PATH=$ASNSDK_TCE_DIR/bin:$PATH
fi
# ROS 1
if [ -f /opt/ros/noetic/setup.bash ]; then
# 20.04/22.04
source /opt/ros/noetic/setup.bash
export PYTHONPATH=$PYTHONPATH:$HOME/catkin_ws/devel/lib/python3/dist-packages
fi
# ROS 2
#if [ -f /opt/ros/foxy/setup.bash ]; then
# 20.04/22.04
# source /opt/ros/foxy/setup.bash
#fi
# ProbeStar C/C++ library
if [ -d /usr/local/cnomicon ]; then
export PATH=$PATH:/usr/local/cnomicon/bin:/usr/local/cnomicon/sbin
fi
# NTCNA V2X C/C++ library
if [ -d /usr/local/cvehicle ]; then
export PATH=$PATH:/usr/local/cvehicle/bin:/usr/local/cvehicle/sbin
fi
# ProbeStar Python classes
if [ -d $HOME/Pynomicon/classes ]; then
export PYTHONPATH=$PYTHONPATH:$HOME/Pynomicon/classes
fi
# NTCNA V2X Python classes (install pycrate), ROS path above
if [ -d $HOME/PyVehicle/classes ]; then
export PYTHONPATH=$PYTHONPATH:$HOME/PyVehicle/classes:$HOME/PyVehicle/classes/j2735
fi
#export NTCNA_DVIHMI_PATH=$HOME/PyVehicle/ntcna_dvihmi