A list for the developers of CellML tools

Text archives Help


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


Chronological Thread 
  • From: lpsmith at spod-central.org (Lucian Smith)
  • Subject: [cellml-dev] FW: Compiling OpenCell and/or getting a .lib
  • Date: Wed, 15 Dec 2010 19:44:22 +0000

Success! At least, limited success; further than before!

Before I got your message, since I had noticed that xulrunner had failed
to install, I tried copying it over to where it expected it, then running
'setup' again, this time asking it to install everything but the Windows
MSVC and SDK stuff (I had indeed asked it to install everything the first
time, and to install most things subsequent times) For some reason, that
was enough to get it to work, and everything ran through. I couldn't tell
if it had actually been successful or not (the command window closed
suddenly, just like it does when it fails), so I ran 'make' in the
c:/build/cellml-api/ directory just to make sure, and it made (re-made?) a
bunch of executables!

The only problem is that those executables seem to be mixed 32/64-bit
things. I was installing on 64-bit Windows 7, and would like to have
32-bit executables because this is for distribution. So presumably the
compilers for the new stuff made thigns 64-bit, and all the pre-compiled
things were 32 bit. But happily, all the auto-generated source code was
at least generated, so I can now at least start to compile my own project
with a dependency on yours. I presume it won't link right, but other than
that...

So, I'm now in the process of trying to get this running on my XP machine,
which presumably won't have the 32/64 bit issues, though it will
presumably also fail to download xulrunner, and I'll have to do that by
hand. But I'm hopeful that everything else will work...

Thanks for the help, and I'm sure I'll be bugging you again soon...

-Lucian


* Andrew Miller <ak.miller at auckland.ac.nz> [2010-12-15 03:09] writes:
> 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