I want to know if anyone was able to compile the DWSIM on Fedora 30. I tried to compile on my own in Mono Develop but I was not able to do since it show some errors related to "Project doesnt support framework Net Framework=4.5" and "Unknown Tools Version 15". I don't have much experience on development and I really need this natively to use in my graduation project. I could just make a virtual machine but it's very inconvenient. I'll be glad for any help, thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After double checking I noticed that I was running mono 5, despite following the installation instruction on the site. I updated to the last version and these errors are gone, but I'm still unable to compile. These are the new errors.
/home/estevao/Downloads/dwsim5-windows/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Resources.resx: Error MSB3103: Arquivo Resx inválido. Exception has been thrown by the target of an invocation. (MSB3103) (DWSIM.Controls.DockPanel)
/home/estevao/Downloads/dwsim5-windows/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Resources.resx: Error: TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Resources.ResXResourceReader.LoadData () [0x0010e] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Windows.Forms/System.Resources/ResXResourceReader.cs:191
at System.Resources.ResXResourceReader.GetEnumerator () [0x00008] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Windows.Forms/System.Resources/ResXResourceReader.cs:341
at Microsoft.Build.Tasks.ProcessResourceFiles.ReadResources (Microsoft.Build.Tasks.ProcessResourceFiles+ReaderInfo readerInfo, System.Resources.IResourceReader reader, System.String fileName) [0x00002] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:3492
at Microsoft.Build.Tasks.ProcessResourceFiles.ReadResources (System.String filename, System.Boolean shouldUseSourcePath, System.String outFileOrDir) [0x0007a] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:3064
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile (System.String inFile, System.String outFileOrDir) [0x00074] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:2640
TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x0006b] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Image.cs:294
at System.Drawing.Bitmap..ctor (System.IO.Stream stream, System.Boolean useIcm) [0x00006] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:111
at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:102
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:882
DllNotFoundException: libgdiplus.so.0
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:134
(DWSIM.Controls.DockPanel)
/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB6006: "sgen.exe" foi encerrado com o código 1. (MSB6006) (DWSIM.MathOps.SwarmOps)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Sorry for the long silence.
Anyway, at this point I just gave up trying to compile it on Linux, it was giving me so much headaches. But I just found a simpler solution. I made a fresh install of Manjaro and converted the .deb package to a arch based packaging (didn't know it was possible to do it honestly) and it installed perfectly. Had some issues with the name of the dependencies but I managed to fix it. Now it's fully working on Manjaro Linux! I tried this method on Fedora 30 but it didn't worked properly.
Anyway, thank you very much for the support and sorry about any inconvenience.
Last edit: Estevao Mendes 2019-09-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Very interesting! Estevao, could you give us more details about what you have done ?
I tried with "debtap" and the conversion works fine. However the following installation with pacman, gives me an error: gtk>=2.12 unresolved depencencies.
Could you please more specific on the tools and versions you used ? thanks
Gianmarco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ah, this is simple. I had the same error while trying to install it. Some of the dependencies have different names compared to his Debian equivalents. When you convert using debtap you need to rename these dependecies in the .PKGINFO file to those equivalent in the Arch/Manjaro repository. Ex: gtk needs to be renamed to gtk2 and so on.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Great! I go on and I'll post my result.
Considering that now Manjaro is the most downloaded distribution, your solution will help the diffusion of DWSim too. Thanks again.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I could install the package after conversion and the change in the .PKGINFO of "gtk" to "gtk2".
I had also to change the directory in the launcher because they were wrong.
However, when I try to run it I got this message:
The entry point method could not be loaded due to Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
I suppose another module is missing and I try to understand how to go on.
Hopefully, Estevao could give some further directives?
Gianmarco
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
These are the dependencies on Debian systems: mono-complete (>= 5.14), mono-vbnc (>=4.0), gtk-sharp2 (>=2.12), libfontconfig1-dev, libglu1-mesa-dev, coinor-libipopt1v5
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank to both of you, I can run DWSIM on Manjaro ! See screenshot.
Here, a detailed procedure for all the people that want to do the same.
1) Manjaro distributed in October 2019 (no-version since is a rolling distribution)
2) Allow the installer, pacman, to access the AUR repository (not as default)
3) from AUR install the following packages:
- debtap (ver3.2.2-1)
- mono-basic (ver 4.8-1) not mono only! The name is misleading because mono-basic is not a reduced version of mono but a package with mono and VBbasic
- gtk-sharp-2 (ver2.12.45-2)
4) download from sourceforge: dwsim_5.8.3-amd64.deb
5) open a terminal and transform the deb package to a arch package with debtap: $ debtap dwsim_5.8.3-amd64.deb
6) answer to the questions such name (i.e. dwsim-5.8.3-amd64) licence (i.e. GPL2) and when it asks to open a .PKGINFO answer with choice 2 (nano editor is preinstalled in Manjaro).
7) change : gtk>=2.12 in gtk2>=2.12 because Manjaro has gtk2 preinstalled, save and exit
8) at the and debtap gives you a compress package called:dwsim-5.8.3-1-x86_64.pkg.tar.xz
9) in the terminal run $ sudo pacman -U dwsim-5.8.3-1-x86_64.pkg.tar.xz. A lot of dependedencies are downloaded and installed.
10) pacman builds by default in the directory : /usr/lib/dwsim and makes a couple of launcher files in /usr/bin called dwsim and dwsim-classic
11) open both files as root and check if the path is correct. In my case the path was wrong because was /usr/local/lib/dwsim so with /local added. I corrected manually all of them.
12) at the end you can run dwsim just typing in a terminal, whitout root privilege: $dwsim or $ dwsim-classic
It seems that everything works fine and what surprise me it runs very fast.
The only dubt left is: during installation dwsim installs : crossover, a package to run windows programs on linux. A message said it is a demo version and probably out of the open source licence.
Hi there and many thanks for your support. I am trying to install on PINEBook Pro - Manjaro.
Unfortunately step 9 will not work.
Probably the problem starts from the fact that coin-or-ipopt (AUR) will not be installed earlier, although I try from pamac/AUR.
Any ideas welcome.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am new in Manjaro and although I tried to install Wine, I was not successful in my earlier days. Since you suggest so, I will focus my effort on this then :)
Thanks ! Not only for the support but for the whole DWSIM!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I want to know if anyone was able to compile the DWSIM on Fedora 30. I tried to compile on my own in Mono Develop but I was not able to do since it show some errors related to "Project doesnt support framework Net Framework=4.5" and "Unknown Tools Version 15". I don't have much experience on development and I really need this natively to use in my graduation project. I could just make a virtual machine but it's very inconvenient. I'll be glad for any help, thanks.
Are you running the latest versions of Mono and MonoDevelop? https://www.monodevelop.com/download/#fndtn-download-lin-ubuntu
After double checking I noticed that I was running mono 5, despite following the installation instruction on the site. I updated to the last version and these errors are gone, but I'm still unable to compile. These are the new errors.
/home/estevao/Downloads/dwsim5-windows/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Resources.resx: Error MSB3103: Arquivo Resx inválido. Exception has been thrown by the target of an invocation. (MSB3103) (DWSIM.Controls.DockPanel)
/home/estevao/Downloads/dwsim5-windows/DWSIM.Controls.DockPanel/WinFormsUI/Docking/Resources.resx: Error: TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Resources.ResXResourceReader.LoadData () [0x0010e] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Windows.Forms/System.Resources/ResXResourceReader.cs:191
at System.Resources.ResXResourceReader.GetEnumerator () [0x00008] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Windows.Forms/System.Resources/ResXResourceReader.cs:341
at Microsoft.Build.Tasks.ProcessResourceFiles.ReadResources (Microsoft.Build.Tasks.ProcessResourceFiles+ReaderInfo readerInfo, System.Resources.IResourceReader reader, System.String fileName) [0x00002] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:3492
at Microsoft.Build.Tasks.ProcessResourceFiles.ReadResources (System.String filename, System.Boolean shouldUseSourcePath, System.String outFileOrDir) [0x0007a] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:3064
at Microsoft.Build.Tasks.ProcessResourceFiles.ProcessFile (System.String inFile, System.String outFileOrDir) [0x00074] in /builddir/build/BUILD/msbuild-16.1/src/Tasks/GenerateResource.cs:2640
TypeInitializationException: The type initializer for 'System.Drawing.GDIPlus' threw an exception.
at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x0006b] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Image.cs:294
at System.Drawing.Bitmap..ctor (System.IO.Stream stream, System.Boolean useIcm) [0x00006] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:111
at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:102
at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:882
DllNotFoundException: libgdiplus.so.0
at (wrapper managed-to-native) System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in /builddir/build/BUILD/mono-6.0.0.327/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:134
(DWSIM.Controls.DockPanel)
/usr/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets(5,5): Error MSB6006: "sgen.exe" foi encerrado com o código 1. (MSB6006) (DWSIM.MathOps.SwarmOps)
Can you try installing libgdiplus.so.0? You'll need to find the name of the package for Fedora.
both libgdiplus and libgdiplus-devel are installed.
libgdiplus0-5.6.1-0.xamarin.3.epel8.x86_64
libgdiplus-devel-5.6.1-0.xamarin.3.epel8.x86_64
I don't understand this error then:
DllNotFoundException: libgdiplus.so.0
Did you try compiling the monodevelop branch? last time I've checked it was compiling without errors.
Hi. Sorry for the long silence.
Anyway, at this point I just gave up trying to compile it on Linux, it was giving me so much headaches. But I just found a simpler solution. I made a fresh install of Manjaro and converted the .deb package to a arch based packaging (didn't know it was possible to do it honestly) and it installed perfectly. Had some issues with the name of the dependencies but I managed to fix it. Now it's fully working on Manjaro Linux! I tried this method on Fedora 30 but it didn't worked properly.
Anyway, thank you very much for the support and sorry about any inconvenience.
Last edit: Estevao Mendes 2019-09-09
Very interesting! Estevao, could you give us more details about what you have done ?
I tried with "debtap" and the conversion works fine. However the following installation with pacman, gives me an error: gtk>=2.12 unresolved depencencies.
Could you please more specific on the tools and versions you used ? thanks
Gianmarco
Ah, this is simple. I had the same error while trying to install it. Some of the dependencies have different names compared to his Debian equivalents. When you convert using debtap you need to rename these dependecies in the .PKGINFO file to those equivalent in the Arch/Manjaro repository. Ex: gtk needs to be renamed to gtk2 and so on.
Great! I go on and I'll post my result.
Considering that now Manjaro is the most downloaded distribution, your solution will help the diffusion of DWSim too. Thanks again.
Can you guys share the skeleton of the installer package for Manjaro? This way I can use it to distribute updated packages along with the debian one.
Thanks
Daniel
I could install the package after conversion and the change in the .PKGINFO of "gtk" to "gtk2".
I had also to change the directory in the launcher because they were wrong.
However, when I try to run it I got this message:
The entry point method could not be loaded due to Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
I suppose another module is missing and I try to understand how to go on.
Hopefully, Estevao could give some further directives?
Gianmarco
I did the research and based on the Debian dependencies, the packages equivalents to Arch/Manjaro are:
mono-basic (AUR)
gtk-sharp2 (AUR)
coin-or-ipopt (AUR)
mono
fontconfig
glu
I guess when you convert the .deb package with debtap some dependencies are supressed for some reason and need to be installed separately from AUR.
Last edit: Estevao Mendes 2019-10-25
Hi Gianmarco,
On Debian systems, the Microsoft.VisualBasic assembly is provided by the mono-vbnc package.
Last edit: Daniel Medeiros 2019-10-25
These are the dependencies on Debian systems: mono-complete (>= 5.14), mono-vbnc (>=4.0), gtk-sharp2 (>=2.12), libfontconfig1-dev, libglu1-mesa-dev, coinor-libipopt1v5
Thank to both of you, I can run DWSIM on Manjaro ! See screenshot.
Here, a detailed procedure for all the people that want to do the same.
1) Manjaro distributed in October 2019 (no-version since is a rolling distribution)
2) Allow the installer, pacman, to access the AUR repository (not as default)
3) from AUR install the following packages:
- debtap (ver3.2.2-1)
- mono-basic (ver 4.8-1) not mono only! The name is misleading because mono-basic is not a reduced version of mono but a package with mono and VBbasic
- gtk-sharp-2 (ver2.12.45-2)
4) download from sourceforge: dwsim_5.8.3-amd64.deb
5) open a terminal and transform the deb package to a arch package with debtap: $ debtap dwsim_5.8.3-amd64.deb
6) answer to the questions such name (i.e. dwsim-5.8.3-amd64) licence (i.e. GPL2) and when it asks to open a .PKGINFO answer with choice 2 (nano editor is preinstalled in Manjaro).
7) change : gtk>=2.12 in gtk2>=2.12 because Manjaro has gtk2 preinstalled, save and exit
8) at the and debtap gives you a compress package called:dwsim-5.8.3-1-x86_64.pkg.tar.xz
9) in the terminal run $ sudo pacman -U dwsim-5.8.3-1-x86_64.pkg.tar.xz. A lot of dependedencies are downloaded and installed.
10) pacman builds by default in the directory : /usr/lib/dwsim and makes a couple of launcher files in /usr/bin called dwsim and dwsim-classic
11) open both files as root and check if the path is correct. In my case the path was wrong because was /usr/local/lib/dwsim so with /local added. I corrected manually all of them.
12) at the end you can run dwsim just typing in a terminal, whitout root privilege: $dwsim or $ dwsim-classic
It seems that everything works fine and what surprise me it runs very fast.
The only dubt left is: during installation dwsim installs : crossover, a package to run windows programs on linux. A message said it is a demo version and probably out of the open source licence.
Hi there and many thanks for your support. I am trying to install on PINEBook Pro - Manjaro.
Unfortunately step 9 will not work.
Probably the problem starts from the fact that coin-or-ipopt (AUR) will not be installed earlier, although I try from pamac/AUR.
Any ideas welcome.
https://sourceforge.net/projects/dwsim/files/DWSIM/DWSIM%205.8/Update%204/Linux%20%28Non-Debian%29/
This is a big help! I have recently switched to Manjaro and am so glad to have access to DWSIM.
Thanks Daniel,
I still seem to struggle with the equivalent of:
coinor-libipopt1v5
which I believe for Manjaro is the:
coin-or-ipopt
(as suggested by Estevao Mendes above - all other dependencies are working OK).
I also tried to install the coin-or-coinmumps (AUR from pacman) but still returns errors.
If you finally manage to put together a pkg for Manjaro, I will be very happy. But I do understand this may not be a high priority presently.
did you try the wine version? I believe that wine can be easily installed on Manjaro. https://sourceforge.net/projects/dwsim/files/DWSIM/DWSIM%206.5/6.5.4/dwsim-wine_v654.7z/download
I am new in Manjaro and although I tried to install Wine, I was not successful in my earlier days. Since you suggest so, I will focus my effort on this then :)
Thanks ! Not only for the support but for the whole DWSIM!
thanks! see this: https://linuxconfig.org/install-wine-on-manjaro