Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wine running on MacOS #139

Open
ruziev-dev opened this issue Oct 23, 2024 · 11 comments
Open

Wine running on MacOS #139

ruziev-dev opened this issue Oct 23, 2024 · 11 comments
Assignees

Comments

@ruziev-dev
Copy link

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
Copy link
Collaborator

nimrof commented Oct 23, 2024

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
Copy link
Author

@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
Copy link
Collaborator

nimrof commented Oct 24, 2024

@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
Copy link
Author

@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
Copy link
Collaborator

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

@nimrof
Copy link
Collaborator

nimrof commented Nov 18, 2024

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

technical still in progress, but only waiting for a release

@nimrof
Copy link
Collaborator

nimrof commented Nov 29, 2024

@nimrof nimrof self-assigned this Nov 29, 2024
@ruziev-dev
Copy link
Author

@nimrof Could you help me with correct cli command?

I have tried but it does not working

dotnet  EDSSharp.exe  --infile something.xdd --outfile something.eds
image

@nimrof
Copy link
Collaborator

nimrof commented Nov 29, 2024

@nimrof Could you help me with correct cli command?

I have tried but it does not working

dotnet  EDSSharp.exe  --infile something.xdd --outfile something.eds

Hi dont have mac so only testet on linux, and i get the same error if i use dotnet, but if i just use ./EDSSharp.exe it works

@ruziev-dev
Copy link
Author

looks like dotnet EDSSharp.dll works but something wrong.

➜  net8.0 dotnet  EDSSharp.dll                                                
Usage: EDSEditor --infile file.[xdd|eds] --outfile [valid output file] [OPTIONAL] --type [exporter type]
The output file format depends on --outfile extension and --type
If --outfile extension matcher one exporter then --type IS NOT needed
If --outfile extension matcher multiple exporter then --type IS needed
If --outfile has no extension --type IS needed
Exporter types:
  ElectronicDataSheet [.eds]
  DeviceConfigurationFile [.dcf]
  CanOpenNode [.h,.c]
  CanOpenNodeV4 [.h,.c]
  CanOpenXDDv1.0 [.xdd]
  CanOpenNetworkv1.0 [.nxdd]
  CanOpenXDDv1.1 [.xdd]
  CanOpenXDDv1.1stripped [.xdd]
  CanOpenXDCv1.1 [.xdc]
  CanOpenNetworkXDDv1.1 [.nxdd]
  CanOpenNetworkXDCv1.1 [.nxdc]
  CanOpenNodeProtobuf(json) [.json]
  CanOpenNodeProtobuf(binary) [.binpb]
  DocumentationHTML [.html]
  DocumentationMarkup [.md]
  NetworkPDOReport [.md]

But if I call with not enough arguments it shows me usage info, but if arguments are enough it executes but nothing changes in directory.

image

@nimrof
Copy link
Collaborator

nimrof commented Dec 15, 2024

looks like dotnet EDSSharp.dll works but something wrong.

➜  net8.0 dotnet  EDSSharp.dll                                                
Usage: EDSEditor --infile file.[xdd|eds] --outfile [valid output file] [OPTIONAL] --type [exporter type]
The output file format depends on --outfile extension and --type
If --outfile extension matcher one exporter then --type IS NOT needed
If --outfile extension matcher multiple exporter then --type IS needed
If --outfile has no extension --type IS needed
Exporter types:
  ElectronicDataSheet [.eds]
  DeviceConfigurationFile [.dcf]
  CanOpenNode [.h,.c]
  CanOpenNodeV4 [.h,.c]
  CanOpenXDDv1.0 [.xdd]
  CanOpenNetworkv1.0 [.nxdd]
  CanOpenXDDv1.1 [.xdd]
  CanOpenXDDv1.1stripped [.xdd]
  CanOpenXDCv1.1 [.xdc]
  CanOpenNetworkXDDv1.1 [.nxdd]
  CanOpenNetworkXDCv1.1 [.nxdc]
  CanOpenNodeProtobuf(json) [.json]
  CanOpenNodeProtobuf(binary) [.binpb]
  DocumentationHTML [.html]
  DocumentationMarkup [.md]
  NetworkPDOReport [.md]

But if I call with not enough arguments it shows me usage info, but if arguments are enough it executes but nothing changes in directory.
image

Sorry for the delay, it should probably output a error when given a unsupported filetype instead of silence.
xpd is not yet supported on the CLI, xdd and eds only.

Its on the todo-list
#122

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants