[GNC] gnucash 3.4 help needed

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[GNC] gnucash 3.4 help needed

devlin
Running Linux Mint 18.3 Cinnamon on this box, and need some help -

Playing with Gnucash 3.4, and from the page at

  [URL="http://https://wiki.gnucash.org/wiki/Building_On_Linux"]https://wiki.gnucash.org/wiki/Building_On_Linux[/URL]

I'm confused by these instructions and commands:

Open a shell and change directory to the directory into which you
extracted the GnuCash sources (gnucash-3.4) or cloned the github
repository (gnucash), i.e. the parent directory of gnucash-3.4 or gnucash.

Build using Cmake and Make

mkdir build-gnucash-3.4 # create the build directory - Note: Named to
identify the source since it is not within the source directory.
cd build-gnucash-3.4 # change into the build directory
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local
-DCMAKE_PREFIX_PATH=$HOME/.local ../gnucash-3.4    # As shown this will
install in the .local directory in /home/<user>.
make # builds the program and associated libraries
make install # prefix with sudo if you do install to /usr/local or /opt
as admin privileges are required.

Cuz that gets an error that confuses me even more:

[CODE]@MainBox /mnt/sdb4/Applications/gnucash-3.4/build-gnucash-3.4 $
cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local
-DCMAKE_PREFIX_PATH=$HOME/.local ../gnucash-3.4
CMake Error: The source directory
"/mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.[CODE]

It says there's supposed to be another directory level called "gnucash-3.4"
If I create that"missing" directory, I just get a longer error:

[CODE]@MainBox
/mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4/build-gnucash-3.4 $ cmake
-DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_PREFIX_PATH=$HOME/.local
../gnucash-3.4
CMake Error: The source directory
"/mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4/gnucash-3.4" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.[/CODE]

Now there's 2 levels missing.

I don't know enough about scripting yet; what am I not getting right here?

Thanks

_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] gnucash 3.4 help needed

Dale Alspach-2
I am no expert but try putting an absolute path to the source directory
in place of ../gnucash-3.4

Dale

On 3/6/19 2:00 PM, devlin wrote:

> Running Linux Mint 18.3 Cinnamon on this box, and need some help -
>
> Playing with Gnucash 3.4, and from the page at
>
>  [URL="http://https://wiki.gnucash.org/wiki/Building_On_Linux"]https://wiki.gnucash.org/wiki/Building_On_Linux[/URL]
>
>
> I'm confused by these instructions and commands:
>
> Open a shell and change directory to the directory into which you
> extracted the GnuCash sources (gnucash-3.4) or cloned the github
> repository (gnucash), i.e. the parent directory of gnucash-3.4 or gnucash.
>
> Build using Cmake and Make
>
> mkdir build-gnucash-3.4 # create the build directory - Note: Named to
> identify the source since it is not within the source directory.
> cd build-gnucash-3.4 # change into the build directory
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local
> -DCMAKE_PREFIX_PATH=$HOME/.local ../gnucash-3.4    # As shown this will
> install in the .local directory in /home/<user>.
> make # builds the program and associated libraries
> make install # prefix with sudo if you do install to /usr/local or /opt
> as admin privileges are required.
>
> Cuz that gets an error that confuses me even more:
>
> [CODE]@MainBox /mnt/sdb4/Applications/gnucash-3.4/build-gnucash-3.4 $
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local
> -DCMAKE_PREFIX_PATH=$HOME/.local ../gnucash-3.4
> CMake Error: The source directory
> "/mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4" does not exist.
> Specify --help for usage, or press the help button on the CMake GUI.[CODE]
>
> It says there's supposed to be another directory level called "gnucash-3.4"
> If I create that"missing" directory, I just get a longer error:
>
> [CODE]@MainBox
> /mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4/build-gnucash-3.4 $ cmake
> -DCMAKE_INSTALL_PREFIX=$HOME/.local -DCMAKE_PREFIX_PATH=$HOME/.local
> ../gnucash-3.4
> CMake Error: The source directory
> "/mnt/sdb4/Applications/gnucash-3.4/gnucash-3.4/gnucash-3.4" does not
> exist.
> Specify --help for usage, or press the help button on the CMake GUI.[/CODE]
>
> Now there's 2 levels missing.
>
> I don't know enough about scripting yet; what am I not getting right here?
>
> Thanks
>
> _______________________________________________
> gnucash-user mailing list
> [hidden email]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] gnucash 3.4 help needed

cicko
In reply to this post by devlin
Hi, Devlin,

Considering you posted in GnuCash Users group, I gotta ask a question - do
you really want to build GnuCash or you just want to run it? Cause there is
now a binary (Flatpak) version available (even though still in testing
stages) but that might be an easier option in case GnuCash is not available
for your distribution.

Cheers,

Alen



--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] gnucash 3.4 help needed

David Cousens
In reply to this post by devlin
Try it without the -DCMAKE_PREFIX_PATH=$HOME/.local switch.
This is only required if you have built the dependencies from source
yourself and installed them in this location rather than in the usual system
directories.

$cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local  ../gnucash-3.4

should do the trick. If any dependencies are missing camke will give error
messages and stop. Install the missing dependency  and repeat the above
until cmake completes.

see https://wiki.gnucash.org/wiki/Dependencies 

and

https://wiki.gnucash.org/wiki/Installing_Dependencies.

David Cousens

If you have any further trouble come back with the error messages cmake
outputs.



-----
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
David Cousens
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] gnucash 3.4 help needed

devlin
Nope.

No matter what I try, I get the error that the "gnucash3.4 directory
does not exist."


On 3/7/19 11:51 PM, David Cousens wrote:
> cmake -DCMAKE_INSTALL_PREFIX=$HOME/.local  ../gnucash-3.4
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
Reply | Threaded
Open this post in threaded view
|

Re: [GNC] gnucash 3.4 help needed

David Cousens
Devlin

OK that error means that cmake is unable to locate the source directory from
the build directory. You would use it in this form if the directory
structure is
                   
                                                        Applications
                                                               |
                                       
--------------------------------------
                                      |                                                
|
                            gnucash-3.4                              
gnucash-3.4-build
                                     |
                             source code

however your directory structure appears to be:
                                                       Applications
                                                               |
                                                        gnucash-3.4
                                                               |
                                   
------------------------------------------
                                    |                                                  
|
                               sources                                    
gnucash-3.4-build

the relative path from gnucash-3.4-build to gnucash-3.4 in this case is
".." not  "../gnucash-3.4".
try
$cmake  -DCMAKE_INSTALL_PREFIX=$HOME/.local  ..

Apologies I should have picked that up earlier but I wasn't looking past the
unneeded directive for the libraries.

David Cousens


                       



-----
David Cousens
--
Sent from: http://gnucash.1415818.n4.nabble.com/GnuCash-User-f1415819.html
_______________________________________________
gnucash-user mailing list
[hidden email]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.
David Cousens