Author Topic: CamBam on Linux  (Read 177840 times)

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
CamBam on Linux
« on: March 29, 2012, 21:40:35 pm »
At long last we have a version of CamBam working for Linux, Hurrah!

http://www.cambam.info/ref/ref.linux

Warning! This release is still in the early stages of development and testing.  All gcode output should be treated with caution!

There are still a couple of missing features as the link above describes.
No text (TTF font) support and no OpenGl (only GDI) are the biggest omissions at present;
both of these are a priority to sort out.

Other than those, most things seem fully functional, although it will need a lot more testing.

We'll try and get some installer packages together soon as well.
At the moment the application and dependencies need to be installed manually.

Thank you for your patience with this and I hope you find this new version useful.

Please let me know if you experience any problems or have any suggestions for this release.

If anyone has downloaded a test version of this over the past few days, please update to the new download.
The latest version has a number of bug fixes and also has it's own version checker which will report when new Linux versions are available.

Andy

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1929
    • View Profile
    • pixelmaker
Re: CamBam on Linux
« Reply #1 on: March 29, 2012, 22:20:51 pm »
Hello Andy,

I try to install the linux cambam ob my mac, but I get no success with the MonoMac. The informations for installing the MonoMac are to poor for a normal user.
A guy in the german forum make a installation on a kubuntu linux and he tells me it works fine.
But he can“t see any polyrectangle. He see them into the drawing tree but not in the drawing window. Also if he converts to polylines they are invisible. He gets then a lot of polylines with 0 segments, lines closed = no and the pointlist is empty.
Are the cb files not compatible between the windows and the linux version?
I think he installed the beta3, because I tell him yesterday that the linux version is in the download.

ralf

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #2 on: March 29, 2012, 23:06:10 pm »
Hi Ralf good to hear from you!

I am not sure if this will work on the Mac just yet.  My plan was to resolve most problems with the Linux version then turn my attention to Mac.

I am currently developing on openSUSE 11.4 (KDE) and using Ubuntu (Gnome) for testing.
PolyRectangles seem to be working OK on both those.
I suspect the problem will be down to a missing dependency.  Sorry for my poor installation instructions, I will add some more detail on dependent packages (but writing a CamBam package would be even better!  ;) )

I'll update the documentation page, but some more detail on packages to check...

Ubuntu

libgdiplus
libmono-corlib4.0-cil
libmono-system-core4.0-cil
libmono-system-data4.0-cil
libmono-system-drawing4.0-cil
libmono-system-xml4.0-cil
libmono-system4.0-cil
libmono-system-web4.0-cil
libmono-system-windows-forms4.0-cil

openSUSE packages

libgdiplus0
mono-core 2.10.2-1.1
mono-winforms
mono-data
mono-web

Some other trouble shooting tips:  Try starting CamBam from a terminal window using 'Mono CamBam.exe'
The terminal window will receive a lot of diagnostic messages which may report error messages.

I also had some problems with some gtk theme settings at one point.
deleting my ~/.gtkrc-2.0-kde4 file fixed that one.

I hope this helps!

Offline bigbigblue

  • Droid
  • **
  • Posts: 82
    • View Profile
    • Pete's Pockets
Re: CamBam on Linux
« Reply #3 on: March 30, 2012, 02:20:06 am »
The possibility of CAMBAM natively running on a Mac? OOOOOh YES PLEASE! I've been a Mac user for 5 years or so and one of the VERY FEW reasons I have to run windows under VMWare is CAMBAM. I would dearly love to get rid of my windows installation.....

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1929
    • View Profile
    • pixelmaker
Re: CamBam on Linux
« Reply #4 on: March 31, 2012, 10:09:39 am »
Hello Andy,

Martin had install all packages used for ubuntu. He tells me that kubuntu is a ubuntu system with a KDE surface
The rectangles still are not there. Even if he convertet them to polylines and they are not in the saved file.
While starting over the terminal there are no error messages about cambam:

martin@mobiles:~/CamBam0.9.8$ mono CamBam.exe
Unknown heap type: #GUlD

Unknown heap type: #Blop

Unknown heap type: #GUlD

Unknown heap type: #Blop

Unknown heap type: #GUlD

Unknown heap type: #Blop

martin@mobiles:~/CamBam0.9.8$

I hope this helps
Is there a error log like the cbdebug under windows available in the linux version?

ralf
« Last Edit: March 31, 2012, 20:17:28 pm by pixelmaker »

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #5 on: March 31, 2012, 22:39:35 pm »
Thank you very much Ralf / Martin for the testing and feedback.

I see the problem with PolyRectangles now, my apologies, it is broken in Ubuntu / openSUSE as well.
I can draw and use PolyRectangles OK within a drawing, but they are broken when loading a file containing them.  I have added this to the top of the 'to fix' list.

I have now set up a Kubuntu VM for testing.
While doing this, I made note of the packages installed to get CamBam working from a clean install.

This boiled down to...

sudo apt-get install mono-runtime
sudo apt-get install libmono-system-windows-forms4.0-cil
sudo apt-get install libmono-system-web4.0-cil
sudo apt-get install libmono-system-design4.0-cil
sudo apt-get install libmono-system-numerics4.0-cil

(I have updated the linux reference page as well.

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux - beta 5
« Reply #6 on: April 01, 2012, 22:15:11 pm »
A new beta 5 of the Linux / Mono CamBam is now available:

http://www.cambam.info/ref/ref.linux

The only change in this version was a fix to get PolyRectangles working.

Note: Files containing rectangles saved in the Linux version will still have problems when loaded into CamBam on Windows.  This is due to a bug on the Windows version which will be fixed in the next update.

I ran into a problem testing Cut and Paste on KDE (openSUSE, Kubuntu), where cut and paste just stopped working.
This seems to be a conflict with Klipper the clipboard manager.  By invoking Klipper (ALT+CTRL+V), and clearing the clipboard history, cut and paste started working again.
Gnome (Ubuntu, Linux Mint) appears to be unaffected by this, and so far the clipboard has been working OK.

Offline swarfing

  • Droid
  • **
  • Posts: 92
    • View Profile
Re: CamBam on Linux
« Reply #7 on: April 03, 2012, 22:22:54 pm »
Andy

I feel a bit stupid asking this but i don't seem to ba able to run anything after following the instructions? I just get the following

Cannot open assembly '/home/****/CamBam0.9.8/CamBam.exe': No such file or directory.


Ignore the stars just me hiding things

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #8 on: April 04, 2012, 00:39:01 am »
Cannot open assembly '/home/****/CamBam0.9.8/CamBam.exe': No such file or directory.

Does your **** bit happen to contain any spaces?

If it does then you need to put an escape character '\' before the spaces, like this...

mono /home/my\ name/CamBam0.9.8/CamBam.exe

(Note, you may also need to use the full path as above, rather than just ~)

If this isn't the problem, can you cd to the CamBam0.9.8 directory, then try:
mono CamBam.exe

I hope this helps.

Offline swarfing

  • Droid
  • **
  • Posts: 92
    • View Profile
Re: CamBam on Linux
« Reply #9 on: April 04, 2012, 09:01:26 am »
Andy out of habit i never use spaces in folder and file names so the switch was not necessary. I'm still getting the same results which ever way i try and run it. I'm wondering if it is mono?

If i type 'mono' i get the commands page up so i am assuming that is installed? out of the dependencies the last one was not available from the repo?
sudo apt-get install libmono-system-numerics4.0-cil
I'm also running Ubuntu (10.04 full updates)

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #10 on: April 04, 2012, 16:25:30 pm »
Ah, it looks like the default repository for Ubuntu 10.04 has an out of date version of mono.

http://mono-project.com/DistroPackages/Ubuntu

You can get a more up to date version from the badgerports repository (more information in the link above).

http://badgerports.org/

If you run:

mono -V

You should get...

Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)
Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com
   TLS:           __thread
   SIGSEGV:       altstack
   Notifications: epoll
   Architecture:  x86
   Disabled:      none
   Misc:          softdebug
   LLVM:          supported, not enabled.
   GC:            Included Boehm (with typed GC and Parallel Mark)

Good luck!

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
CamBam on Linux - beta 6
« Reply #11 on: April 06, 2012, 22:57:07 pm »
A new beta 6 of the Linux / Mono CamBam is now available:

http://www.cambam.info/ref/ref.linux

Changes include:

OpenGL DisplayMode is now working.
If 'Requested GraphicsMode not available' error reported, try turning anti alias off.

Fixes to property grid for drop down and expandable properties.

 :)

Offline Joules

  • Ewok
  • *
  • Posts: 4
    • View Profile
Re: CamBam on Linux
« Reply #12 on: April 11, 2012, 14:08:37 pm »
Andy,
        great news on this Linux version, not dropped by in a while.  Can I also add my vote for a native Mac version as it seems you have so much time on your hands.  I take it now with the vast wealth and fame you have cloned yourself in order to do these 72hr days.

         All the best mate

                               Joules ;D

Offline captain chaos

  • Ewok
  • *
  • Posts: 47
    • View Profile
Re: CamBam on Linux
« Reply #13 on: April 13, 2012, 06:15:21 am »
Hi Andy,

This is great news, thank you, can't wait to try it out. Just need to get my machine mods done and back in working order. I have just finished building a dedicated Linux  PC to run my machine (gantry router).

Cheers paul

Offline pixelmaker

  • CNC Jedi
  • *****
  • Posts: 1929
    • View Profile
    • pixelmaker
Re: CamBam on Linux
« Reply #14 on: April 16, 2012, 16:50:40 pm »
Hello Andy,

feedback from Martin who tries the linux version:
With the beta 6 on Kubuntu.
The Open GL works now, sometime the Coordinate Cross disapears, but comes back when the drawing window is refreshed through any operation.
Opazity of the window: the values can write in the option but don´t assume.
In the pointlist of lines and objects the values can be write but get lost when click OK.

G-Code with spaces are don´t work . eg G0 x 10.0 y 20.20 don´t work, G0 x10.0 y20.0 works
Show System Folder in menue don´t work.
When closing CamBam a error occures: "Access to the path /usr/share\CamBam plus 0.9.8 is"

Martin tried some files from the english forum:
http://www.cambam.co.uk/forum/index.php?action=dlattach;topic=1098.0;attach=2903
This file don´t work, he gets a error: "g di32.dll" (perhaps only a space too ;-)

http://www.cambam.co.uk/forum/index.php?action=dlattach;topic=1176.0;attach=3077
CamBam thinks a bit about this file but don´t generate toolpathes.

That is what Martin tells me about the linux version.

ralf

addition: Plane Slice Z - The window for the Value pops up,
You have to change to OK button with the tab and than you can click on it. Martin tells the target is not ok.
« Last Edit: April 17, 2012, 11:19:04 am by pixelmaker »