作者lily1213 (lily)
看板C_and_CPP
標題[問題]Meshlab use QT5.9 編碼問題
時間Tue Apr 17 05:27:15 2018
開發平台(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
可以麻煩各位大大幫忙完整編譯這個程式嗎?我苦惱好久了...
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.118.110.37
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1523914039.A.C35.html
→ Schottky: 把該檔用 unicode 格式儲存,錯誤訊息講得很清楚了 04/17 05:37
→ Schottky: 不然就檢查一下那個檔案有什麼不該出現的怪字元刪掉 04/17 05:38
→ Schottky: 你也沒寫你用哪一種 compiler 04/17 05:38
→ Schottky: 雖然這個錯誤看起來比較像 Visual C++ 04/17 05:39
→ Schottky: 如果你不知道怎麼轉成 unicode,用記事本打開檔案 04/17 05:42
→ Schottky: 再選另存檔案,此時就可以改編碼,隨便你改 04/17 05:42
→ LPH66: 看起來是 Qt 的原始碼 (可能是註解) 裡用了非英文字 04/17 19:04
→ lily1213: 謝謝您回應,但還是沒辦法解決 04/17 23:15
→ lily1213: 還有更好的方法嗎?跪求~ 04/17 23:23
→ uranusjr: 這個警告明明就會提示是哪個檔案有問題, 為什麼不給? 04/18 00:42
→ lily1213: vcglib中Half.h color.h quality.h...都有這個warning 04/18 13:53
→ lily1213: 感謝各位的幫助,我解決了 04/18 14:06