我正在使用CMake 3.7.1。我想使用Visual Studio 2015 x64構建OpenEXR 2.2。發佈版本包含詳細的構建說明: Launch a command window, navigate to the IlmBase folder with CMakeLists.txt,and type command: setlocal del /f CMakeCache.txt cma
我想編譯OpenEXR with emscripten並將其鏈接到我的程序,最終將成爲html文件。 編譯OpenEXR with emscripten我沒有問題。問題是當我嘗試鏈接.bc文件與我的應用程序。我得到一個錯誤,說 「EXEC:error:鏈接全局名爲'main':符號乘以 defined!」。 我跟蹤到這個錯誤,發現在OpenEXR內的一個CPP文件中有一個main函數。它是b44E