octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36477] use XDG dirs instead of HOME


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #36477] use XDG dirs instead of HOME
Date: Sat, 9 Mar 2019 13:52:29 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

Follow-up Comment #21, bug #36477 (project octave):

I applied the xdg.patch on top of hg id ea4a36fd48b6 and tried to cross
compile.
Compilation failed with the following error:

/home/osboxes/Documents/Repositories/Octave/mxe-octave-3/tmp-default-octave/octave-6.0.0/liboctave/system/oct-env.cc:
In member function 'std::__cxx11::string
octave::sys::env::do_get_user_config_directory() const':
/home/osboxes/Documents/Repositories/Octave/mxe-octave-3/tmp-default-octave/octave-6.0.0/liboctave/system/oct-env.cc:244:56:
error: 'KF_FLAG_DONT_VERIFY' was not declared in this scope
       if (SHGetKnownFolderPath (FOLDERID_LocalAppData, KF_FLAG_DONT_VERIFY,
                                                        ^~~~~~~~~~~~~~~~~~~
/home/osboxes/Documents/Repositories/Octave/mxe-octave-3/tmp-default-octave/octave-6.0.0/liboctave/system/oct-env.cc:244:56:
note: suggested alternative: 'CSIDL_FLAG_DONT_VERIFY'
       if (SHGetKnownFolderPath (FOLDERID_LocalAppData, KF_FLAG_DONT_VERIFY,
                                                        ^~~~~~~~~~~~~~~~~~~
                                                       
CSIDL_FLAG_DONT_VERIFY
/home/osboxes/Documents/Repositories/Octave/mxe-octave-3/tmp-default-octave/octave-6.0.0/liboctave/system/oct-env.cc:244:11:
error: 'SHGetKnownFolderPath' was not declared in this scope
       if (SHGetKnownFolderPath (FOLDERID_LocalAppData, KF_FLAG_DONT_VERIFY,
           ^~~~~~~~~~~~~~~~~~~~
/home/osboxes/Documents/Repositories/Octave/mxe-octave-3/tmp-default-octave/octave-6.0.0/liboctave/system/oct-env.cc:244:11:
note: suggested alternative: 'SHGetFolderPath'
       if (SHGetKnownFolderPath (FOLDERID_LocalAppData, KF_FLAG_DONT_VERIFY,
           ^~~~~~~~~~~~~~~~~~~~
           SHGetFolderPath
make[5]: *** [Makefile:24299: liboctave/system/libsystem_la-oct-env.lo] Error
1


To be honest I don't know which Windows version our mingw compiler builds for.
But maybe using SHGetFolderPathW would work indeed.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?36477>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]