[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

Re: [XaraXtreme-dev] Compile on Slackware 10.2



Brent,

--On 26 March 2006 01:52 -0500 "Brent W. Woodruff" <brent@xxxxxxxxxxx> wrote:

I have written several wxWidgets programs, so I keep several static
versions of the library around. wxWidgets-2.6.3-rc2 compiled no problem
for me. I made a build_static_unicode directory in the base source
directory and configured it with:
../configure --disable-shared --enable-unicode
then did make.

Then I uncompressed Xara, made a build directory in the base source
directory and configured with:
../configure --enable-static-exec
--with-wx-config=../../wxWidgets-2.6.3/build_static_unicode/wx-config

I didn't expect to have to specify --enable-static-exec, but that made
compilation happy. On to linking!

This is where I'm stuck. It appears that the XaraLX_LDFLAGS in the
Makefile are generated incorrectly. It was looking for them in
/usr/local/lib instead of using `wx-config --libs` to point to the ones
in my non-installed static build.

I'm not sure building the static build is yet as resilient as building the
dynamic build. You might want to avoid "--enable-static-exec" and
"--disable-shared". The only current user of the static build is Luke
for the release tarballs, so it may be less than resilient. Most of
us use dynamic (as per the build instructions).

If your distribution installs stuff in /usr/lib etc. (Debian, Ubuntu
etc.) you might want to add "--prefix=/usr" to both lines.

I edited the Makefile and the build got
a little further. Now I am getting that the compiler is unable to find
-lCDraw and -lfontconfig, which weren't checked for by configure.
Fontconfig I am vaguely familiar with, and I think I can get it
installed, but it should still be checked for. I searched high and low
for what -lCDraw is, but didn't have any luck.

-lCDraw uses the CDraw library distributed with the app (see the libs/
directory). Again, I suspect the problem here is trying to use the
static build. Try again using the dynamic build, which (somewhat
perversely) will probably static link in CDraw.

We should fix the static build or put a note somewhere to say it
isn't in a great state right now (I'm assuming that's what the
issue is Luke?)

Alex