diff --git a/CMakeLists.txt b/CMakeLists.txt index 16fa668b..0123686b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,6 +76,7 @@ endif() find_package (Python3 COMPONENTS Interpreter Development NumPy REQUIRED) include_directories(${Python3_INCLUDE_DIRS}) message(STATUS "Python version : " ${Python3_VERSION}) +message(STATUS "Python executable : " ${Python3_EXECUTABLE}) message(STATUS "Python lib : " ${Python3_LIBRARIES}) # --- Libraries diff --git a/src/cpp/plantgl/algo/codec/vrmlprinter.h b/src/cpp/plantgl/algo/codec/vrmlprinter.h index 29a7338b..53f1db00 100644 --- a/src/cpp/plantgl/algo/codec/vrmlprinter.h +++ b/src/cpp/plantgl/algo/codec/vrmlprinter.h @@ -68,7 +68,7 @@ typedef RCPtr AppearancePtr; /// struct for testing equality of 2 pairs -#ifndef WIN32_STL_EXTENSION +#ifdef USING_UNORDERED_MAP template struct eqpair @@ -94,7 +94,9 @@ struct hashpair /// hash set of pairs typedef pgl_hash_set,hashpair,eqpair > SCache; + #else +#ifdef WIN32_STL_EXTENSION template struct less_pair @@ -107,7 +109,7 @@ struct less_pair template -struct hash_comp_pair : STDEXT::hash_compare,less_pair > +struct hash_comp_pair : pgl_hash,less_pair > { size_t operator()(const std::pair& a) const @@ -120,12 +122,13 @@ struct hash_comp_pair : STDEXT::hash_compare,less_pair H; + pgl_hash H; }; typedef pgl_hash_set, hash_comp_pair > SCache; #endif +#endif /** diff --git a/src/cpp/plantgl/gui/base/application.cpp b/src/cpp/plantgl/gui/base/application.cpp index 2f6216bd..77043847 100644 --- a/src/cpp/plantgl/gui/base/application.cpp +++ b/src/cpp/plantgl/gui/base/application.cpp @@ -86,7 +86,7 @@ static bool DestroyedAppli = false; void initViewerAppli(){ if(VIEWER_APPLI == NULL){ #ifdef QT_THREAD_SUPPORT - if(qApp == NULL && MODE){ + if((qApp == NULL && QApplication::instance() == NULL) && MODE){ if(!DestroyedAppli) VIEWER_APPLI = new ViewerThreadedAppli(); else diff --git a/src/cpp/plantgl/tool/util_hashmap.h b/src/cpp/plantgl/tool/util_hashmap.h index 350fbdf6..d691101e 100644 --- a/src/cpp/plantgl/tool/util_hashmap.h +++ b/src/cpp/plantgl/tool/util_hashmap.h @@ -71,7 +71,7 @@ #endif #endif - +#include template struct pgl_hash_map_string : public pgl_hash_map{}; diff --git a/src/cpp/plantgl/tool/util_hashset.h b/src/cpp/plantgl/tool/util_hashset.h index 16665095..30a7237c 100644 --- a/src/cpp/plantgl/tool/util_hashset.h +++ b/src/cpp/plantgl/tool/util_hashset.h @@ -71,6 +71,7 @@ #endif #endif +#include typedef pgl_hash_set pgl_hash_set_string ; typedef pgl_hash_set pgl_hash_set_uint32; diff --git a/src/cpp/plantgl/version.h b/src/cpp/plantgl/version.h index 7d52dbe9..1f054978 100644 --- a/src/cpp/plantgl/version.h +++ b/src/cpp/plantgl/version.h @@ -48,7 +48,7 @@ #define __plantgl_version_h__ /// PGL Version macro -#define PGL_VERSION 0x031501 +#define PGL_VERSION 0x031502 #endif