Compile SDDS and GENESIS in win10

Moderators: cyao, soliday

Post Reply
yiding
Posts: 7
Joined: 21 Jun 2019, 07:15

Compile SDDS and GENESIS in win10

Post by yiding » 19 Sep 2019, 02:02

I'm trying to compile the mpi edition of GENESIS 2.0 source code in Window10,
since the binary self-installing executable file is not provided directly.
I have installed Elegant and SDDSToolkit before, and some dll files, like SDDS1.dll,
mdbcommon.dll, etc, are already in the install directionaries.
However, according to the Makefile of GENESIS2.0, some .lib files are also needed.
I wonder where I can obtain these lib files.
And, for windows, is there any instruction of compiling SDDSToolkit from souce code
manually to get these needed files?

Thanks very much,

--Yiding Li

yiding
Posts: 7
Joined: 21 Jun 2019, 07:15

Re: Compile SDDS and GENESIS in win10

Post by yiding » 19 Sep 2019, 06:12

I have downloaded and unzipped SDDS.4.1.tar and run mingw32-make in C:\epics\base.
But the installation aborts with information:

C:\epics\base>mingw32-make
mingw32-make -C ./configure install
mingw32-make[1]: Entering directory 'C:/epics/base/configure'
perl -CSD ../src/tools/makeMakefile.pl O.linux-x86 ../..
mkdir O.Common
mingw32-make -C O.linux-x86 -f ../Makefile TOP=../.. \
T_A=linux-x86 install
mingw32-make[2]: Entering directory 'C:/epics/base/configure/O.linux-x86'
mingw32-make[2]: Nothing to be done for 'install'.
mingw32-make[2]: Leaving directory 'C:/epics/base/configure/O.linux-x86'
mingw32-make[1]: Leaving directory 'C:/epics/base/configure'
mingw32-make -C ./src install
mingw32-make[1]: Entering directory 'C:/epics/base/src'
mingw32-make -C ./tools install
mingw32-make[2]: Entering directory 'C:/epics/base/src/tools'
perl -CSD ../../src/tools/makeMakefile.pl O.linux-x86 ../../..
mkdir O.Common
mingw32-make -C O.linux-x86 -f ../Makefile TOP=../../.. \
T_A=linux-x86 install
mingw32-make[3]: Entering directory 'C:/epics/base/src/tools/O.linux-x86'
"Installing PERL_MODULES file ../../../lib/perl/EPICS/Copy.pm"
mkdir ../../../lib
mkdir ../../../lib/perl
mkdir ../../../lib/perl/EPICS
"Installing PERL_MODULES file ../../../lib/perl/EPICS/Path.pm"
"Installing PERL_MODULES file ../../../lib/perl/EPICS/Release.pm"
"Installing PERL_MODULES file ../../../lib/perl/EPICS/Readfile.pm"
"Installing PERL_MODULES file ../../../lib/perl/EPICS/Getopts.pm"
"Installing PERL_MODULES file ../../../lib/perl/EPICS/macLib.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Base.pm"
mkdir ../../../lib/perl/DBD
"Installing PERL_MODULES file ../../../lib/perl/DBD/Breaktable.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Device.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Driver.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Function.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Menu.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Output.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Parser.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Recfield.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Recordtype.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Registrar.pm"
"Installing PERL_MODULES file ../../../lib/perl/DBD/Variable.pm"
process_begin: CreateProcess(NULL, rm -f epics-base-linux-x86.pc@, ...) failed.
make (e=2): 系统找不到指定的文件。 (my system language is Chinese. This line says "the system cannot find the specified file")
mingw32-make[3]: *** [../Makefile:82: epics-base-linux-x86.pc@] Error 2
mingw32-make[3]: Leaving directory 'C:/epics/base/src/tools/O.linux-x86'
mingw32-make[2]: *** [../../configure/RULES_ARCHS:58: install.linux-x86] Error 2
mingw32-make[2]: Leaving directory 'C:/epics/base/src/tools'
mingw32-make[1]: *** [../configure/RULES_DIRS:84: tools.install] Error 2
mingw32-make[1]: Leaving directory 'C:/epics/base/src'
mingw32-make: *** [configure/RULES_DIRS:84: src.install] Error 2

soliday
Posts: 274
Joined: 28 May 2008, 09:15

Re: Compile SDDS and GENESIS in win10

Post by soliday » 19 Sep 2019, 11:06

There is a lot that needs to be changed to get this to compile on Windows again. I've tried for over an hour but I haven't made much progress. I did however just install the existing GENESIS-2.0-3.exe and tested it and see that it still runs on Windows 10.

yiding
Posts: 7
Joined: 21 Jun 2019, 07:15

Re: Compile SDDS and GENESIS in win10

Post by yiding » 19 Sep 2019, 19:39

Thank you for your reply. I've seen the GENESIS-2.0-3.exe file on the software download
page, but I'm not sure of its compatibility for 64-bit Windows.
Would you please tell me how to run it parallel in windows and which mpi enviroment
is needed? Is MS MPI suitable for genesis?

Thank you very much,

--Yiding, Li

--
无标题.jpg

soliday
Posts: 274
Joined: 28 May 2008, 09:15

Re: Compile SDDS and GENESIS in win10

Post by soliday » 20 Sep 2019, 08:44

The MPI version was never built for Windows so it is not included in the GENESIS-2.0-3.exe executable. When I get some free time, I will look into fixing the build. I need to convert it from using Intel Fortran to mingw gfortran. I am not sure if Microsoft MPI with work with this though.

yiding
Posts: 7
Joined: 21 Jun 2019, 07:15

Re: Compile SDDS and GENESIS in win10

Post by yiding » 21 Sep 2019, 21:43

It seems I should use linux virtual machine to run genesis parallel under windows.

Thank you for your reply.

Post Reply