scew-users
[Top][All Lists]
Advanced

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

[scew-users] Re: help installing SCEW (can't find expat.h)


From: Josh Wilkie
Subject: [scew-users] Re: help installing SCEW (can't find expat.h)
Date: Tue, 21 Sep 2010 10:21:20 -0400

Hello Alex,

Yes, that worked... thanks.  So I started a test to try writing an xml
file following the scew_write example.  One thing I had to do was
change all the references to <expat.h> (in the various scew headers)
to the path that I am using for expat.  After I did that I could
compile.  Then I added a function that writes a xml file same as the
example.  It will compile but fails at the linking phase:

../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x260): undefined reference to `_scew_tree_create'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x272): undefined reference to `_scew_tree_set_root'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x28a): undefined reference to `_scew_element_add'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x29c): undefined reference to `_scew_element_set_contents'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x2c6): undefined reference to `_scew_element_add_attribute_pair'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x30e): undefined reference to `_scew_attribute_create'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x31a): undefined reference to `_scew_element_add_attribute'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x3da): undefined reference to `_scew_writer_file_create'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x3ee): undefined reference to `_scew_printer_create'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x402): undefined reference to `_scew_printer_print_tree'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x410): undefined reference to `_scew_writer_free'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x430): undefined reference to `_scew_writer_buffer_create'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x448): undefined reference to `_scew_printer_set_writer'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x482): undefined reference to `_scew_printer_free'
../bin/ambersip.elf2flt: In function `_initXMLSettings':
(.text+0x48c): undefined reference to `_scew_tree_free'

I guess the linker doesn't have the correct path to the scew library.
Not sure how to set this.

Thanks again,
-Josh

On Mon, Sep 20, 2010 at 6:52 PM, Aleix Conchillo Flaqué
<address@hidden> wrote:
> On Mon, Sep 20, 2010 at 23:44, Josh Wilkie <address@hidden> wrote:
>> Hello Aleix,
>>
>
> Hello Josh,
>
>> I am trying to install SCEW in an embedded system running uClinux so I
>> can do some xml file manipulation.  I installed expat successfully and
>> used a prefix to put it in a directory "/home/user/xml".  Now when I
>> run ./configure in the SCEW directory it fails stating:
>>
>> checking expat.h usability... no
>> checking expat.h presence... no
>> checking for expat.h... no
>> configure: error: Unable to find Expat library.
>>                Download lastest version at http://www.libexpat.org
>>
>> So I've tried many things to get it to find expat, setting prefix,
>> setting --with-expat, etc...  but still can't seem to find it.  Is
>> there some obvious step I'm missing here?
>>
>
> You need to setup two environment variables CPPFLAGS and LDFLAGS (see
> ./configure --help), pointing to the Expat headers path and the Expat
> library path respectively.
>
> This can also be done in the command line (just before ./configure), like 
> this:
>
> $ CPPFLAGS=-I/home/user/xml/include LDFLAGS=-L/home/user/xml/lib ./configure
>
> (note that /home/user/xml/include and /home/user/xml/lib might not be
> what you have).
>
> Let me know if this works.
>
> I have CCed the SCEW mailing list so others can find a solution to this issue.
>
> Best regards,
>
> Aleix
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]