调用ubuntu命令行的方法:ctrl+alt+t
gcc -o test test.c
开发工具包括eclipse,Qt等全部放入了/opt/路径下,java开发环境放在了/usr/local/jdk1.8.0_45路径下;
OpenCV的配置路径为/home/huty/opencv/opencv-2.4.9,具体地环境设置在/ect/profile和/etc/environment
###### /ect/profile
# set opencv environment
export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/include"
export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/build/bin"
#set Qt5.7.0 environment
export QTDIR=/opt/Qt5.7.0
export PATH=$QTDIR/Tools/QtCreator/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/5.7/gcc_64/lib:$LD_LIBRARY_PATH
#set java environment
JAVA_HOME=/usr/local/jdk1.8.0_45
export JRE_HOME=/usr/local/jdk1.8.0_45/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
###### /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:JAVA_HOME/bin"
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export JAVA_HOME=/usr/local/jdk1.8.0_45
关于eclipse的配置,还有一个路径需要说明,那就是在/usr/local/bin/eclipse.sh文件中的内容:
JAVA_HOME=/usr/local/jdk1.8.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
/opt/eclipse/eclipse
查看PATH路径:echo $PATH,可以在不同的用户下查看各自的PATH路径;
使用eclipse可以直接在shell中使用命令:sudo eclipse.sh,输入密码即可使用;
使用QtCreator可以直接在shell中输入qtcreator即可;
eclipse的工程路径:/root/workspace
Qt的工程路径:/home/huty/MyProjects/QtProjects
gcc -o test test.c
开发工具包括eclipse,Qt等全部放入了/opt/路径下,java开发环境放在了/usr/local/jdk1.8.0_45路径下;
OpenCV的配置路径为/home/huty/opencv/opencv-2.4.9,具体地环境设置在/ect/profile和/etc/environment
###### /ect/profile
# set opencv environment
export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/include"
export PATH="$PATH:/home/huty/opencv/opencv-2.4.9/build/bin"
#set Qt5.7.0 environment
export QTDIR=/opt/Qt5.7.0
export PATH=$QTDIR/Tools/QtCreator/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/5.7/gcc_64/lib:$LD_LIBRARY_PATH
#set java environment
JAVA_HOME=/usr/local/jdk1.8.0_45
export JRE_HOME=/usr/local/jdk1.8.0_45/jre
export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
###### /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:JAVA_HOME/bin"
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export JAVA_HOME=/usr/local/jdk1.8.0_45
关于eclipse的配置,还有一个路径需要说明,那就是在/usr/local/bin/eclipse.sh文件中的内容:
JAVA_HOME=/usr/local/jdk1.8.0_45
PATH=$PATH:$JAVA_HOME/bin
CLASSPATH=$CLASSPATH:$JAVA_HOME/lib
/opt/eclipse/eclipse
查看PATH路径:echo $PATH,可以在不同的用户下查看各自的PATH路径;
使用eclipse可以直接在shell中使用命令:sudo eclipse.sh,输入密码即可使用;
使用QtCreator可以直接在shell中输入qtcreator即可;
eclipse的工程路径:/root/workspace
Qt的工程路径:/home/huty/MyProjects/QtProjects