Page 1 of 2

Problems with building from source

PostPosted: Thu May 31, 2012 9:49 am
by pjk
Hi,

I'm trying to build the Insight client from source code:

I have downloaded the source code using
Code: Select all
git clone http://github.com/openmicroscopy/openmicroscopy

I'm building on Windows 7 and (trying) to use Eclipse
I have installed python 2.7 and ice-3.3.1 and set the path and pythonpath

When i try to build, using
Code: Select all
c:\users\peter\openmicroscopy\build.bat

I get the following error messages:

Code: Select all
Entering C:\Users\Peter\openmicroscopy\components\romio...

retrieve:
:: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = C:\Users\Peter\openmicroscopy\etc\ivysettings.xml
:: problems summary ::
:::: WARNINGS
                module not found: ome#bio-formats;UNKNOWN-ice33

        ==== main: tried
//removed lines here
        ==== repo: tried
//removed lines here
        ==== test: tried
//removed lines here
        ==== com.springsource.repository.bundles.release: tried
//removed lines here
        ==== com.springsource.repository.bundles.external: tried
//removed lines here
                ::::::::::::::::::::::::::::::::::::::::::::::
                ::          UNRESOLVED DEPENDENCIES         ::
                ::::::::::::::::::::::::::::::::::::::::::::::
                :: ome#bio-formats;UNKNOWN-ice33: not found
                ::::::::::::::::::::::::::::::::::::::::::::::

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\Users\Peter\openmicroscopy\build.xml:156: The following error occurred while executing this line:
C:\Users\Peter\openmicroscopy\components\antlib\resources\global.xml:355: The following error occurred while executing this line:
C:\Users\Peter\openmicroscopy\components\antlib\resources\lifecycle.xml:62: impossible to resolve dependencies:
        resolve failed - see output for details


Can anybody point me in the right direction to get this issue fixed
Thanks in advance

Re: Problems with building from source

PostPosted: Thu May 31, 2012 9:58 am
by cxallan
Which branch are you building? master? develop?

Re: Problems with building from source

PostPosted: Thu May 31, 2012 10:30 am
by pjk
cxallan wrote:Which branch are you building? master? develop?

Develop

Re: Problems with building from source

PostPosted: Thu May 31, 2012 10:41 am
by cxallan
Ah, okay. Then you'll just need to keep in mind what was outlined on the mailing list before following those instructions:

http://lists.openmicroscopy.org.uk/pipe ... 02212.html

Re: Problems with building from source

PostPosted: Fri Jun 01, 2012 1:31 am
by pjk
cxallan wrote:Ah, okay. Then you'll just need to keep in mind what was outlined on the mailing list before following those instructions:

http://lists.openmicroscopy.org.uk/pipe ... 02212.html


I have now subscribed to the mailing list !

Adding the submodule with git worked and fixed the issue and I'm now getting much further with the build but towards the end I get stuck again: Using build.bat build-dev

Code: Select all
copy-client:
Created dir: C:\Users\Peter\openmicroscopy\dist\lib\client
:: problems summary ::
:::: WARNINGS
                module not found: omero#insight;UNKNOWN-ice33
        ==== main: tried
          C:\Users\Peter\openmicroscopy\etc/../target/repository/insight-UNKNOWN-ice33.ivy
etc....
                ::::::::::::::::::::::::::::::::::::::::::::::
                ::          UNRESOLVED DEPENDENCIES         ::
                ::::::::::::::::::::::::::::::::::::::::::::::
                :: omero#insight;UNKNOWN-ice33: not found
                ::::::::::::::::::::::::::::::::::::::::::::::

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\Users\Peter\openmicroscopy\build.xml:159: The following error occurred while executing this line:
C:\Users\Peter\openmicroscopy\build.xml:750: impossible to resolve dependencies:
        resolve failed - see output for details

Total time: 30 minutes 38 seconds



I have also tried build.bat build-insight but that didn't work

Re: Problems with building from source

PostPosted: Fri Jun 01, 2012 10:11 pm
by wmoore
It would appear that you need to install ICE. The instructions for windows on this page mention https://www.openmicroscopy.org/site/sup ... ll-windows

http://www.zeroc.com/download_3_3_1.html

Hope that helps,

Will.

Re: Problems with building from source

PostPosted: Fri Jun 01, 2012 10:49 pm
by pjk
wmoore wrote:It would appear that you need to install ICE. The instructions for windows on this page mention https://www.openmicroscopy.org/site/sup ... ll-windows

http://www.zeroc.com/download_3_3_1.html

Hope that helps,

Will.


I had Ice installed and updated the PATH setting.
Just checked the ice version as follows
Code: Select all
iceboxadmin -v
3.3.1


I dont think ice is causing the problem although its strange that it keeps saying UNKNOWN-ice33

Re: Problems with building from source

PostPosted: Mon Jun 04, 2012 6:13 am
by jmoore
The UNKNOWN is caused by "git.exe" not being available on the %PATH% in the console that is running the build. Otherwise, you'd get a version like:
Code: Select all
$ ./build.py version
Buildfile: /Users/moore/omero.git/build.xml

version:
4.3.3-3245-27678b2-ice33

BUILD SUCCESSFUL
Total time: 0 seconds


Did initializing and updating the submodules help you get through the build?

~Josh

Re: Problems with building from source

PostPosted: Tue Jun 05, 2012 3:21 am
by pjk
Hi,

I have git running on my windows machine and have updated the PATH to git.exe but it seems that the builder script doesn't recognizes it. This seems to be a small issue.

The main issue is that the build still doesnt complete. It stops at
Code: Select all
module not found: omero#insight;UNKNOWN-ice33


It looks that the insight module is missing?

Re: Problems with building from source

PostPosted: Tue Jun 05, 2012 6:06 am
by jmoore
Odd. Let's step back a bit. Can you give us the output of:
Code: Select all
git status

and
Code: Select all
git log -n 1

and
Code: Select all
build -d version


Thanks,
~Josh