Page 1 of 1

Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Wed Jul 11, 2018 3:29 pm
by allenwinter
Using CMake to build on windows10, build.py fails after a while.

I see the following at the end of CMakeFiles/OmeroBuildOutput.txt:
os.chdir('C:\\work\\Qi\\openmicroscopy-5.4.6\\components\\blitz')
scons: *** [omero_api_Exporter_ice.py] The system cannot find the file specified

java is in my %PATH%
java -version says
java version "1.8.0_172"
Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)

do I need to set PYTHONPATH or some other variable?
I have c:\python27 in %PATH% but I don't set PYTHONPATH

Here's how I build from a plain old Windows terminal:
cd openmicroscopy-5.4.6
mkdir build-windows10
cd build-windows10
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=c:\OMERO ..
[fails with that scons error show above]

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Fri Jul 13, 2018 10:02 am
by rgozim
Hi Allen,

From the error you've provided, it looks like zeroc-ice has failed to generate omero_api_Exporter_ice.py from omero/api/Exporter.ice

I'm not entirely sure why this is occurring and we don't have any Windows machines to test on as Windows isn't officially supported.

Have you tried using any other CMake generators to see if a similar error occurs? Also, are you following any particular OMERO docs?

Best regards,
Riad

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Thu Jul 19, 2018 9:37 pm
by allenwinter
driving me a little crazy.
I managed to build it on one of my Windows machines.. somehow.
but I can't reproduce on a second machine.

At first I thought for sure I needed to build my own zeroc-ice and not use the web installer version from https://zeroc.com/download/Ice/3.6/Ice- ... taller.exe

then I thought I need to put %ICE_HOME%\bin\x64 in %PATH%

I'll start fresh tomorrow.
thanks for you interest.

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Mon Jul 23, 2018 3:17 pm
by allenwinter
Is there anyway to show the full command lines that are being executed?

I cannot figure out exactly what scons is trying to do and what file(s) are missing

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Wed Jul 25, 2018 3:02 pm
by Dominik
Sorry for the late reply. I tried to replicate the issue on a Windows 8 VM, but got stuck an various other errors.
I will bring up the issue again next week when some people from the team are back again from holiday. They will hopefully be able to help you with this matter.

Regards,
Dominik

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Thu Aug 23, 2018 3:06 pm
by jmoore

Re: Building openmicroscopy-5.4.6 on Windows10 (scons)

PostPosted: Tue Sep 04, 2018 4:15 pm
by allenwinter
for the record, the error turned out to be that I didn't have slice2py installed on Windows; you need to build slice2py explicitly on Windows (or you can install with pip)

unfortunately, still unable to build omero 5.4.6 on Windows because the omero-ice.dll won't link due to more than 65535 objects.

"LINK : fatal error LNK1189: library limit of 65535 objects exceeded"

I'm stuck