diff --git a/CMakeLists.txt b/CMakeLists.txt index 21c74cc22..c64ec1113 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,8 +29,9 @@ STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC) if (DEFINED EMSCRIPTEN) list(APPEND CMAKE_FIND_ROOT_PATH "/") message("Using Emscripten") - add_compile_options("-sUSE_BOOST_HEADERS=1" "-pthread") - add_link_options("-pthread") + add_compile_options(-sUSE_BOOST_HEADERS=1 -pthread) + add_link_options(-sUSE_BOOST_HEADERS=1 -pthread) + add_compile_definitions(__EMSCRIPTEN__) else() message("Not using Emscripten") endif() diff --git a/src/SMESH_I/CMakeLists.txt b/src/SMESH_I/CMakeLists.txt index a9788ca89..03b4a2b16 100644 --- a/src/SMESH_I/CMakeLists.txt +++ b/src/SMESH_I/CMakeLists.txt @@ -127,7 +127,7 @@ SET(SMESHEngine_SOURCES SMESH_Gen_i_1.cxx SMESH_Gen_No_Session_i.cxx SMESH_Gen_Session_i.cxx - SMESH_PythonDump.cxx + # SMESH_PythonDump.cxx # EMscripten: duplicate symbol SMESH_Mesh_i.cxx SMESH_subMesh_i.cxx SMESH_MeshEditor_i.cxx diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 94109451a..3472035ee 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -153,9 +153,9 @@ #include #include -#include -#include -#include +// #include +// #include +// #include #include namespace fs = boost::filesystem; @@ -4966,7 +4966,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::Save( SALOMEDS::SComponent_ptr theComponent, } // convert orderEntryLists to string std::ostringstream ostream; - boost::archive::text_oarchive( ostream ) << orderEntryLists; + // boost::archive::text_oarchive( ostream ) << orderEntryLists; std::string orderEntryString = ostream.str(); // write HDF group @@ -6153,7 +6153,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent, aDataset->CloseOnDisk(); std::list< std::list< std::string > > orderEntryLists; - SMESHUtils::BoostTxtArchive( dataString ) >> orderEntryLists; + // SMESHUtils::BoostTxtArchive( dataString ) >> orderEntryLists; TListOfListOfInt anOrderIds; for ( const std::list< std::string >& entryList : orderEntryLists )