We're Hiring!

Problems with building from source

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Problems with building from source

Postby pjk » Thu May 31, 2012 9:49 am

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
pjk
 
Posts: 16
Joined: Wed May 09, 2012 1:35 am

Re: Problems with building from source

Postby cxallan » Thu May 31, 2012 9:58 am

Which branch are you building? master? develop?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Problems with building from source

Postby pjk » Thu May 31, 2012 10:30 am

cxallan wrote:Which branch are you building? master? develop?

Develop
pjk
 
Posts: 16
Joined: Wed May 09, 2012 1:35 am

Re: Problems with building from source

Postby cxallan » Thu May 31, 2012 10:41 am

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
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: Problems with building from source

Postby pjk » Fri Jun 01, 2012 1:31 am

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
pjk
 
Posts: 16
Joined: Wed May 09, 2012 1:35 am

Re: Problems with building from source

Postby wmoore » Fri Jun 01, 2012 10:11 pm

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.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Problems with building from source

Postby pjk » Fri Jun 01, 2012 10:49 pm

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
pjk
 
Posts: 16
Joined: Wed May 09, 2012 1:35 am

Re: Problems with building from source

Postby jmoore » Mon Jun 04, 2012 6:13 am

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
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: Problems with building from source

Postby pjk » Tue Jun 05, 2012 3:21 am

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?
pjk
 
Posts: 16
Joined: Wed May 09, 2012 1:35 am

Re: Problems with building from source

Postby jmoore » Tue Jun 05, 2012 6:06 am

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
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Next

Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest