From 6cc3da55ccf72f8e39a7859a5dd72db0a36f05e8 Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 10 Jan 2017 09:47:40 +0100 Subject: [PATCH] #3052 creaWT Feature New Normal - Install documentation --- wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.cxx | 38 +++++++++++++++++-------- wt/data/infoConf_server_fcgi/Readme.txt | 34 ++++++++++++---------- 2 files changed, 45 insertions(+), 27 deletions(-) diff --git a/wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.cxx b/wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.cxx index 094ef12..9bc8f5c 100644 --- a/wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.cxx +++ b/wt/bbtk_wt_PKG/src/bbwtViewerNVWeb.cxx @@ -73,8 +73,6 @@ namespace bbwt w->doJavaScript(jsCom); - std::cout<<" REF: "<jsRef()<jsRef() + ".mVolume.file = '" + bbGetInputImagePath() + "';\ - setTimeout(function(){\ - " + wtWindow1->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\ - " + wtWindow1->jsRef() + ".mRenderer.render();\ - },300);\ + " +w->jsRef() + ".mVolume.file = '" + bbGetInputImagePath() + "';\ + " +w->jsRef() + ".mVolume.modified(true);\ + " + wtWindow1->jsRef() + ".mRenderer.render();\ + alert('firsttime=false');\ } catch (err) {\ } \ "; w->doJavaScript(jsCom); -*/ } if (firstTime==true) { + +flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+"); +fprintf(flog," EED ViewerNVWeb::Process firsttime = true \n" ); +fclose(flog); + firstTime=false; jsCom = "\ try{\ @@ -158,6 +165,7 @@ printf("EED ViewerNVWeb::Process %s\n", bbGetInputImagePath().c_str() ); setTimeout(function(){\ " + wtWindow1->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\ " + wtWindow1->jsRef() + ".mRenderer.render();\ + alert('(1) firsttime=true');\ },300);\ setTimeout(function(){\ " + w->jsRef() +".mVolume.upperThreshold =20000;\ @@ -177,11 +185,14 @@ printf("EED ViewerNVWeb::Process %s\n", bbGetInputImagePath().c_str() ); " + wtWindow3->jsRef() + ".mRenderer.render();\ " + wtWindow4->jsRef() + ".mRenderer.add(" +w->jsRef() + ".mVolume);\ " + wtWindow4->jsRef() + ".mRenderer.render();\ - },3000);\ + alert('(2) firsttime=true');\ + },10000);\ } catch(err) { \ } \ "; + + // jsCom = "\ var volume = new X.volume();\ volume.spacing = [0.7,0.7,0.7 ];\ @@ -224,7 +235,11 @@ printf("EED ViewerNVWeb::Process %s\n", bbGetInputImagePath().c_str() ); // wtWindow3->resize(Wt::WLength::Auto, 200); // wtWindow4->resize(Wt::WLength::Auto, 200); +flog=fopen("/var/www/testwtdbg/docroot/appli1/imagesTMP/bbtk-Web.log","a+"); +fprintf(flog,"EED ViewerNVWeb::Process END \n" ); +fclose(flog); + Wt::WApplication::instance()->refresh(); @@ -270,7 +285,6 @@ void ViewerNVWeb::CreateWidget(Wt::WContainerWidget* parent) wtWindow1 = new Viewer_NV(w,nType[0]); wtWindow1->configureWt(); wtWindow1->setStyleClass("black-box"); - std::cout<<" PRUEBA 1 RENDERER"<jsRef()); } else if(nType.size() == 2) diff --git a/wt/data/infoConf_server_fcgi/Readme.txt b/wt/data/infoConf_server_fcgi/Readme.txt index d279c77..f06f531 100644 --- a/wt/data/infoConf_server_fcgi/Readme.txt +++ b/wt/data/infoConf_server_fcgi/Readme.txt @@ -1,41 +1,45 @@ As root or with sudo command: --1) +1) BBTK Compile bbtk with the cmake option USE_WT +(Make sure you are in a new consolo with all the thirdparty variables are loaded) -0) -yum install fcgi-devel -yum install mod_fcgid +2) Compile and install le package de creaWt +definir + +3) +dnf install fcgi-devel +dnf install mod_fcgid -1) ld configuration +4) ld configuration cp bbtk.conf /etc/ld.so.conf.d/. -1.1) check the path of the file /etc/ld.so.conf.d/bbtk.conf -1.2) execute : +4.1) check the path of the file /etc/ld.so.conf.d/bbtk.conf +4.2) execute : ldconfig -1.2) Check the paths of the file +4.2) Check the paths of the file -2) Create virtual site apache +5) Create virtual site apache mkdir /var/www/testwtdbg mkdir /var/www/testwtdbg/docroot = /var/www/testwtdbg/docroot -3) Apache configuration +6) Apache configuration cp fastcgi-wt.conf /etc/httpd/conf.d/. service httpd restart -4) wt temporary diractory +7) wt temporary diractory mkdir /var/run/wt chown apache:apache /var/run/wt -5) wt CONFIGURATION +8) wt CONFIGURATION mkdir /etc/wt cp wt_config.xml /etc/wt/. -6) Prepare wt application site +9) Prepare wt application site mkdir / chown apache:apache / @@ -45,7 +49,7 @@ ln -s /share/Wt/resources //resources ln -s /share/data/reosurcesXTK /resourcesXTK ln -s /bin/bbiWeb.wt /bbiWeb.wt -7) To cofigure new Package in +10) To cofigure new Package in /.bbtk/bbtk_config.xml with @@ -58,7 +62,7 @@ with -8) Call application from browser +11) Call application from browser http://localhost//bbiWeb.php -- 2.44.0