A list for the developers of CellML tools

Text archives Help


[cellml-dev] FW: Compiling OpenCell and/or getting a .lib


Chronological Thread 
  • From: ak.miller at auckland.ac.nz (Andrew Miller)
  • Subject: [cellml-dev] FW: Compiling OpenCell and/or getting a .lib
  • Date: Wed, 15 Dec 2010 16:08:16 +1300

On 14/12/10 11:54, Lucian Smith wrote:
> * Andrew Miller<ak.miller at auckland.ac.nz> [2010-12-10 00:22] writes:
>> On 10/12/10 13:03, Lucian Smith wrote:
>>> * Andrew Miller<ak.miller at auckland.ac.nz> [2010-12-09 23:27] writes:
>>>> On 10/12/10 12:13, Lucian Smith wrote:
>>>>> So, here's my current status; hopefully one of you can help point me in
>>>>> the right direction from here.
>>>>>
>>>>> The CellML API Windows binary: The .dll and the .lib files are two
>>>>> parts
>>>>> of a three-part puzzle: I need include files in order to actually use
>>>>> them. The source code does *not* include all the necessary include
>>>>> files,
>>>>> because they are auto-generated. The auto-generated .h (etc) files from
>>>>> Unix do not work; they expect linux-specific files to be present. So as
>>>>> it stands right now, I cannot use the CellML API binary.
>>>>>
>>>>> Compiling the CellML API myself from source on cygwin for VS2008: I am
>>>>> actually pretty close on this! The last time I tried it, I
>>>>> gave up when 'aclocal' didn't work; recently I tried 'aclocal-1.10' and
>>>>> that seemed to work fine (leastwise it didn't complain). This got me to
>>>>> 'configure', which didn't work with VS 2010, but did indeed run through
>>>>> with VS 2008. Then I ran 'make' and immediately ran into problems:
>>>>
>>>> Hi Lucian,
>>>>
>>>> Did you try the setup tool at
>>>>
>>>> http://cellml-api.hg.sf.net/hgweb/cellml-api/win32-build-setup/cellml-dev-setup.exe
>>>> yet?
>>>>
>>>> That is probably the first thing worth trying if you haven't already -
>>>> that is the recommended way to build the API on Windows.
>
> OK, I have now run the setup tool, and it had some issues--it doesn't stop
> when it runs into problems, is the main thing, so it just zooms to the end
> making you watch popups which may or may not tell you what's going on.
> After it finished and nothing was done, I saw that it had failed to
> download xulrunner, so I ran 'configure' by hand and pointed it at the
> other installation. 'Configure' then finished, but then 'make' failed
> exactly the same way it ahd before.
>
> So, I went ahead and re-ran the setup tool telling it not to bother with
> xulrunner/opencell. It failed again, once more not telling me why. So, I
> ran 'configure' by hand, and I think it got further than it had the last
> time-at the very least, the 'omniidl' bits worked fine. However, I then
> got this error:
>
> creating librdf.la
> (cd .libs&& rm -f librdf.la&& cp ../librdf.la librdf.la)
> /bin/sh ./libtool --tag=CXX --mode=link
> /cygdrive/c/build/cellml-api/build/msvc-wrapper -I. -I./sources
> -I./interfaces
> -g -o libcellml.la -rpath /usr/local/lib libcellml_la-Utilities.lo
> libcellmlonly.la libmathmlonly.la libdomonly.la
> libdomdirectonly.la -lxml2 -no-undefined librdf.la
> rm -fr .libs/libcellml.lax
> mkdir .libs/libcellml.lax
> rm -fr .libs/libcellml.lax/cellmlonly.lib
> mkdir .libs/libcellml.lax/cellmlonly.lib
> (cd .libs/libcellml.lax/cellmlonly.lib&& ar x
> /cygdrive/c/build/cellml-api/./.libs/cellmlonly.lib)
> .libs/libcellmlonly_la-CellMLEvents.obj: No such file or directory
> make[1]: *** [libcellml.la] Error 1
> make[1]: Leaving directory `/cygdrive/c/build/cellml-api'
> make: *** [all] Error 2
>
> Once again, the file in question is actually there
> (/cygdrive/c/build/cellml-api/.libs/libcellmlonly_la-CellMLEvents.obj but
> it's not being pointed to in the right way... somehow.

Hi Lucian,

The installer did previously work on a pristine Windows XP and Vista,
but that was a while ago and it is possible that Cygwin has changed
under us since we last tried it. It is worth checking: did you turn all
options on except for Xulrunner / OpenCell (especially the build
environment ones)? These set up the correct environment for the CellML
API to build in. Turning off MSVC is okay, and maybe Cygwin if you have
the right version and packages installed, but anything else should only
be turned off if you have run the install script with them turned on
previously.

It isn't supposed to be using ar, it is supposed to be using
msvc-wrap-ar, which is a wrapper around 'lib.exe' from MSVC.

Is C:\build\physiome-build\cygwin-build\msvc-wrapper present on your
system? The build script should have checked it out (from
http://bitbucket.org/a1kmm/physiome-build).

I'd suggest you set all the environment variables mentioned in
http://cellml-api.hg.sourceforge.net/hgweb/cellml-api/win32-build-setup/file/bbcbe82542c9/bashrc

before attempted to run configure. The installer executable, if asked to
set up your build environment, will install that in your .bashrc - but
it appears at least that $AR wasn't set before you ran configure and
built to get the error above.

Best wishes,
Andrew




Archive powered by MHonArc 2.6.18.

Top of page