linuxcnc 編譯 ubuntu-12.4(32) 安裝

 
 Ubuntu Precise 12.04 x86 (32-bit) 安裝 LinuxCNC
 
   7.2. Installing on Ubuntu Precise
    Install Ubuntu Precise 12.04 x86 (32-bit). Any flavor should work (regular Ubuntu, Xubuntu, Lubuntu, etc). 64-bit (AMD64) is currently not supported. You can download the installer here: http://releases.ubuntu.com/precise/

    Run the following to bring the machine up to date with the latest packages in Ubuntu Precise.

    sudo apt-get update
    sudo apt-get dist-upgrade
    Add the LinuxCNC Archive Signing Key to your apt keyring by running

    sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-key 3cb9fd148f374fef
    Add a new apt source

    sudo add-apt-repository "deb http://linuxcnc.org/ precise base 2.7-rtai"
    Fetch the package list from linuxcnc.org.

    sudo apt-get update
    Install the RTAI kernel and modules by running

    sudo apt-get install linux-image-3.4-9-rtai-686-pae rtai-modules-3.4-9-rtai-686-pae
    If you want to be able to build LinuxCNC from source using the git repo, also run

    sudo apt-get install linux-headers-3.4-9-rtai-686-pae
    Reboot, and make sure you boot into the rtai kernel. When you log in, verify that the kernel name is 3.4-9-rtai-686-pae.

    uname -r
    Run

    sudo apt-get install linuxcnc
    
    
更換 ubuntu 內核     
  
         1、修改 /etc/default/grub 文件

        打開文件

        sudo gedit /etc/default/grub


        修改文件

        GRUB_DEFAULT=3     #更改數字設置默認啓動項

        更新

        sudo update-grub
        sudo reboot 

      重新啓動,進入了Memory test(如下藍屏):

      

     


         
  
  錯誤:
    Ubuntu12.04初次安裝Qt之後可能出現Error while building/deploying project *** (kit: Desktop Qt 5.5.0 GCC 32bit) When executing step "Make"錯誤。
  解決方案:
  sudo apt-get install build-essential 
  然後按Esc,再按住shift回到下面這個界面:


  
  選擇 

   linux-image-3.4-9-rtai-686-pae
  

 

 


  下載linuxcnc-dev 
   git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev 
  
  查看 linucnc 版本:
   git branch -a
  切換到2.7 版:
   git checkout -b  remotes/origin/2.7
  查看版本號:
   git branch -v 
  
  編譯:
  cd /home/zz/workspace/linuxcnc-dev/src
  zz@ubuntu:~/workspace/linuxcnc-dev/src$ ./autogen.sh 
    ./autogen.sh: 6: ./autogen.sh: autoconf: not found
  錯誤:
  ./autogen.sh: 6: ./autogen.sh: autoconf: not found :
  解決方案:
   sudo apt-get install autoconf automake libtool
  
  編譯:
      cd /home/zz/workspace/linuxcnc-dev/src
      zz@ubuntu:~/workspace/linuxcnc-dev/src$ ./autogen.sh
     ./configure --enable-simulator --with-realtime=uspace 
      
        錯誤:checking for libudev... configure: error: libudev-dev not found
        解決方案: sudo apt-get install libudev-dev
                
        sudo apt-get install libmodbus-dev
        
        sudo apt-get install libgnomeprintui2.2-dev tcl8.5-dev tk8.5-dev libreadline-gplv2-dev asciidoc dblatex dvipng graphviz groff imagemagick inkscape python-lxml source-highlight texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-lang-cyrillic texlive-lang-french texlive-lang-german texlive-lang-polish texlive-lang-spanish texlive-latex-recommended w3c-linkchecker xsltproc libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libboost-python-dev libmodbus-dev libusb-1.0-0-dev yapps2
         

        錯誤:checking for intltool-extract... none
            configure: error: intltool-extract not found
        解決方案:
             sudo apt-get install intltool
             
    

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章