CrossOver Support - Community Forums

Important Information These are community forums and not official technical support. If you need official support: Contact Us

CrossOver Linux
Discussion about CrossOver Linux

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Return Values

I'm using CCS C command-line compiler in a bottle all by itself. It works fine if I do it all manually, But I'd like for MPLABX IDE to call it when I click compile. The IDE generates the command line arguments that cause the compiler to do the right thing. I have a bash script that I use to call the compiler and supply the arguments generated by the IDE.

#! /bin/bash

#/opt/cxoffice/bin/cxrun ccsc.exe @$@
rm "/home/glenn/MPLABXProjects/MDB-100.X/params.txt"
echo $@ >> "/home/glenn/MPLABXProjects/MDB-100.X/params.txt"
exec /opt/cxoffice/bin/cxrun ccsc.exe @

What I need now is the return value from CCSC on completion. Can someone share with me how I might do that?

I modified my script to:

#! /bin/bash


rm "/home/glenn/MPLABXProjects/MDB-100.X/params.txt"
echo $@ >> "/home/glenn/MPLABXProjects/MDB-100.X/params.txt"
echo /opt/cxoffice/bin/cxrun "/home/glenn/.wine/dosdevices/c:/Program Files (x86)/PICC/ccsc.exe" $@
/opt/cxoffice/bin/cxrun "/home/glenn/.wine/dosdevices/c:/Program Files (x86)/PICC/ccsc.exe" $@

And the result from the command line is this:

glenn@glenn-LX6820:~/.cxoffice/CCSC/drive_c/Program Files (x86)/PICC$ ./ccsc +V
/opt/cxoffice/bin/cxrun /home/glenn/.wine/dosdevices/c:/Program Files (x86)/PICC/ccsc.exe +V

winewrapper.exe:error: cannot start L"/home/glenn/.wine/dosdevices/../drive_c/Program Files (x86)/PICC/ccsc.exe" (error 31)

I don't know where the 'L' is coming from?

CrossOver Linux 20.0.0
Install location: /opt/cxoffice
64-bit OS
Desktop session: ubuntu
Window manager: GNOME Shell
Locale: en_US.UTF-8

Contents of /etc/os-release:
VERSION="20.04.1 LTS (Focal Fossa)"
PRETTY_NAME="Ubuntu 20.04.1 LTS"

Please Note: This Forum is for non-application specific questions relating to installation/configuration of CrossOver. All application-specific posts to this Forum will be moved to their appropriate Compatibility Center Forum.

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...