Hello, Here, steps to build under windowssetup allinone, client GTK, server, client-web
Info from topic : http://www.openobject.com/forum/topic10994.html original procedure (no functional): http://bazaar.launchpad.net/~openerp/openerp/win-installer-trunk/annotate/head%3A/doc/INSTALL thanks to : dharival , David L: for questions and answers ChristianD : for answers Stéphane Wirteel : for original scripts and library openerp & Axelor : for the work , codes and scripts Gem (itâs me) : for the time passed to understand, correct scripts, steps, good library â¦, and give the solution First, if necessary, clean your computer : Uninstall GTK, GTK-dev if you donât have version 2.12.9 AND installed in folder and with options by default. Uninstall all programs with GTK include like the gimp or Dia (to build opener module with UML) Search with windows in C:\ keyword gtk ,gimp, dia. (Delete ) Search in registry (start->execute regedit ok) with keyword gtk ,gimp, dia. (Delete ) Clean with programs like glary utilities XOR comodo http://www.glaryutilities.com/ http://system-cleaner.comodo.com/ if not do yet, install bazaar : http://bazaar-vcs.org/Download create a folder to stock sources and build : C:\ openerp Open a windows console start->execute cmd ok cd C:\ openerp enter bzr branch lp:~openerp/openerp/win-installer-trunk enter (donât worry for the warningâs message of launchpad, stand the end, a few minutes) a new folder has been created : C:\ openerp\ win-installer-trunk download in C:\ openerp\ win-installer-trunk\dependencies the following this URL : gtk-2.12.9-win32-1.exe : http://sourceforge.net/project/showfiles.php?group_id=98754&package_id=121281 gtk-dev-2.12.9-win32-2.exe : http://sourceforge.net/project/showfiles.php?group_id=98754&package_id=111411 pytz-2006p.zip : unzip in the current folder after download . http://sourceforge.net/project/showfiles.php?group_id=79122&package_id=80455 pytz-2009g-py2.5.egg (used by the client-web) : download in C:\...\dependencies\pytz-2006p\dist. http://pypi.python.org/pypi/pytz/ install programs and libraries (with installation and options by default=>else the scripts donât work) in the folder dependencies, just this listing and in this order : nsis-2.40-setup.exe graphviz-2.20.2.exe python-2.5.2.msi copy C:\ openerp\ win-installer-trunk\dependencies\pytz-2006p in C:\python25\Lib\site-packages open a console windows : cd C:\ python25\Lib\site-packages \pytz-2006p python setup.py install copy C:\ python25\Lib\site-packages \pytz-2006p\pytz in C:\ python25\Lib\site-packages\pytz (do not install pytz-2008i.win32.exe) egenix-mx-base-3.1.1.win32-py2.5.msi egenix-pyopenssl-0.8.0_0.9.8i_1.win32-py2.5.msi (not in the OpenERP Quick Installation Guide) PyXML-0.8.4.win32-py2.5.exe libxml2-python-2.7.1.win32-py2.5.exe lxml-2.1.2.win32-py2.5.exe matplotlib-0.98.3.win32-py2.5.exe numpy-1.1.1-win32-superpack-python2.5.exe PIL-1.1.6.win32-py2.5.exe PyChart-1.39.win32.exe ( created by Stephane Wirtel ) ReportLab-2.2.win32-py2.5.exe vobject-0.7.1.win32.exe ( created by Stephane Wirtel ) pygobject-2.14.1-1.win32-py2.5.exe pygtk-2.12.1-2.win32-py2.5.exe pycairo-1.4.12-1.win32-py2.5.exe gtk-2.12.9-win32-1.exe msi (not in the OpenERP Quick Installation Guide) (install by default (just) in C:\GTK with options by default ) gtk-2.12.9-win32-2.exe (installer par defaut (uniquement) sur C:\GTK avec les options cochees par defaut (tout coche)) gtk-dev-2.12.9-win32-1.exe msi (not in the OpenERP Quick Installation Guide) (install by default (just) in C:\GTK with options by default ) gtk-dev-2.12.9-win32-2.exe (installer par defaut (uniquement) sur C:\GTK avec les options cochees par defaut (tout coche)) pydot-1.0.2.win32.exe ( created by Stephane Wirtel ) pyparsing-1.5.0.win32.exe pywin32-212.win32-py2.5.exe py2exe-0.6.8.win32-py2.5.exe hippo-canvas-0.3.0-win32.zip unzip files "libhippocanvas-1-0.dll" and "hippo.pyd") in C:\Python25\DLLs\ msvcp71.zip unzip dll msvcp71.dll) in C:\WINDOWS\SYSTEM32 if necessary psycopg2-2.0.8.win32-py2.5-pg8.3.4-release.exe setuptools-0.6c9.win32-py2.5.exe You have now installed all you need to build the different setup with following scripts : BUILD OPENERP SETUP ALLINONE : In C:\openerp\win-installer-trunk\ make.bat right click modify File->Save as make-allinone.bat Delete all, paste, save, read commentary of this : ::beginning of script :: Disabled/Enable echoing @echo off :: Set some script wide variable set POSTGRESQL_MSI=postgresql-8.3-int.msi set OPENERP_NSIS=setup.nsi set OPENERP_DEMO_DIR=demo :: Get current date (YYYYMMDD) set TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% :: Save current directory set TOPDIR=%CD% :: Set correct a subdirectory for packaging, :: dont trash the current directory... set SUBDIR=%1 if "%1"=="" goto usage if "%2"=="" goto usage set VERSION=%2 goto create_subdir :usage echo "make.bat TITLE_OF_BUILD VERSION" goto end :: Prepare sub-directory :create_subdir echo Creating subdir %SUBDIR%. mkdir %SUBDIR% echo. echo Copying PostgreSQL installer... copy /Y %POSTGRESQL_MSI% %SUBDIR% echo. echo Copying OpenERP Nullsoft installer script... copy /Y %OPENERP_NSIS% %SUBDIR% echo. echo Copying `demo' files... mkdir %SUBDIR%\demo xcopy /E /I /Y %OPENERP_DEMO_DIR% %SUBDIR%\demo cd %SUBDIR% :: Get sources from launchpad :bzr_clone echo. echo Downloading OpenERP Server/Development version... bzr clone lp:~openerp/openobject-server/trunk server echo OpenERP Server downloaded ! echo. echo Downloading OpenERP Client/Development version... bzr clone lp:~openerp/openobject-client/trunk client echo OpenERP Client downloaded ! pause :: to resolve the problem of timeout when you install a service profile like manufacturing industry profile (even if you have a good mashine), during the pause, modify C:\openerp\trunk\win-installer-trunk\trunk\client\bin\ tiny_socket.py change self.sock.settimeout(.....) by self.sock.settimeout(600), you will have 10 minutes of delay for install the profile, enter to continue echo. echo Downloading OpenERP Web Client/Development version... bzr clone lp:~openerp/openobject-client-web/5.0 client-web echo OpenERP Web Client downloaded ! echo. echo Downloading OpenERP Addons/Development version... bzr clone lp:~openerp/openobject-addons/trunk-extra-addons addons xcopy /E addons\* server\bin\addons\ echo OpenERP Addons downloaded ! :: put ":" for each line if you donât want extra-addons echo. echo Downloading OpenERP extra-addons/Development version... bzr clone lp:~openerp-commiter/openobject-addons/trunk extra-addons xcopy /E extra-addons\* server\bin\addons\ echo OpenERP extra-addons downloaded ! :packaging :: package client for allinone cd client.\ python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi :: package server for allinone cd .. cd server\win32 python setup.py --quiet py2exe cd .. python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi :: package client-web for allinone cd .. cd client-web python win32\setup.py --quiet bdist_wininst --allinone makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi move win32\openerp-web-* .\openerp-web-setup-%VERSION%.exe :: package all-in-one cd .. makensis /DVERSION=%VERSION% /V1 setup.nsi echo all in one build cd client-web rmdir /S /Q win32\build rmdir /S /Q build :end :: Do some clean-up, :: return to TOPDIR, and unset script environment vars :cleanup cd %TOPDIR% set POSTGRESQL_MSI= set OPENERP_NSIS= set OPENERP_DEMO_DIR= set TODAY= set TOPDIR= set SUBDIR= pause ::end of script Save the file Open a console windows and type : Cd C:\ openerp\ win-installer-trunk (enter) make-allinone.bat trunk 5.0.0-trunk (enter, some minutes) trunk is the folder which will be created, in which sources and build will be stocked (you can choose what you want) 5.0.0-trunk is the name for the build (you can choose what you want) The build setup is stocked in my case, in the folder C:\ openerp\ win-installer-trunk\trunk You can install your openerp all in one setup (uninstall precedent first naturally) BUILD OPENERP SERVER, CLIENT GTK AND CLIENT WEB : In C:\openerp\win-installer-trunk\ make.bat right click modify File->Save as make-solo.bat Delete all, paste, save, read commentary of this : ::beginning of script :: Disabled/Enable echoing @echo off :: Set some script wide variable set POSTGRESQL_MSI=postgresql-8.3-int.msi set OPENERP_NSIS=setup.nsi set OPENERP_DEMO_DIR=demo :: Get current date (YYYYMMDD) set TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% :: Save current directory set TOPDIR=%CD% :: Set correct a subdirectory for packaging, :: dont trash the current directory... set SUBDIR=%1 if "%1"=="" goto usage if "%2"=="" goto usage set VERSION=%2 goto create_subdir :usage echo "make.bat TITLE_OF_BUILD VERSION" goto end :: Prepare sub-directory :create_subdir echo Creating subdir %SUBDIR%. mkdir %SUBDIR% echo. echo Copying PostgreSQL installer... copy /Y %POSTGRESQL_MSI% %SUBDIR% echo. echo Copying OpenERP Nullsoft installer script... copy /Y %OPENERP_NSIS% %SUBDIR% echo. echo Copying `demo' files... mkdir %SUBDIR%\demo xcopy /E /I /Y %OPENERP_DEMO_DIR% %SUBDIR%\demo cd %SUBDIR% :: Get sources from launchpad :bzr_clone echo. echo Downloading OpenERP Server/Development version... bzr clone lp:~openerp/openobject-server/trunk server echo OpenERP Server downloaded ! echo. echo Downloading OpenERP Client/Development version... bzr clone lp:~openerp/openobject-client/trunk client echo OpenERP Client downloaded ! pause :: to resolve the problem of timeout when you install a service profile like manufacturing industry profile (even if you have a good mashine), during the pause, modify C:\openerp\trunk\win-installer-trunk\trunk\client\bin\ tiny_socket.py change self.sock.settimeout(.....) by self.sock.settimeout(600), you will have 10 minutes of delay for install the profile, enter to continue echo. echo Downloading OpenERP Web Client/Development version... bzr clone lp:~openerp/openobject-client-web/5.0 client-web echo OpenERP Web Client downloaded ! echo. echo Downloading OpenERP Addons/Development version... bzr clone lp:~openerp/openobject-addons/trunk-extra-addons addons xcopy /E addons\* server\bin\addons\ echo OpenERP Addons downloaded ! :: put ":" for each line if you donât want extra-addons echo. echo Downloading OpenERP extra-addons/Development version... bzr clone lp:~openerp-commiter/openobject-addons/trunk extra-addons xcopy /E extra-addons\* server\bin\addons\ echo OpenERP extra-addons downloaded ! :packaging :: package client for allinone cd client.\ python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi :: package server for allinone cd .. cd server\win32 python setup.py --quiet py2exe cd .. python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi :: package client-web for allinone cd .. cd client-web python win32\setup.py --quiet bdist_wininst --allinone makensis /DVERSION=%VERSION% /DALLINONE=1 /V1 setup.nsi move win32\openerp-web-* .\openerp-web-setup-%VERSION%.exe :: package all-in-one cd .. makensis /DVERSION=%VERSION% /V1 setup.nsi echo all in one build :packaging :: package client cd client python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /V1 setup.nsi :: package server cd .. cd server\win32 python setup.py --quiet py2exe cd .. python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /V1 setup.nsi cd .. :: package client-web cd client-web python win32\setup.py --quiet bdist_wininst makensis /DVERSION=%VERSION% /V1 setup.nsi move win32\openerp-web-* .\openerp-web-setup-%VERSION%.exe move win32\openerp-web-setup-%VERSION%.exe . rmdir /S /Q win32\build rmdir /S /Q build cd .. copy server\openerp-server-setup-%VERSION%.exe . copy client\openerp-client-setup-%VERSION%.exe . copy client-web\openerp-web-setup-%VERSION%.exe . :end :: Do some clean-up, :: return to TOPDIR, and unset script environment vars :cleanup cd %TOPDIR% set POSTGRESQL_MSI= set OPENERP_NSIS= set OPENERP_DEMO_DIR= set TODAY= set TOPDIR= set SUBDIR= pause ::end of script Save the file Open a console windows and type : cd C:\ openerp\ win-installer-trunk (enter) make-solo.bat trunk 5.0.0-trunk (enter, some minutes) trunk is the folder which will be created, in which sources and build will be stocked (you can choose what you want) 5.0.0-trunk is the name for the build (you can choose what you want) The build setup is stocked in my case, in the folder C:\ openerp\ win-installer-trunk\trunk You can install your setups (uninstall precedent first naturally) BUILD ALL IN ONE+SERVER+CLIENT-GTK+CLIENT-WEB IN THE SAME TIME In C:\openerp\win-installer-trunk\ make.bat right click modify File->Save as make-allinone-solo.bat Delete all, paste, save, read commentary of this : ::beginning of script :: Disabled/Enable echoing @echo off :: Set some script wide variable set POSTGRESQL_MSI=postgresql-8.3-int.msi set OPENERP_NSIS=setup.nsi set OPENERP_DEMO_DIR=demo :: Get current date (YYYYMMDD) set TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% :: Save current directory set TOPDIR=%CD% :: Set correct a subdirectory for packaging, :: dont trash the current directory... set SUBDIR=%1 if "%1"=="" goto usage if "%2"=="" goto usage set VERSION=%2 goto create_subdir :usage echo "make.bat TITLE_OF_BUILD VERSION" goto end :: Prepare sub-directory :create_subdir echo Creating subdir %SUBDIR%. mkdir %SUBDIR% echo. echo Copying PostgreSQL installer... copy /Y %POSTGRESQL_MSI% %SUBDIR% echo. echo Copying OpenERP Nullsoft installer script... copy /Y %OPENERP_NSIS% %SUBDIR% echo. echo Copying `demo' files... mkdir %SUBDIR%\demo xcopy /E /I /Y %OPENERP_DEMO_DIR% %SUBDIR%\demo cd %SUBDIR% :: Get sources from launchpad :bzr_clone echo. echo Downloading OpenERP Server/Development version... bzr clone lp:~openerp/openobject-server/trunk server echo OpenERP Server downloaded ! echo. echo Downloading OpenERP Client/Development version... bzr clone lp:~openerp/openobject-client/trunk client echo OpenERP Client downloaded ! pause :: to resolve the problem of timeout when you install a service profile like manufacturing industry profile (even if you have a good mashine), during the pause, modify C:\openerp\trunk\win-installer-trunk\trunk\client\bin\ tiny_socket.py change self.sock.settimeout(.....) by self.sock.settimeout(600), you will have 10 minutes of delay for install the profile, enter to continue echo. echo Downloading OpenERP Web Client/Development version... bzr clone lp:~openerp/openobject-client-web/5.0 client-web echo OpenERP Web Client downloaded ! echo. echo Downloading OpenERP Addons/Development version... bzr clone lp:~openerp/openobject-addons/trunk-extra-addons addons xcopy /E addons\* server\bin\addons\ echo OpenERP Addons downloaded ! :: put ":" for each line if you donât want extra-addons echo. echo Downloading OpenERP extra-addons/Development version... bzr clone lp:~openerp-commiter/openobject-addons/trunk extra-addons xcopy /E extra-addons\* server\bin\addons\ echo OpenERP extra-addons downloaded ! :packaging :: package client cd client python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /V1 setup.nsi :: package server cd .. cd server\win32 python setup.py --quiet py2exe cd .. python setup.py --quiet py2exe makensis /DVERSION=%VERSION% /V1 setup.nsi cd .. :: package client-web cd client-web python win32\setup.py --quiet bdist_wininst makensis /DVERSION=%VERSION% /V1 setup.nsi move win32\openerp-web-* .\openerp-web-setup-%VERSION%.exe move win32\openerp-web-setup-%VERSION%.exe . rmdir /S /Q win32\build rmdir /S /Q build cd .. copy server\openerp-server-setup-%VERSION%.exe . copy client\openerp-client-setup-%VERSION%.exe . copy client-web\openerp-web-setup-%VERSION%.exe . :end :: Do some clean-up, :: return to TOPDIR, and unset script environment vars :cleanup cd %TOPDIR% set POSTGRESQL_MSI= set OPENERP_NSIS= set OPENERP_DEMO_DIR= set TODAY= set TOPDIR= set SUBDIR= pause ::end of script Save the file Open a console windows and type : Cd C:\ openerp\ win-installer-trunk (enter) make-allinone-solo.bat trunk 5.0.0-trunk (enter, some minutes) trunk is the folder which will be created, in which sources and build will be stocked (you can choose what you want) 5.0.0-trunk is the name for the build (you can choose what you want) The build setup is stocked in my case, in the folder C:\ openerp\ win-installer-trunk\trunk You can install your setup (uninstall precedent first naturally) NOTICE : If you donât change the folder to stock build and sources, (first argument after make.bat, here : trunk), bazaar donât download a second time the sources. If you want to insert a database in the allinone installer or server follow this (not tested) : In the folder C:\...\wininstaller-trunk\trunk\server in the file setup.nsi, insert this command at the end : ExecWait '"$PROGRAMFILES\\PostgreSQL4TinyERP\\bin\pg_dump" -d postgres -C "$PROGRAMFILES\\OpenERP Server\\addons\mydatabase.backup" -U tinypg' IfErrors 0 +2 MessageBox MB_OK "Database Dump Finished" Type the good PATH and Name Good Build (be patient) A+ [Laughing] [Laughing] ------------------------ Sauvegardons la banquise, sinon les pingouins vont disparaitre ! -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=37075#37075 -------------------- m2f --------------------
_______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users
