[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:08:12 EDT 2024
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