Execute F:\Source\Libre\Libre25\sdk\examples\dotnet\WriterDemo\csharp\Makefile help

  1368928959 at qq.com
Tue Dec 24 07:45:14 UTC 2024


This is machine translation


my  version is 25.0.2.1,window 10 ltsc


An error was reported at the beginning of the execution. I changed the makefile file


Change as follows


old:


APP_SRC_DIR = $(subst /,$(PS),$(CURDIR))


APP_BIN_DIR = $(subst /,$(PS),$(OUT_BIN))


APP_MISC_DIR = $(subst /,$(PS),$(OUT_MISC)/$(APP_NAME))






new:


APP_SRC_DIR = $(subst ,$(PS),$(CURDIR))


APP_BIN_DIR = $(subst ,$(PS),$(OUT_BIN))


APP_MISC_DIR = $(subst ,$(PS),$(OUT_MISC)/$(APP_NAME))






I added -p where there is -$(MKDIR)


It becomes -$(MKDIR) -p $(@D). These changes caused me to generate some files


Log:


mkdir -p c:/libreoffice25.2_sdk/WINexample.out/bin\


"C: \ Program Files \ dotnet/dotnet" publish C: / libreoffice25.2 _sdk/WINexample out/misc/WriterDemo \ / WriterDemo csproj - C Release - o c: / libreoffice25.2 _sdk/WINexample out/misc/WriterDemo \


Identifying the items to restore...


c:\libreoffice25.2_sdk\WINexample.out\misc\WriterDemo\ writerdemo.csPROj: error NU1301: local source "c:\cygdrive\c\LibreOfficeSd"


k\sdk\dotnet "does not exist.


Failed to restore c:\libreoffice25.2_sdk\WINexample.out\misc\WriterDemo\ writerdemo.csproj in 131 ms.


make: *** [Makefile:56: c:/libreoffice25.2_sdk/WINexample.out/bin\/WriterDemo.exe] Error 1






Now local source "c:\cygdrive\c\LibreOfficeSd


k\sdk\dotnet "does not exist, I do not know where to find this source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20241224/a322588c/attachment.htm>


More information about the LibreOffice mailing list