[GNC] CMake error, GnuCash can't be built with the DESTDIR environment variable set on Windows, build on MINGW32
Hai Liang Wang
hailiang.hl.wang at gmail.com
Thu Aug 15 04:20:47 EDT 2024
Get some related info with
https://bugzilla.gnome.org/show_bug.cgi?id=792884
So, I just
checked C:\gcdev64\gnucash\stable\build\gnucash-git\share\glib-2.0\schemas
on my machine.
It contains files
like, org.gnucash.GnuCash.deprecated.gschema.xml, gschemas.compiled, etc.
22 items totally and 283kb.
It seems the files are generated successfully.
Not know how to get along with *DESTDIR*, which seems to be the root cause
at my situation.
Cheers.
Hai Liang W.
On Thu, Aug 15, 2024 at 4:08 PM Hai Liang Wang <hailiang.hl.wang at gmail.com>
wrote:
> hi, folks
>
> Also near the end of build phases. The build command
> `TARGET=gnucash-stable jhbuild -f jhbuildrc build ` now throw an error:
>
> *-- Installing:
> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/share/gnucash/pref_transformations.xml*
> *CMake Error at gnucash/gschemas/cmake_install.cmake:72 (message):*
> * GnuCash can't be built with the DESTDIR environment variable set on
> Windows*
> * (due to bad interference with glib-compile-schemas).*
> *Call Stack (most recent call first):*
> * gnucash/cmake_install.cmake:92 (include)*
> * cmake_install.cmake:108 (include)*
>
>
> *Compiling gschema files in
> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-gitC:/gcdev64/gnucash/stable/inst/share/glib-2.0/schemas*
> *Error opening directory
> “C;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\_jhbuild\root-gnucash-gitC;C:\gcdev64\msys2\gcdev64\gnucash\stable\inst\share\glib-2.0\schemas”:
> No such file or directory*
> *-- Installing:
> C:/gcdev64/gnucash/stable/inst/_jhbuild/root-gnucash-git/gcdev64/gnucash/stable/inst/bin/gnucash.exe*
>
> So, how to fix it?
> I try to set *DESTDIR * in src\gnucash-on-windows.git\jhbuildrc, but it
> fails to run the build commond, almost quit as soon as executing, get
> nothing in trace.
> What is the right approach to deal with *DESTDIR ?*
> Thanks.
>
> Cheers.
> Hai Liang W.
>
More information about the gnucash-user
mailing list