cryinkfly / SOLIDWORKS-for-Linux

This is a project, where I give you a way to use SOLIDWORKS on Linux!
MIT License
395 stars 37 forks source link

Multiple logic orders errors #35

Closed Siarlo closed 1 year ago

Siarlo commented 1 year ago

Tried using the scipt. Did not work. I'm on ubuntu 22.04

I looked into it and found those issues and corresponding fixes : 1 - There are two SP_SELECT_SOLIDWORKS_VERSION decleration and the wrong one is therefore called on line 549. Rename this call to SP_SELECT_SOLIDWORKS_VERSION2 and change the function at line 140 for SP_SELECT_SOLIDWORKS_VERSION2 as well

2 - Comment line 573 (call to SP_SOLIDWORKS_LOAD) as SP_SELECT_OS_VERSION is called by SP_SOLIDWORKS_LOAD itself creating a never ending loop of choosing the os

3 - At line 32, change the line SP_REQUIRED_COMMANDS=("dialog" "wget" "lsb-release" "cat") for SP_REQUIRED_COMMANDS=("dialog" "wget" "lsb_release" "cat")

Edit : I tried doing those steps of modification and there is still a loop to be fixed. It had worked once before. I'm investigating

4 - After edit : Comment line 146 as it will never be executed if the script works.

The reason it did not work after 3 modifications is because I had to refresh the terminal and delete .solidworks from my home directory

Edit 2 : Also, now that the script is working normally, when the Solidworks installer comes up, after entering the key, I get an error about a bad XML and it wants me to install from local files. The problem is that this type of install fails. Any help ?

Edit 3 : It seems that installing internet explorer ie8 helps the installation go smoother (Executing WINEPREFIX=~/.solidworks/wineprefixes/solidworks ~/.solidworks/bin/winetricks ie8 after running the script once and then running it again after the command)

Edit 4 : Installing msxml3 msxml4 msxml6 with winetricks using the same command as above or with the GUI : WINEPREFIX=~/.solidworks/wineprefixes/solidworks ~/.solidworks/bin/winetricks

Then selecting "Select the default wineprefix" Then install a windows DLL or component Then Checking the box for msxml3 msxml4 msxml6 and clicking ok)

cryinkfly commented 1 year ago

Many thanks for your help!!! :+1:

Some errors crept in while updating the script.

Thank you again!

Siarlo commented 1 year ago

You're welcome ! Also, I noticed that in the one line installation command : cd ~/Downloads && wget -N https://raw.githubusercontent.com/cryinkfly/SOLIDWORKS-for-Linux/main/files/builds/stable-branch/bin/install.sh && chmod +x solidworks-install.sh && ./install.sh

Shouln't the chmod +x solidworks-install.sh be chmod +x install.sh instead ?

or

the wget part be wget -N -O solidworks-install.sh https://raw.githubusercontent.com/cryinkfly/SOLIDWORKS-for-Linux/main/files/builds/stable-branch/bin/install.sh

instead ?

so the final command would look like this : cd ~/Downloads && wget -N -O solidworks-install.sh https://raw.githubusercontent.com/cryinkfly/SOLIDWORKS-for-Linux/main/files/builds/stable-branch/bin/install.sh && chmod +x solidworks-install.sh && ./solidworks-install.sh

Also, now while running the script I get this Error

./solidworks-install.sh: line 548: SP_SELECT_SOLIDWORKS_VERSION_2: command not found

a fix would be : Change line 148 to "function SP_SELECT_SOLIDWORKS {"

Change line 140 to "function SP_SELECT_SOLIDWORKS_VERSION_2 {"