[問題] Meshlab use QT5.9 編碼問題

作者: lily1213 (lily)   2018-04-17 05:27:15
開發平台(Platform): (Ex: Win10, Linux, ...)
win10
編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出)
C++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
Qt5.9,cmake,VCGlib
問題(Question):
出現"warning: C4819: 檔案含有無法在目前字碼頁 (950) 中表示的字元。請以 Unicode 格式
儲存檔案以防止資料遺失"的錯誤
錯誤結果(Wrong Output):
warning: C4819: 檔案含有無法在目前字碼頁 (950) 中表示的字元。請以 Unicode 格式
儲存檔案以防止資料遺失
程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔)
我應用了qt-opensource-windows-x86-5.9.0,執行meshlab_mini.pro時出現錯誤
#
# meshlab_mini.pro
#
# This is a minimal project file for compiling as less as possible and having
a minimal meshlab setup.
# Compiling this minimal subset does not require any additional library
(except obviously qt and vcg).
#
TEMPLATE = subdirs
CONFIG += ordered
# the common framework, used by all the plugins,
SUBDIRS = common \
meshlab \ # the GUI framework
meshlabserver \
meshlabplugins/io_base\ # a few basic file formats
(ply, obj, off), without this you cannot open anything
meshlabplugins/filter_meshing \
meshlabplugins/decorate_base \
meshlabplugins/filter_measure \
#
# Next some other useful, but still easy to be compiled, plugins
# Uncomment them if you succeed in compiling the above ones.
# sampleplugins/sample_xmlfilter \
# meshlabplugins/decorate_background \
# meshlabplugins/decorate_base \
# meshlabplugins/edit_align \
# meshlabplugins/edit_manipulators \
# meshlabplugins/edit_select \
# meshlabplugins/filter_clean\
# meshlabplugins/filter_colorproc\
# meshlabplugins/filter_create\
# meshlabplugins/filter_layer\
# meshlabplugins/filter_mutualinfoxml\
# meshlabplugins/filter_quality \
# meshlabplugins/filter_sampling\
# meshlabplugins/filter_select \
# meshlabplugins/filter_sketchfab \
# meshlabplugins/filter_texture \
# meshlabplugins/filter_unsharp \
# meshlabplugins/io_collada \
# meshlabplugins/io_x3d \
補充說明(Supplement):
我是引用這個github上的程式碼
https://github.com/cnr-isti-vclab/meshlab
可以麻煩各位大大幫忙完整編譯這個程式嗎?我苦惱好久了...
作者: Schottky (順風相送)   2018-04-17 05:37:00
把該檔用 unicode 格式儲存,錯誤訊息講得很清楚了不然就檢查一下那個檔案有什麼不該出現的怪字元刪掉你也沒寫你用哪一種 compiler雖然這個錯誤看起來比較像 Visual C++如果你不知道怎麼轉成 unicode,用記事本打開檔案再選另存檔案,此時就可以改編碼,隨便你改
作者: LPH66 (-6.2598534e+18f)   2018-04-17 19:03:00
http://tinyurl.com/y7gdm252看起來是 Qt 的原始碼 (可能是註解) 裡用了非英文字
作者: lily1213 (lily)   2018-04-17 23:15:00
謝謝您回應,但還是沒辦法解決還有更好的方法嗎?跪求~
作者: uranusjr (←這人是超級笨蛋)   2018-04-18 00:42:00
這個警告明明就會提示是哪個檔案有問題, 為什麼不給?
作者: lily1213 (lily)   2018-04-18 13:53:00
vcglib中Half.h color.h quality.h...都有這個warning感謝各位的幫助,我解決了

Links booklink

Contact Us: admin [ a t ] ucptt.com