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

看板C_and_CPP作者 (lily)時間7年前 (2018/04/17 05:27), 編輯推噓1(1012)
留言13則, 4人參與, 7年前最新討論串1/1
開發平台(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

04/17 05:37, 7年前 , 1F
把該檔用 unicode 格式儲存,錯誤訊息講得很清楚了
04/17 05:37, 1F

04/17 05:38, 7年前 , 2F
不然就檢查一下那個檔案有什麼不該出現的怪字元刪掉
04/17 05:38, 2F

04/17 05:38, 7年前 , 3F
你也沒寫你用哪一種 compiler
04/17 05:38, 3F

04/17 05:39, 7年前 , 4F
雖然這個錯誤看起來比較像 Visual C++
04/17 05:39, 4F

04/17 05:42, 7年前 , 5F
如果你不知道怎麼轉成 unicode,用記事本打開檔案
04/17 05:42, 5F

04/17 05:42, 7年前 , 6F
再選另存檔案,此時就可以改編碼,隨便你改
04/17 05:42, 6F

04/17 19:03, 7年前 , 7F

04/17 19:04, 7年前 , 8F
看起來是 Qt 的原始碼 (可能是註解) 裡用了非英文字
04/17 19:04, 8F

04/17 23:15, 7年前 , 9F
謝謝您回應,但還是沒辦法解決
04/17 23:15, 9F

04/17 23:23, 7年前 , 10F
還有更好的方法嗎?跪求~
04/17 23:23, 10F

04/18 00:42, 7年前 , 11F
這個警告明明就會提示是哪個檔案有問題, 為什麼不給?
04/18 00:42, 11F

04/18 13:53, 7年前 , 12F
vcglib中Half.h color.h quality.h...都有這個warning
04/18 13:53, 12F

04/18 14:06, 7年前 , 13F
感謝各位的幫助,我解決了
04/18 14:06, 13F
文章代碼(AID): #1QrHKtmr (C_and_CPP)