building issues
John Ralls
jralls at ceridwen.us
Fri Jan 2 09:56:21 EST 2015
> On Jan 2, 2015, at 1:36 AM, matzeNOTAVAILABLE . <matze999 at gmail.com> wrote:
>
> Hi,
>
> first of all i hope the devel list is the right place to post this
> questions. If not please let me know.
>
> I cloned the git repo and am trying to build on Ubuntu 14.04.1.
>
> I dud the standard:
>
> mkdir build
> ...
> cmake .. && make
>
> It builds but throws an error as:
>
> ../backend/xml/libgnc-backend-xml.a(gnc-backend-xml.c.o): In function
> `gnc_xml_be_write_to_file':
> gnc-backend-xml.c:(.text+0x1869): warning: the use of `mktemp' is
> dangerous, better use `mkstemp' or `mkdtemp'
> ../libqof/libqof.a(gnc-numeric.cpp.o): In function `gnc_numeric_compare':
> gnc-numeric.cpp:(.text+0x239): undefined reference to
> `GncRational::GncRational(_gnc_numeric)'
> gnc-numeric.cpp:(.text+0x256): undefined reference to
> `GncRational::GncRational(_gnc_numeric)'
> ../libqof/libqof.a(gnc-numeric.cpp.o): In function `gnc_numeric_add':
> ...
>
> The implementation is in:
> src/libqof/qof/gnc-rational.cpp
>
> but with objdump i get:
> ./src/libqof/CMakeFiles/qof.dir/qof/gnc-numeric.cpp.o: file format
> elf64-x86-64
> 0000000000000000 *UND* 0000000000000000
> GncRational::GncRational(_gnc_numeric)
> 0000000000000000 *UND* 0000000000000000
> GncDenom::GncDenom(GncRational&, GncRational&, long, unsigned int)
> 0000000000000000 *UND* 0000000000000000
> GncRational::add(GncRational const&, GncDenom&)
> 0000000000000000 *UND* 0000000000000000 GncRational::operator
> _gnc_numeric() const
> 0000000000000000 *UND* 0000000000000000
> GncRational::mul(GncRational const&, GncDenom&)
> 0000000000000000 *UND* 0000000000000000
> GncRational::div(GncRational, GncDenom&)
> 0000000000000000 *UND* 0000000000000000
> GncRational::round(GncDenom&)
>
>
> Am i doing something obvious wrong?
Trying to use cmake. Even when it works, it doesn't build the whole application.
Use autotools (autogen.sh & configure) instead.
Regards,
John Ralls
More information about the gnucash-devel
mailing list