CANopenNode / CANopenEditor

CANopen Object Dictionary Editor
GNU General Public License v3.0
144 stars 64 forks source link

Wine running on MacOS #139

Open ruziev-dev opened 1 month ago

ruziev-dev commented 1 month ago

I'm using MacOS for development. CANopenEditor GUI application works good through the Wine.

But CLI tools are not available.

# test command
wine cmd /c CANopenEditor/EDSEditor.exe --infile something.xdd --outfile something.eds

The command above load and run GUI program

0230:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.8.1" not implemented
0230:fixme:mscoree:parse_supported_runtime sku=L".NETFramework,Version=v4.8.1" not implemented
0230:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Apple Braille.ttf"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Baghdad.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Gujarati Sangam MN.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Gurmukhi Sangam MN.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\HelveticaNeue.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Hoefler Text Ornaments.ttf"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\ITFDevanagari.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\ITFDevanagari.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Kailasa.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\KohinoorGujarati.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\KufiStandardGK.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Nadeem.ttc"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\Supplemental\\Skia.ttf"
0230:fixme:font:find_matching_face Untranslated charset 255
0230:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\System\\Library\\Fonts\\ZapfDingbats.ttf"

I need it to automate project builds. Does anybody know how to automatically export CANopenNode files from different xdd or xpd files with Wine?

nimrof commented 1 month ago

Hi, Sorry, but i do not have a mac to test it on, but the CLI should work without wine if it is compiled with .net 6.

Is that something you could try? You will need to build the cli tool with .net6 as the cli tool is not included with the binary release files (that i just realized was a bad idea)

ruziev-dev commented 1 month ago

@nimrof I'm not good on .net. Could you help me with correct command to run?

I have downloaded v4.2.2 from Releases. I'm trying to run EDSEditor.exe from net6.0-windows folder.

image
# my command 1
dotnet EDSEditor.exe  --infile something.xdd --outfile something.eds 

# my command 2
dotnet exec EDSEditor.exe  --infile something.xdd --outfile something.eds

# the result for both cases
It was not possible to find any compatible framework version
The framework 'Microsoft.WindowsDesktop.App', version '6.0.0' (arm64) was not found.
  - No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.WindowsDesktop.App&framework_version=6.0.0&arch=arm64&rid=osx.11.3-arm64

May be have I executed command not correctly?

nimrof commented 1 month ago

@nimrof I'm not good on .net. Could you help me with correct command to run?

Yes

#cd EDSSharp
#dotnet --framwork net6.0 run

If that works it should be building the cli program and running it. With zero mac experience I am not sure how to simply execution after it have been build.

ruziev-dev commented 1 month ago

@nimrof If you mean run command in source code EDSSharp folder There is no result 😔

# command in  EDSSharp folder
dotnet --framwork net6.0 run

# result
Could not execute because the specified command or file was not found.
Possible reasons for this include:
  * You misspelled a built-in dotnet command.
  * You intended to execute a .NET program, but dotnet---framwork does not exist.
  * You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

If the framework allows to be executed on MacOS could you post releases with such package in future?

trojanobelix commented 1 week ago

@nimrof Still in progress, or should we close it?

nimrof commented 1 week ago

@nimrof Still in progress, or should we close it?

technical still in progress, but only waiting for a release