老熟女激烈的高潮_日韩一级黄色录像_亚洲1区2区3区视频_精品少妇一区二区三区在线播放_国产欧美日产久久_午夜福利精品导航凹凸

重慶分公司,新征程啟航

為企業(yè)提供網(wǎng)站建設(shè)、域名注冊、服務(wù)器等服務(wù)

Cura源碼在Ubuntu15.04上如何編譯腳本

這篇文章主要介紹Cura源碼在Ubuntu15.04上如何編譯腳本,文中介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們一定要看完!

十余年的鏡湖網(wǎng)站建設(shè)經(jīng)驗,針對設(shè)計、前端、開發(fā)、售后、文案、推廣等六對一服務(wù),響應(yīng)快,48小時及時工作處理。成都營銷網(wǎng)站建設(shè)的優(yōu)勢是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動調(diào)整鏡湖建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計,從而大程度地提升瀏覽體驗。創(chuàng)新互聯(lián)建站從事“鏡湖網(wǎng)站設(shè)計”,“鏡湖網(wǎng)站推廣”以來,每個客戶項目都認(rèn)真落實執(zhí)行。

Cura是著名的3D打印切片和控制軟件。新的版本采用Qt和Python進行了重構(gòu),界面變化也非常大,目前還在開發(fā)中,運行問題還有不少。這里介紹如何從源代碼進行Cura的編譯,可以搶先體驗新版的界面設(shè)計和根據(jù)需要進行訂制。

這個把相關(guān)的腳本都集成到一起了。做了幾個重要的改進,基本可以成功運行了。

官方原腳本在這里:https://github.com/Ultimaker/cura-build

主要的改進包括:

1、可以自動判斷目錄,如沒有自動創(chuàng)建,如有則進行源碼更新。原腳本安裝后更新需要手工一步步進行,很麻煩。

2、改變gtest的安裝源到github,原來的是從google下載,由于國內(nèi)訪問不到會導(dǎo)致編譯出錯。

3、合并 plugins目錄,將Uranium\plugins復(fù)制到Cura\plugins下,避免找不到插件的錯誤。

注意:

1、進libArcus將Cmakelists.txt里的add_subdirectory(examples)這一行注釋掉,要不編譯不過去。
2、目前CuraEngine編譯還有些問題,無法執(zhí)行切片操作。

把下面的內(nèi)容保存到cura.sh,然后sudo chmod +x cura.sh添加執(zhí)行權(quán)限,然后./cura.sh就Ok了。需要的軟件會自動下,時間較長,需要耐心等待。

#!/bin/bash
# This is a script which get the latest git repo and build them.
#
# Tested under ubuntu 15.04, lower versions don't have PyQT 5.2.1 which is required by cura

cd ~
if [ ! -d "dev" ]; then
    mkdir dev
fi
cd dev

sudo apt-get install -y git cmake cmake-gui autoconf libtool python3-setuptools curl python3-pyqt5.* python3-numpy qml-module-qtquick-controls

#protobuf.
#https://github.com/google/protobuf.git

echo "================================="
echo "Install Protobuf."
if [ ! -d "protobuf" ]; then
    git clone https://github.com/Ultimaker/protobuf.git
    cd protobuf
else
    cd protobuf
    git pull        
fi
echo "================================="
echo "get gtest."
if [ ! -d "gtest" ]; then
    git clone https://github.com/kgcd/gtest.git
else
    git pull
fi
echo "================================="
echo "get gmock."
if [ ! -d "gmock" ]; then
    git clone https://github.com/krzysztof-jusiak/gmock.git
else
    git pull        
fi
echo "Build Protobuf."
./autogen.sh
./configure --prefix=/usr
make -j4
sudo make install
sudo ldconfig
cd python
python3 setup.py build
sudo python3 setup.py install
cd ../..

echo "================================="
echo "Install libArcus."
if [ ! -d "libArcus" ]; then
    git clone https://github.com/Ultimaker/libArcus
    cd libArcus
else
    cd libArcus
    git pull        
fi
if [ ! -d "build" ]; then
  mkdir build
fi
cd build
#cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages
make -j4
sudo make install
cd ../../

echo "================================="
echo "Install CuraEngine."
if [ ! -d "CuraEngine" ]; then
    git clone https://github.com/Ultimaker/CuraEngine.git
    cd CuraEngine
else
    cd CuraEngine
    git pull        
fi
if [ ! -d "build" ]; then
  mkdir build
fi
cd build
#cmake .. -DCMAKE_INSTALL_PREFIX=/usr
cmake .. 
make -j4
sudo make install
cd ../../

echo "================================="
echo "Install Uranium."
if [ ! -d "Uranium" ]; then
    git clone https://github.com/Ultimaker/Uranium.git
    cd Uranium
else
    cd Uranium
    git pull        
fi
if [ ! -d "build" ]; then
  mkdir build
fi
cd build
#cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packages
cmake .. -DPYTHON_SITE_PACKAGES_DIR=/usr/lib/python3.4/dist-packages -DURANIUM_PLUGINS_DIR=/usr/lib/python3.4/dist-packages
sudo make install
cd ../..

echo "================================="
echo "Install Cura."
if [ ! -d "Cura" ]; then
    git clone https://github.com/Ultimaker/Cura.git
    cd Cura
else
    cd Cura
    git pull        
fi
cd ..
echo "Build finished."

echo "============================================================================"
echo "Merge Resource into Cura/resources/"
cp -rv Uranium/resources/* Cura/resources/
echo "Merge Plugins into Cura/plugins/"
cp -rv Uranium/plugins/* Cura/plugins/
echo "Link:"$PWD"/CuraEngine/build/CuraEngine"
sudo ln -s $PWD/CuraEngine/build/CuraEngine /usr/bin/CuraEngine

echo "Starting Cura......"
cd Cura
python3 cura_app.py
echo "You need add to /etc/profile:export PYTHONPATH=/usr/lib/python3/dist-packages"
echo "============================================================================="

以上是“Cura源碼在Ubuntu15.04上如何編譯腳本”這篇文章的所有內(nèi)容,感謝各位的閱讀!希望分享的內(nèi)容對大家有幫助,更多相關(guān)知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!


分享題目:Cura源碼在Ubuntu15.04上如何編譯腳本
分享鏈接:http://www.xueling.net.cn/article/picghs.html

其他資訊

在線咨詢
服務(wù)熱線
服務(wù)熱線:028-86922220
TOP
主站蜘蛛池模板: 免费人成在线观看视频无码 | 亚洲视频在线免费观看 | 18一20岁毛毛片 | 国产999精品久久久久久 | 欧美精品 | a级片在线观看免费 | 国产a视频 | 亚洲国产日韩一区 | 色噜噜狠狠成人中文综合 | 日本成本人片无码免费视频网站 | 国内外精品成人免费视频 | 亚洲国产精品成人av | 国产精品xxx | 亚洲熟女少妇一区二区 | 在线天堂资源WWW在线污 | 亚洲高清国产AV拍精品青青草原 | 亚洲欧洲无码专区AV | 精品国产一卡2卡3卡4卡新区 | 91九色视频地址 | 一区二区三区视频免费在线观看 | 国产成人yy精品在线 | 2024你懂的网站无码内射 | 亚洲毛片在线免费观看 | 男女无套内射白将在线线国语 | 99精品视频在线观看免费播放 | 国产日产亚洲系列最新 | 午夜免费一区二区 | 色拍拍在线精品视频 | 九九九九九少妇爽黄大片 | 91成人午夜性a一级毛片 | 黄色一级大片在线免费看产 | 国产无遮挡无码视频免费软件 | 欧美丝袜丝交足nylons视频 | 国内精品久久久久久久久久 | 麻豆网站在线看 | 亚洲午夜av久久乱码 | 好男人蜜桃av久久久久久蜜桃 | 好硬好湿好爽再深一点动态图片 | 国产精品自在自线视频 | 欧美性猛交xxxx乱大交be | 一级毛片国产 |