Re: gtk3 and gnucash
On Wed, Feb 18, 2015 at 5:59 PM, John Ralls jra...@ceridwen.us wrote: On Feb 18, 2015, at 10:26 AM, Sriram Ramkrishna s...@ramkrishna.me wrote: I was doing some searching around and I spotted this thread: http://gnucash.1415818.n4.nabble.com/Future-programming-language-td4668935.html I was wondering if you were aware of the recent win32 improvements that have been made in win32 space? Paolo and others have done a lot of work in this space. We would of course love to see a gtk3 port of GNUCash which the GNOME Foundation uses to manage its finances as I'm sure a lot of other software projects who manage money do as well. That's very unlikely any time soon. GnuCash is a bit of a mess, with really bad MVC separation and some poor implementation decisions in the core that contains the business logic. All of that needs to be cleaned up before we can safely migrate to Gtk3. OK, thanks for the update! As for win32 improvements, no, I haven't seen anything to support that there are any. The latest binaries on www.gtk.org are 3.6, which Tarnyko did 2 years ago. There aren't any gtk3 binaries at all on master.gnome.org, only gtk2 ones from 4 years ago. I see a whopping 8 commits this year in gdk/win32. We are working on doing some improvements. You can read Matthias'sblog on the new theme which has support for win32 http://blogs.gnome.org/mclasen/2014/06/13/a-new-default-theme-for-gtk/ is one of many. So some focus on GTK+ and other platforms. I understand that you've worked on an OSX version at some point? BTW, after the email exchange that you cited Robert did continue on the GtkTreeView implementation of the register, but he wasn't able to make it stable and gave up. We're still stuck with the 12-year-old implementation based on libgnomecanvas. I'm pretty sure that could be updated to draw directly on a cairo context once someone motivates himself to do it, but there's so much other work that no one has yet taken it on... not that that would move us any closer to Gtk3. OK, that's unfortunate.. Please in future address correspondence about GnuCash development to our developer's mailing list rather than to an individual developer. Will do. I'll also invite developers to come to GUADEC, as that is going to be the best place to create relationships and air out some of the issues. Thanks for your response, they were helpful. Kind regards, Sri Ramkrishna Director, GNOME Foundation / Engagement Team ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: gtk3 and gnucash
Hi John! I understand from your reply that the win32 port is not your top priority, but I wanted to point out some things about the current state of gtk on Windows. On Thu, Feb 19, 2015 at 2:59 AM, John Ralls jra...@ceridwen.us wrote: As for win32 improvements, no, I haven't seen anything to support that there are any. The latest binaries on www.gtk.org are 3.6, which Tarnyko did 2 years ago. There aren't any gtk3 binaries at all on master.gnome.org, only gtk2 ones from 4 years ago. I see a whopping 8 commits this year in gdk/win32. I agree that it is unfortunate that we do not have a proper win32 page on the site, but I can assure you that the win32 port made huge progress: most of the fixes are not in the gdk backend which is pretty self contained, but in individual widgets and underlying libraries. We are using glib 2.42 gtk 3.14 successfully on Windows. The lack of standardization on www.gtk.org is also due to the fact that there are a few different approaches to use gtk on Windows, depending on your goal and tools: 1) If you are cross compiling, fedora provides updated binaries of the whole stack and I am pretty sure other distros have similar packages. The downside of these binaries is that they are built with a runtime dependencies on the GNU toolchain, so they cannot be used for interoperability with MSVC 2) MSYS2 has updated binaries and provides a very efficient way to build your gtk app on windows with mingw. http://blogs.gnome.org/nacho/2014/08/01/how-to-build-your-gtk-application-on-windows/ has more information and you can see from https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-gtk3 that things are kept up to date. Incidentally msys2 provides binary builds of a lot of other libraries as you can see from that repository and it is also relatively easy to extract these libraries and use them with MSVC 3) In case you prefer/need to use MSVC (e.g. you already build your application with MSVC and you want to be able to easily step into glib/gtk functions when debugging), we are working on a powershell script that builds the whole gtk3 stack at https://github.com/nice-software/gtk-win32 based on the similar script made by the hexchat developers for gtk2 at https://hexchat.github.io/gtk-win32/ I hope that helps, and if anyone listening wants to help with the port, all patches are more than welcome. Ciao, Paolo ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
I want to learn how to customize reports
I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . I goggled that and got to this page: ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81.html#SEC87 That page tells me I need RScheme. I goggled that finally downloaded this. rs-0.7.3.4-b7.tar.gz I used 7 Zip to unpack that and now have a folder in my downloads rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in there. What do I do with those files and folders? How do I install RScheme.? Is there someplace I can go to get an exe file to install? Is that even what I need for a Windows 7 64x system? If not what do I need to follow the tutorials on scheme.? I did download and install this mit-scheme-9.2-i386-win32 but I can not figure out what to do with it and was not sure it is what I need so I uninstalled it. I am off to a rocky start. Hahaha! Thanks ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: I want to learn how to customize reports
I had Cygwin downloaded and installed and the Guile package installed also and was trying to figure out how to use it when I got the next few messages that said to use the command prompt and type in those two lines. I had to modify them to this for them to work SET GUILE_LOAD_PATH=%ProgramFiles(x86)%\gnucash\share\guile\1.8 %ProgramFiles(x86)%\gnucash\bin\guile.exe Then I went to the tutorial site and typed in items as directed. I attach a screen shot of the results. Looks like it works. Since there is only one user account on my computer right now, should I uninstall Cygwin64 from the computer? I do not need it for anything right now as far as I can tell. On Thu, Feb 19, 2015 at 8:05 AM, Geert Janssens geert.gnuc...@kobaltwit.be wrote: On Thursday 19 February 2015 14:03:51 Geert Janssens wrote: On Thursday 19 February 2015 16:23:14 Dmitry Pavlov wrote: GnuCash uses guile as a scheme impl. Indeed, gnucash uses guile. So you probably want to work with that because each implementation speaks a different dialect. The downside is that guile is not a windows native package. So when you install gnucash it works well from within gnucash, but it's less obvious how to use it independently of gnucash. Here is one way you could do it: - Open a command prompt (cmd.exe) - Type SET GUILE_LOAD_PATH=%ProgramFiles%\gnucash\share\guile\1.8 %ProgramFiles%\gnucash\bin\guile.exe Eh sorry, that second command needs quotes: %ProgramFiles%\gnucash\bin\guile.exe Geert The first command makes sure guile finds all of its modules, the second will start an interactive guile session. I think you should better try to install cygwin and then install guile for it, using it's package management feature. Be careful with installing gnucash and cygwin under the same user account. From past reports it looks like this is a recipe for crashes in gnucash. If you want to go the cygwin route, please install it under a separate user account on your pc, and make sure it doesn't install for all users. As an alternative you can run Ubuntu in virtual maching (virtual box for example) That would also be an option. Good luck, Geert 2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com: I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . I goggled that and got to this page: ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81 .h tml#SEC87 That page tells me I need RScheme. I goggled that finally downloaded this. rs-0.7.3.4-b7.tar.gz I used 7 Zip to unpack that and now have a folder in my downloads rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in there. What do I do with those files and folders? How do I install RScheme.? Is there someplace I can go to get an exe file to install? Is that even what I need for a Windows 7 64x system? If not what do I need to follow the tutorials on scheme.? I did download and install this mit-scheme-9.2-i386-win32 but I can not figure out what to do with it and was not sure it is what I need so I uninstalled it. I am off to a rocky start. Hahaha! Thanks ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: I want to learn how to customize reports
GnuCash uses guile as a scheme impl. I think you should better try to install cygwin and then install guile for it, using it's package management feature. As an alternative you can run Ubuntu in virtual maching (virtual box for example) 2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com: I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . I goggled that and got to this page: ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81.html#SEC87 That page tells me I need RScheme. I goggled that finally downloaded this. rs-0.7.3.4-b7.tar.gz I used 7 Zip to unpack that and now have a folder in my downloads rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in there. What do I do with those files and folders? How do I install RScheme.? Is there someplace I can go to get an exe file to install? Is that even what I need for a Windows 7 64x system? If not what do I need to follow the tutorials on scheme.? I did download and install this mit-scheme-9.2-i386-win32 but I can not figure out what to do with it and was not sure it is what I need so I uninstalled it. I am off to a rocky start. Hahaha! Thanks ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel -- С уважением, Дмитрий Павлов ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: I want to learn how to customize reports
On Thursday 19 February 2015 16:23:14 Dmitry Pavlov wrote: GnuCash uses guile as a scheme impl. Indeed, gnucash uses guile. So you probably want to work with that because each implementation speaks a different dialect. The downside is that guile is not a windows native package. So when you install gnucash it works well from within gnucash, but it's less obvious how to use it independently of gnucash. Here is one way you could do it: - Open a command prompt (cmd.exe) - Type SET GUILE_LOAD_PATH=%ProgramFiles%\gnucash\share\guile\1.8 %ProgramFiles%\gnucash\bin\guile.exe The first command makes sure guile finds all of its modules, the second will start an interactive guile session. I think you should better try to install cygwin and then install guile for it, using it's package management feature. Be careful with installing gnucash and cygwin under the same user account. From past reports it looks like this is a recipe for crashes in gnucash. If you want to go the cygwin route, please install it under a separate user account on your pc, and make sure it doesn't install for all users. As an alternative you can run Ubuntu in virtual maching (virtual box for example) That would also be an option. Good luck, Geert 2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com: I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . I goggled that and got to this page: ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81.h tml#SEC87 That page tells me I need RScheme. I goggled that finally downloaded this. rs-0.7.3.4-b7.tar.gz I used 7 Zip to unpack that and now have a folder in my downloads rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in there. What do I do with those files and folders? How do I install RScheme.? Is there someplace I can go to get an exe file to install? Is that even what I need for a Windows 7 64x system? If not what do I need to follow the tutorials on scheme.? I did download and install this mit-scheme-9.2-i386-win32 but I can not figure out what to do with it and was not sure it is what I need so I uninstalled it. I am off to a rocky start. Hahaha! Thanks ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: I want to learn how to customize reports
On Thursday 19 February 2015 14:03:51 Geert Janssens wrote: On Thursday 19 February 2015 16:23:14 Dmitry Pavlov wrote: GnuCash uses guile as a scheme impl. Indeed, gnucash uses guile. So you probably want to work with that because each implementation speaks a different dialect. The downside is that guile is not a windows native package. So when you install gnucash it works well from within gnucash, but it's less obvious how to use it independently of gnucash. Here is one way you could do it: - Open a command prompt (cmd.exe) - Type SET GUILE_LOAD_PATH=%ProgramFiles%\gnucash\share\guile\1.8 %ProgramFiles%\gnucash\bin\guile.exe Eh sorry, that second command needs quotes: %ProgramFiles%\gnucash\bin\guile.exe Geert The first command makes sure guile finds all of its modules, the second will start an interactive guile session. I think you should better try to install cygwin and then install guile for it, using it's package management feature. Be careful with installing gnucash and cygwin under the same user account. From past reports it looks like this is a recipe for crashes in gnucash. If you want to go the cygwin route, please install it under a separate user account on your pc, and make sure it doesn't install for all users. As an alternative you can run Ubuntu in virtual maching (virtual box for example) That would also be an option. Good luck, Geert 2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com: I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . I goggled that and got to this page: ftp://ftp.cs.utexas.edu/pub/garbage/cs345/schintro-v14/schintro_81 .h tml#SEC87 That page tells me I need RScheme. I goggled that finally downloaded this. rs-0.7.3.4-b7.tar.gz I used 7 Zip to unpack that and now have a folder in my downloads rs-0.7.3.4-b7.tar and I can use 7 Zip to open that and see the files in there. What do I do with those files and folders? How do I install RScheme.? Is there someplace I can go to get an exe file to install? Is that even what I need for a Windows 7 64x system? If not what do I need to follow the tutorials on scheme.? I did download and install this mit-scheme-9.2-i386-win32 but I can not figure out what to do with it and was not sure it is what I need so I uninstalled it. I am off to a rocky start. Hahaha! Thanks ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: gtk3 and gnucash
On Thursday 19 February 2015 07:40:28 John Ralls wrote: On Feb 19, 2015, at 12:36 AM, Paolo Borelli paolo.bore...@gmail.com wrote: Hi John! I understand from your reply that the win32 port is not your top priority, but I wanted to point out some things about the current state of gtk on Windows. On Thu, Feb 19, 2015 at 2:59 AM, John Ralls jra...@ceridwen.us wrote: As for win32 improvements, no, I haven't seen anything to support that there are any. The latest binaries on www.gtk.org are 3.6, which Tarnyko did 2 years ago. There aren't any gtk3 binaries at all on master.gnome.org, only gtk2 ones from 4 years ago. I see a whopping 8 commits this year in gdk/win32. I agree that it is unfortunate that we do not have a proper win32 page on the site, but I can assure you that the win32 port made huge progress: most of the fixes are not in the gdk backend which is pretty self contained, but in individual widgets and underlying libraries. We are using glib 2.42 gtk 3.14 successfully on Windows. The lack of standardization on www.gtk.org is also due to the fact that there are a few different approaches to use gtk on Windows, depending on your goal and tools: 1) If you are cross compiling, fedora provides updated binaries of the whole stack and I am pretty sure other distros have similar packages. The downside of these binaries is that they are built with a runtime dependencies on the GNU toolchain, so they cannot be used for interoperability with MSVC 2) MSYS2 has updated binaries and provides a very efficient way to build your gtk app on windows with mingw. http://blogs.gnome.org/nacho/2014/08/01/how-to-build-your-gtk-applic ation-on-windows/ has more information and you can see from https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-gtk3 that things are kept up to date. Incidentally msys2 provides binary builds of a lot of other libraries as you can see from that repository and it is also relatively easy to extract these libraries and use them with MSVC 3) In case you prefer/need to use MSVC (e.g. you already build your application with MSVC and you want to be able to easily step into glib/gtk functions when debugging), we are working on a powershell script that builds the whole gtk3 stack at https://github.com/nice-software/gtk-win32 based on the similar script made by the hexchat developers for gtk2 at https://hexchat.github.io/gtk-win32/ I hope that helps, and if anyone listening wants to help with the port, all patches are more than welcome. Paolo, Thanks for the update. As for most cross-platform applications Win32 is the choice of most of our users, so it's rather critical that we're able to install or build not just Gtk but all of our many other dependencies for Win32. Gcc and Gnu make are quite slow on Windows so we prefer to install when that's possible. GnuCash uses MinGW/MSys running on Windows for its Win32 build environment. Another developer, Geert Janssens, did a major rewrite of the build scripts a year ago to update them from MinGW-11 to the current version. IIRC he investigated MinGW64/Msys2 at that time and found that it wasn't suitable, but I don't remember why. That's not completely correct. I intended to investigate MingW64/Msys2 but due to lack of time I never got further than superficially looking into it. I hoped to continue this at a later time, which so far hasn't happened yet. Meanwhile irc user nacho_ posted a few interesting links [1] that may help in getting gnucash built under mingw64/Msys2. Yet another, Christian Stimming, attempted a Fedora cross-compile several years ago and wasn't able to get it to work, but that's likely been improved in the meantime. Perhaps this next bit should be discussed on gtk-devel instead of here, but if Msys2 is now the preferred source of Gtk win32 binaries perhaps the binaries on ftp.gnome.org and www.gtk.org should be removed and the www.gtk.org website revised to point to Msys2. Indeed, all of what you wrote above should be on the Gtk Windows page instead of the apparently outdated information that's there now. I agree it would be most helpful if the primary sources point in the same direction... Regards, Geert [1] Start of the conversation is here: http://lists.gnucash.org/logs/2015/02/2015-02-19.html#T02:49:54 ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: I want to learn how to customize reports
On Thursday 19 February 2015 08:29:59 David Christopher wrote: I had Cygwin downloaded and installed and the Guile package installed also and was trying to figure out how to use it when I got the next few messages that said to use the command prompt and type in those two lines. I had to modify them to this for them to work SET GUILE_LOAD_PATH=%ProgramFiles(x86)%\gnucash\share\guile\1.8 %ProgramFiles(x86)%\gnucash\bin\guile.exe Then I went to the tutorial site and typed in items as directed. I attach a screen shot of the results. Looks like it works. Yes, that looks good. Since there is only one user account on my computer right now, should I uninstall Cygwin64 from the computer? I do not need it for anything right now as far as I can tell. If you don't need it, you're safer to just remove it again. The interactive guile shell in cygwin is the same as what I had you set up directly in the command window. If there are version mismatches between guile in cygwin and guile as used by gnucash, *and* cygwin registers itself in the global windows PATH, you may see unexpected behaviour in gnucash. Geert On Thu, Feb 19, 2015 at 8:05 AM, Geert Janssens geert.gnuc...@kobaltwit.be wrote: On Thursday 19 February 2015 14:03:51 Geert Janssens wrote: On Thursday 19 February 2015 16:23:14 Dmitry Pavlov wrote: GnuCash uses guile as a scheme impl. Indeed, gnucash uses guile. So you probably want to work with that because each implementation speaks a different dialect. The downside is that guile is not a windows native package. So when you install gnucash it works well from within gnucash, but it's less obvious how to use it independently of gnucash. Here is one way you could do it: - Open a command prompt (cmd.exe) - Type SET GUILE_LOAD_PATH=%ProgramFiles%\gnucash\share\guile\1.8 %ProgramFiles%\gnucash\bin\guile.exe Eh sorry, that second command needs quotes: %ProgramFiles%\gnucash\bin\guile.exe Geert The first command makes sure guile finds all of its modules, the second will start an interactive guile session. I think you should better try to install cygwin and then install guile for it, using it's package management feature. Be careful with installing gnucash and cygwin under the same user account. From past reports it looks like this is a recipe for crashes in gnucash. If you want to go the cygwin route, please install it under a separate user account on your pc, and make sure it doesn't install for all users. As an alternative you can run Ubuntu in virtual maching (virtual box for example) That would also be an option. Good luck, Geert 2015-02-19 14:52 GMT+03:00 David Christopher chrst...@gmail.com: I have been studying the process on this page: http://wiki.gnucash.org/wiki/Custom_Reports The first thing I run into is that I have to learn Scheme. So off to this page: http://www.scheme.com/tspl2d/start.html#g1546 where I am told I need a interactive Scheme system . ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel