Re: building master

2017-04-23 Thread Alex Aycinena
> -- Forwarded message --
> From: John Ralls <jra...@ceridwen.us>
> To: Alex Aycinena <alex.aycin...@gmail.com>
> Cc: gnucash-devel <gnucash-devel@gnucash.org>
> Bcc:
> Date: Sat, 22 Apr 2017 16:48:05 -0700
> Subject: Re: building master
>
> > On Apr 22, 2017, at 3:47 PM, Alex Aycinena <alex.aycin...@gmail.com>
> wrote:
> >
> >>
>
> 

> So to switch to using cmake with ninja, I installed cmake (which installed
> > cmake-data and jsoncpp, as well) and ninja-build (on Fedora). But from
> your
> > note, it was still unclear to me how to use them. Up to now, I have had
> two
> > parallel directories, for example, gnucash-clean, where the source is
> > checked out to, and gnucash-clean-build, where I build. Then I would:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ git pull
> > $ ./autogen.sh
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ rm -rf *
> > $ ../gnucash-clean/configure
> > --srcdir=/home/gnucash-dev/gitcheckouts/gnucash-clean
> > --prefix=/opt/gnucash-git/gnucash-clean --enable-debug --enable-doxygen
> > --enable-error-on-warning --enable-compile-warnings=yes
> > --with-dbi-dbd-dir=/usr/lib64/dbd --enable-ofx --enable-aqbanking
> > --enable-locale-specific-tax --enable-python
> > $ make
> > $ make check
> >
> > Then after switching to root:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ make install
> >
> > So now I tried instead:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ git pull
> > $ ./autogen.sh   <-- still needed I assumed?
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ rm -rf *
> > cmake -D WITH_PYTHON=ON \
> > -D CMAKE_INSTALL_PREFIX=/opt/gnucash-git/gnucash-clean \
> > -D CMAKE_BUILD_TYPE=Debug \
> > -D WITH_AQBANKING=ON -G Ninja \
> >  /home/gnucash-dev/gitcheckouts/gnucash-clean
> > $ ninja-build
> >
> > It was working away until it stopped with:
> >
> > [166/962] cd
> > /home/gnucash-dev/gitchec...ean/src/doc/design/gnucash-design.texi
> > FAILED: src/doc/design/CMakeFiles/gnucash-design.texi
> > cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/doc/design &&
> > makeinfo -I
> > /home/gnucash-dev/gitcheckouts/gnucash-clean-build/src/doc/design
> > /home/gnucash-dev/gitcheckouts/gnucash-clean/
> src/doc/design/gnucash-design.texi
> > /bin/sh: makeinfo: command not found
> > [168/962] Building CXX object
> > src/libq...Files/gnc-qof.dir/qof/qofsession.cpp.o
> > ninja: build stopped: subcommand failed.
> >
> > Feedback would be welcome.
> >
> > I assume once I get a clean build, then I would:
> >
> > $ ninja-build check
> >
> > Then after switching to root:
> >
> > $ cd /home/gnucash-dev/gitcheckouts/gnucash-clean-build
> > $ ninja-build install
> >
> > Also, what happens to these other configure options I would previously
> set:
> >
> > --enable-doxygen
> > --enable-error-on-warning
> > --enable-compile-warnings=yes
> > --with-dbi-dbd-dir=/usr/lib64/dbd
> > --enable-ofx (I see in CMakeCache.txt that WITH_OFX:BOOL=ON even though I
> > didn't specify it)
> > --enable-locale-specific-tax
>
> Alex,
>
> See https://github.com/Gnucash/gnucash/blob/master/cmake/README_CMAKE.txt.
>
> You don't need or want to autogen. That's autotools and CMake doesn't use
> any of that stuff.
> Pretty much everything is on by default so generally no build options need
> to be set.
>
> The failure suggests that you might not have texinfo installed. We should
> probably just turn off building the obsolete texi files anyway and think
> about removing them.
>
> Regards,
> John Ralls
>
>
>
>
> -- Forwarded message --
> From: Geert Janssens <geert.gnuc...@kobaltwit.be>
> To: gnucash-devel@gnucash.org
> Cc: John Ralls <jra...@ceridwen.us>, Alex Aycinena <
> alex.aycin...@gmail.com>
> Bcc:
> Date: Sun, 23 Apr 2017 12:25:56 +0200
> Subject: Re: building master
> On zondag 23 april 2017 01:48:05 CEST John Ralls wrote:
> > See https://github.com/Gnucash/gnucash/blob/master/cmake/
> README_CMAKE.txt.
> >
>
> Ah, that was the link I should have passed to Wm as well... Thanks for
> referring to it.
>
> Geert
>

John and Geert,

Thanks for the help. I installed texinfo and followed your other
suggestions and got a clean build and check with cmake and ninja so now I'm
back in business.

Alex
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master

2017-04-23 Thread Geert Janssens
On zondag 23 april 2017 01:48:05 CEST John Ralls wrote:
> See https://github.com/Gnucash/gnucash/blob/master/cmake/README_CMAKE.txt.
> 

Ah, that was the link I should have passed to Wm as well... Thanks for 
referring to it.

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master

2017-04-22 Thread John Ralls

> On Apr 22, 2017, at 3:47 PM, Alex Aycinena <alex.aycin...@gmail.com> wrote:
> 
>> 
>> -- Forwarded message --
>> From: Geert Janssens <geert.gnuc...@kobaltwit.be>
>> To: gnucash-devel@gnucash.org, Wm <wm_o_...@yahoo.co.uk>
>> Cc:
>> Bcc:
>> Date: Sat, 22 Apr 2017 14:40:56 +0200
>> Subject: Re: building master
>> On vrijdag 21 april 2017 23:17:31 CEST Wm via gnucash-devel wrote:
>>> On 21/04/2017 19:21, John Ralls wrote:
>>>> Alex,
>>>> 
>>>> 
>>>> Looks like autotools picked the wrong compiler for a C++ object. See
>>>> http://stackoverflow.com/questions/6045809/link-error-
>> undefined-reference
>>>> -to-gxx-personality-v0-and-g. Geert and I have both switched to cmake &
>>>> ninja-build; there's no issue there so it might be a typo in that
>>>> directory's Makefile.am.
>>>> 
>>>> On the other hand Geert just merged his C++ rewrite of
>>>> src/import-export/imp-csv, so if you have installed libs that are
>> getting
>>>> linked in that could cause the error too.
>>> I've had intermittent difficulty with builds too recently but haven't
>>> said anything because I'm not building gnc for any particular purpose.
>>> 
>> What errors do you see Wm ?
>> 
>>> I have noticed the cmake / ninja combo has been mentioned more than one
>>> recently here.
>>> 
>>> Should others that build-because-we-do-it-anyway be switching and is
>>> there a suggested "start reading here" ref you could suggest?
>>> 
>> We have a wiki page on CMake [1]. It's been written quite some time ago,
>> but it still looks like a
>> good starting point. At that time ninja wasn't written yet so that
>> information is currently missing.
>> 
>> In short cmake replaces automake/autoconf and the configuration script
>> that's generated by
>> those. It will produce build recipes for different build systems. The wiki
>> page explains how to
>> make these recipes for the gnu-make build system (which is the only build
>> system supported by
>> automake/autoconf by the way). So using cmake like this will generate
>> Makefile files which can
>> be used just like before by running make, make install, make check,...
>> 
>> Ninja on the other hand is an alternative for gnu-make with a strong focus
>> on parallellizing the
>> build as much as possible, and as such utilizing your typical multi-core
>> cpu much more
>> efficiently. The commands to use it are similar to gnu-make:
>> make -> ninja (or ninja-build)
>> make install -> ninja (or ninja-build) install
>> make check -> ninja (or ninja-build) check
>> 
>> I'm writing "ninja (or ninja-build)" because the name of the command
>> depends on your OS. On
>> Windows it's "ninja", on Fedora it's "ninja-build". Oh, well...
>> 
>> To instruct cmake to set up for ninja instead of gnu-make, you invoke
>> cmake with "-G Ninja"
>> added to the options. As an example my current cmake command looks like
>> this:
>> cmake -D WITH_PYTHON=ON \
>> -D CMAKE_INSTALL_PREFIX= \
>> -DCMAKE_BUILD_TYPE=Debug -DWITH_AQBANKING=ON -G Ninja \
>> 
>> 
>> 
>> 
>> After that short intro, a few words on where to go next: because of the
>> better performance and
>> greater flexibility in build system support (even Ms Visual Studio is
>> supported by cmake), we are
>> seriously considering to switch to cmake in favor of autotools at some
>> point.
>> 
>> We won't do so for the stable 2.6 series (although even that builds fine
>> with cmake/ninja
>> already; the combo is in active use for our Windows nightly builds). For
>> the upcoming 2.8
>> though it's very likely we will formally switch to cmake. There are a few
>> release related details
>> which still need to be ported to cmake before that switch can be complete
>> though.
>> 
>> So for now we're formally supporting autotools/gnu-make and informally
>> cmake/ in
>> which John and I currently prefer  to be ninja for its
>> performance.
>> 
>>> I'm building on Ubuntu LTS if it matters ... and it shouldn't really
>>> matter as I'm just building to keep in touch.
>> 
>> You didn't mention which LTS edition. However on my 14.04LTS ninja is
>> already available, so I
>> expect it to be in 16.04 as well.
>> 
>> Regards,
>> 
>> Geert
>> 
>> [1] http:/

Re: building master

2017-04-22 Thread Alex Aycinena
>
> -- Forwarded message --
> From: Geert Janssens <geert.gnuc...@kobaltwit.be>
> To: gnucash-devel@gnucash.org, Wm <wm_o_...@yahoo.co.uk>
> Cc:
> Bcc:
> Date: Sat, 22 Apr 2017 14:40:56 +0200
> Subject: Re: building master
> On vrijdag 21 april 2017 23:17:31 CEST Wm via gnucash-devel wrote:
> > On 21/04/2017 19:21, John Ralls wrote:
> > > Alex,
> > >
> > >
> > > Looks like autotools picked the wrong compiler for a C++ object. See
> > > http://stackoverflow.com/questions/6045809/link-error-
> undefined-reference
> > > -to-gxx-personality-v0-and-g. Geert and I have both switched to cmake &
> > > ninja-build; there's no issue there so it might be a typo in that
> > > directory's Makefile.am.
> > >
> > > On the other hand Geert just merged his C++ rewrite of
> > > src/import-export/imp-csv, so if you have installed libs that are
> getting
> > > linked in that could cause the error too.
> > I've had intermittent difficulty with builds too recently but haven't
> > said anything because I'm not building gnc for any particular purpose.
> >
> What errors do you see Wm ?
>
> > I have noticed the cmake / ninja combo has been mentioned more than one
> > recently here.
> >
> > Should others that build-because-we-do-it-anyway be switching and is
> > there a suggested "start reading here" ref you could suggest?
> >
> We have a wiki page on CMake [1]. It's been written quite some time ago,
> but it still looks like a
> good starting point. At that time ninja wasn't written yet so that
> information is currently missing.
>
> In short cmake replaces automake/autoconf and the configuration script
> that's generated by
> those. It will produce build recipes for different build systems. The wiki
> page explains how to
> make these recipes for the gnu-make build system (which is the only build
> system supported by
> automake/autoconf by the way). So using cmake like this will generate
> Makefile files which can
> be used just like before by running make, make install, make check,...
>
> Ninja on the other hand is an alternative for gnu-make with a strong focus
> on parallellizing the
> build as much as possible, and as such utilizing your typical multi-core
> cpu much more
> efficiently. The commands to use it are similar to gnu-make:
> make -> ninja (or ninja-build)
> make install -> ninja (or ninja-build) install
> make check -> ninja (or ninja-build) check
>
> I'm writing "ninja (or ninja-build)" because the name of the command
> depends on your OS. On
> Windows it's "ninja", on Fedora it's "ninja-build". Oh, well...
>
> To instruct cmake to set up for ninja instead of gnu-make, you invoke
> cmake with "-G Ninja"
> added to the options. As an example my current cmake command looks like
> this:
> cmake -D WITH_PYTHON=ON \
>  -D CMAKE_INSTALL_PREFIX= \
>  -DCMAKE_BUILD_TYPE=Debug -DWITH_AQBANKING=ON -G Ninja \
>  
>
>
>
> After that short intro, a few words on where to go next: because of the
> better performance and
> greater flexibility in build system support (even Ms Visual Studio is
> supported by cmake), we are
> seriously considering to switch to cmake in favor of autotools at some
> point.
>
> We won't do so for the stable 2.6 series (although even that builds fine
> with cmake/ninja
> already; the combo is in active use for our Windows nightly builds). For
> the upcoming 2.8
> though it's very likely we will formally switch to cmake. There are a few
> release related details
> which still need to be ported to cmake before that switch can be complete
> though.
>
> So for now we're formally supporting autotools/gnu-make and informally
> cmake/ in
> which John and I currently prefer  to be ninja for its
> performance.
>
> > I'm building on Ubuntu LTS if it matters ... and it shouldn't really
> > matter as I'm just building to keep in touch.
>
> You didn't mention which LTS edition. However on my 14.04LTS ninja is
> already available, so I
> expect it to be in 16.04 as well.
>
> Regards,
>
> Geert
>
> [1] http://wiki.gnucash.org/wiki/CMake
>
>
So to switch to using cmake with ninja, I installed cmake (which installed
cmake-data and jsoncpp, as well) and ninja-build (on Fedora). But from your
note, it was still unclear to me how to use them. Up to now, I have had two
parallel directories, for example, gnucash-clean, where the source is
checked out to, and gnucash-clean-build, where I build. Then I would:

$ cd /home/gnucash-dev/gitcheckouts/gnucash-clean
$ git pull
$ ./autogen.sh
$ cd /home/gnucash-dev/gi

Re: building master

2017-04-22 Thread Geert Janssens
On vrijdag 21 april 2017 23:17:31 CEST Wm via gnucash-devel wrote:
> On 21/04/2017 19:21, John Ralls wrote:
> > Alex,
> > 
> > 
> > Looks like autotools picked the wrong compiler for a C++ object. See
> > http://stackoverflow.com/questions/6045809/link-error-undefined-reference
> > -to-gxx-personality-v0-and-g. Geert and I have both switched to cmake &
> > ninja-build; there's no issue there so it might be a typo in that
> > directory's Makefile.am.
> > 
> > On the other hand Geert just merged his C++ rewrite of
> > src/import-export/imp-csv, so if you have installed libs that are getting
> > linked in that could cause the error too.
> I've had intermittent difficulty with builds too recently but haven't
> said anything because I'm not building gnc for any particular purpose.
> 
What errors do you see Wm ?

> I have noticed the cmake / ninja combo has been mentioned more than one
> recently here.
> 
> Should others that build-because-we-do-it-anyway be switching and is
> there a suggested "start reading here" ref you could suggest?
> 
We have a wiki page on CMake [1]. It's been written quite some time ago, but it 
still looks like a 
good starting point. At that time ninja wasn't written yet so that information 
is currently missing.

In short cmake replaces automake/autoconf and the configuration script that's 
generated by 
those. It will produce build recipes for different build systems. The wiki page 
explains how to 
make these recipes for the gnu-make build system (which is the only build 
system supported by 
automake/autoconf by the way). So using cmake like this will generate Makefile 
files which can 
be used just like before by running make, make install, make check,...

Ninja on the other hand is an alternative for gnu-make with a strong focus on 
parallellizing the 
build as much as possible, and as such utilizing your typical multi-core cpu 
much more 
efficiently. The commands to use it are similar to gnu-make:
make -> ninja (or ninja-build)
make install -> ninja (or ninja-build) install
make check -> ninja (or ninja-build) check

I'm writing "ninja (or ninja-build)" because the name of the command depends on 
your OS. On 
Windows it's "ninja", on Fedora it's "ninja-build". Oh, well...

To instruct cmake to set up for ninja instead of gnu-make, you invoke cmake 
with "-G Ninja" 
added to the options. As an example my current cmake command looks like this:
cmake -D WITH_PYTHON=ON \
 -D CMAKE_INSTALL_PREFIX= \
 -DCMAKE_BUILD_TYPE=Debug -DWITH_AQBANKING=ON -G Ninja \
 



After that short intro, a few words on where to go next: because of the better 
performance and 
greater flexibility in build system support (even Ms Visual Studio is supported 
by cmake), we are 
seriously considering to switch to cmake in favor of autotools at some point.

We won't do so for the stable 2.6 series (although even that builds fine with 
cmake/ninja 
already; the combo is in active use for our Windows nightly builds). For the 
upcoming 2.8 
though it's very likely we will formally switch to cmake. There are a few 
release related details 
which still need to be ported to cmake before that switch can be complete 
though.

So for now we're formally supporting autotools/gnu-make and informally 
cmake/ in 
which John and I currently prefer  to be ninja for its performance.

> I'm building on Ubuntu LTS if it matters ... and it shouldn't really
> matter as I'm just building to keep in touch.

You didn't mention which LTS edition. However on my 14.04LTS ninja is already 
available, so I 
expect it to be in 16.04 as well.

Regards,

Geert

[1] http://wiki.gnucash.org/wiki/CMake
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master

2017-04-22 Thread Geert Janssens
On vrijdag 21 april 2017 20:21:39 CEST John Ralls wrote:
> > On Apr 21, 2017, at 10:00 AM, Alex Aycinena 
> > wrote:
> > 
> > Hi,
> > 
> > I have been unable to spend any time on gnucash for several weeks but am
> > about to get started again. I checked out master anew but when I tried to
> > build it, I get:
> > 
> > /usr/bin/ld:
> > ../../../src/engine/test-core/.libs/libgncmod-test-engine.a(test-engine-st
> > uff.o): undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
> > /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command
> > line
> > collect2: error: ld returned 1 exit status
> > Makefile:839: recipe for target 'test-import-pending-matches' failed
> > make[4]: *** [test-import-pending-matches] Error 1
> > make[4]: Leaving directory
> > '/home/gnucash-dev/gitcheckouts/gnucash-clean-new-build/src/import-export/
> > test'
> > 
> > This is on Fedora 25 and I know Geert does his development on Fedora. Is
> > anybody else seeing this? Is there a new dependency that has been added
> > that I missed?
> 
> Alex,
> 
> 
> Looks like autotools picked the wrong compiler for a C++ object. See
> http://stackoverflow.com/questions/6045809/link-error-undefined-reference-t
> o-gxx-personality-v0-and-g. Geert and I have both switched to cmake &
> ninja-build; there's no issue there so it might be a typo in that
> directory's Makefile.am.
> 
It doesn't look like a cmake vs autotools issue. I have rebuilt a clean 
checkout with autotools this morning and didn't run into the above. I had to 
set an environment variable TZ to "America/Los_Angeles" to get test-gnc-
datetime to pass, but with current master I have to do this as well with 
cmake/ninja.

> On the other hand Geert just merged his C++ rewrite of
> src/import-export/imp-csv, so if you have installed libs that are getting
> linked in that could cause the error too.

I didn't test this. I have no system install of gnucash right now.

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master

2017-04-21 Thread Wm via gnucash-devel
On 21/04/2017 19:21, John Ralls wrote:
> Alex,
> 
> 
> Looks like autotools picked the wrong compiler for a C++ object. See 
> http://stackoverflow.com/questions/6045809/link-error-undefined-reference-to-gxx-personality-v0-and-g.
>  Geert and I have both switched to cmake & ninja-build; there's no issue 
> there so it might be a typo in that directory's Makefile.am.
> 
> On the other hand Geert just merged his C++ rewrite of 
> src/import-export/imp-csv, so if you have installed libs that are getting 
> linked in that could cause the error too.

I've had intermittent difficulty with builds too recently but haven't
said anything because I'm not building gnc for any particular purpose.

I have noticed the cmake / ninja combo has been mentioned more than one
recently here.

Should others that build-because-we-do-it-anyway be switching and is
there a suggested "start reading here" ref you could suggest?

I'm building on Ubuntu LTS if it matters ... and it shouldn't really
matter as I'm just building to keep in touch.

-- 
Wm


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master

2017-04-21 Thread John Ralls

> On Apr 21, 2017, at 10:00 AM, Alex Aycinena  wrote:
> 
> Hi,
> 
> I have been unable to spend any time on gnucash for several weeks but am
> about to get started again. I checked out master anew but when I tried to
> build it, I get:
> 
> /usr/bin/ld:
> ../../../src/engine/test-core/.libs/libgncmod-test-engine.a(test-engine-stuff.o):
> undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
> /usr/lib64/libstdc++.so.6: error adding symbols: DSO missing from command
> line
> collect2: error: ld returned 1 exit status
> Makefile:839: recipe for target 'test-import-pending-matches' failed
> make[4]: *** [test-import-pending-matches] Error 1
> make[4]: Leaving directory
> '/home/gnucash-dev/gitcheckouts/gnucash-clean-new-build/src/import-export/test'
> 
> This is on Fedora 25 and I know Geert does his development on Fedora. Is
> anybody else seeing this? Is there a new dependency that has been added
> that I missed?

Alex,


Looks like autotools picked the wrong compiler for a C++ object. See 
http://stackoverflow.com/questions/6045809/link-error-undefined-reference-to-gxx-personality-v0-and-g.
 Geert and I have both switched to cmake & ninja-build; there's no issue there 
so it might be a typo in that directory's Makefile.am.

On the other hand Geert just merged his C++ rewrite of 
src/import-export/imp-csv, so if you have installed libs that are getting 
linked in that could cause the error too.

Regards,
John Ralls

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master with boost

2014-11-03 Thread Aaron Laws
On Sat, Nov 1, 2014 at 2:42 PM, Carsten Rinke carsten.ri...@gmx.de wrote:

 Hi,

 to check if some front-porting is working, I tried to compile on the
 master branch - for the first time.

 It told me that boost is missing:

 checking for boostlib = 1.48.0... configure: We could not detect the
 boost libraries (version 1.48 or higher). If you have a staged boost
 library (still not installed) please specify $BOOST_ROOT in your
 environment and do not give a PATH to --with-boost option.  If you are sure
 you have boost installed, then check your version number looking in
 boost/version.hpp. See http://randspringer.de/boost for more
 documentation.
 configure: error: Boost 1.48.0 or later was not found and is required to
 build GnuCash

 So I downloaded Boost 1.56.0 into /opt/lib/boost/boost_1_56_0.

 Running configure with an environment variable
 echo $BOOST_ROOT - /opt/lib/boost/boost_1_56_0
 does not change anything.

 Running configure with
 --with-boost /opt/lib/boost/boost_1_56_0
 results in:
 checking build system type... Invalid configuration
 `/opt/lib/boost/boost_1_56_0': machine `/opt/lib/boost/boost_1_56_0' not
 recognized
 configure: error: /bin/bash ../config.sub /opt/lib/boost/boost_1_56_0
 failed

 What can I do?

 Kind regards,
 Carsten
 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel



I do a similar thing, and here is what I pass to configure:

./configure --with-boost=/home/lmat/builds/development

(I trimmed out a dozen lines, but this should get to the gist of the
matter.)

I built boost with

#!/bin/bash
cd boostsvn
./bootstrap.sh --prefix=/home/lmat/builds/development
./b2 install

I don't set BOOST_ROOT. Hopefully this helps?

In Christ,
Aaron Laws
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master with boost

2014-11-03 Thread Carsten Rinke

Thanks for all feedback.

Finally I managed:
- I installed the library with the help from John and Aaron
- and I also used the = as indicated by Geert.

- Works all fine now :-)

Carsten

On 03.11.2014 16:50, Aaron Laws wrote:
On Sat, Nov 1, 2014 at 2:42 PM, Carsten Rinke carsten.ri...@gmx.de 
mailto:carsten.ri...@gmx.de wrote:


Hi,

to check if some front-porting is working, I tried to compile on
the master branch - for the first time.

It told me that boost is missing:

checking for boostlib = 1.48.0... configure: We could not detect
the boost libraries (version 1.48 or higher). If you have a staged
boost library (still not installed) please specify $BOOST_ROOT in
your environment and do not give a PATH to --with-boost option. 
If you are sure you have boost installed, then check your version

number looking in boost/version.hpp. See
http://randspringer.de/boost for more documentation.
configure: error: Boost 1.48.0 or later was not found and is
required to build GnuCash

So I downloaded Boost 1.56.0 into /opt/lib/boost/boost_1_56_0.

Running configure with an environment variable
echo $BOOST_ROOT - /opt/lib/boost/boost_1_56_0
does not change anything.

Running configure with
--with-boost /opt/lib/boost/boost_1_56_0
results in:
checking build system type... Invalid configuration
`/opt/lib/boost/boost_1_56_0': machine
`/opt/lib/boost/boost_1_56_0' not recognized
configure: error: /bin/bash ../config.sub
/opt/lib/boost/boost_1_56_0 failed

What can I do?

Kind regards,
Carsten
___
gnucash-devel mailing list
gnucash-devel@gnucash.org mailto:gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel



I do a similar thing, and here is what I pass to configure:

./configure --with-boost=/home/lmat/builds/development

(I trimmed out a dozen lines, but this should get to the gist of the 
matter.)


I built boost with

#!/bin/bash
cd boostsvn
./bootstrap.sh --prefix=/home/lmat/builds/development
./b2 install

I don't set BOOST_ROOT. Hopefully this helps?

In Christ,
Aaron Laws


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master with boost

2014-11-01 Thread John Ralls

On Nov 1, 2014, at 11:42 AM, Carsten Rinke carsten.ri...@gmx.de wrote:

 Hi,
 
 to check if some front-porting is working, I tried to compile on the master 
 branch - for the first time.
 
 It told me that boost is missing:
 
 checking for boostlib = 1.48.0... configure: We could not detect the boost 
 libraries (version 1.48 or higher). If you have a staged boost library (still 
 not installed) please specify $BOOST_ROOT in your environment and do not give 
 a PATH to --with-boost option.  If you are sure you have boost installed, 
 then check your version number looking in boost/version.hpp. See 
 http://randspringer.de/boost for more documentation.
 configure: error: Boost 1.48.0 or later was not found and is required to 
 build GnuCash
 
 So I downloaded Boost 1.56.0 into /opt/lib/boost/boost_1_56_0.
 
 Running configure with an environment variable
 echo $BOOST_ROOT - /opt/lib/boost/boost_1_56_0
 does not change anything.
 
 Running configure with
 --with-boost /opt/lib/boost/boost_1_56_0
 results in:
 checking build system type... Invalid configuration 
 `/opt/lib/boost/boost_1_56_0': machine `/opt/lib/boost/boost_1_56_0' not 
 recognized
 configure: error: /bin/bash ../config.sub /opt/lib/boost/boost_1_56_0 failed
 
 What can I do?

Read http://www.boost.org/doc/libs/release/more/getting_started/index.html.

Study macros/m4_ax_boost_base.m4 to see what causes that error message and what 
configure is looking for, then make sure that you installed boost in a way that 
it finds it.

Did you build boost or just untar it in that directory?

Regards,
John Ralls




___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: building master with boost

2014-11-01 Thread Geert Janssens
On Saturday 01 November 2014 19:42:59 Carsten Rinke wrote:
 Hi,
 
 to check if some front-porting is working, I tried to compile on the
 master branch - for the first time.
 
 It told me that boost is missing:
 
 checking for boostlib = 1.48.0... configure: We could not detect the
 boost libraries (version 1.48 or higher). If you have a staged boost
 library (still not installed) please specify $BOOST_ROOT in your
 environment and do not give a PATH to --with-boost option.  If you are
 sure you have boost installed, then check your version number looking
 in boost/version.hpp. See http://randspringer.de/boost for more
 documentation.
 configure: error: Boost 1.48.0 or later was not found and is required
 to build GnuCash
 
 So I downloaded Boost 1.56.0 into /opt/lib/boost/boost_1_56_0.
 
 Running configure with an environment variable
 echo $BOOST_ROOT - /opt/lib/boost/boost_1_56_0
 does not change anything.
 
 Running configure with
 --with-boost /opt/lib/boost/boost_1_56_0
 results in:
 checking build system type... Invalid configuration
 `/opt/lib/boost/boost_1_56_0': machine `/opt/lib/boost/boost_1_56_0'
 not recognized
 configure: error: /bin/bash ../config.sub /opt/lib/boost/boost_1_56_0
 failed
 
 What can I do?
Would
--with-boost=/opt/lib/boost/boost_1_56_0
work ? It seems to me there should be an = sign after the option.

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel