Author Topic: CamBam on Linux  (Read 311685 times)

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
CamBam on Linux 0.9.8N beta 3 (new release)
« Reply #45 on: December 05, 2012, 11:46:59 am »
A revised Linux version (0.9.8N beta 3) in now available...

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

This incorporates the latest changes and bug fixes from the latest 0.9.8N (rc-6) windows release.

Tools - Browse system folder, Help - View samples and Machining - Browse g-code folder should also now be working.

Offline newlinuxuser

  • Droid
  • **
  • Posts: 99
    • View Profile
Re: CamBam on Linux
« Reply #46 on: December 11, 2012, 01:34:45 am »
Good morning 10 bulls,

I found a problem  with the engrave text function.
When I try to open the text tool cambam crashes.

This is the debug from terminal:
Code: [Select]
Unknown heap type: #GUlD

Unknown heap type: #Blop

Unknown heap type: #GUlD

Unknown heap type: #Blop

Could not set X locale modifiers
metadata.c:914: assertion 'index < meta->heap_blob.size' failed
metadata.c:914: assertion 'index < meta->heap_blob.size' failed
System.DllNotFoundException: libcambam.so
  at (wrapper managed-to-native) CamBam.UI.FontFamilyPropertyEditor:qVaeWFDEay ()
  at CamBam.UI.FontFamilyPropertyEditor.lqceAo8fSA () [0x00000] in <filename unknown>:0
  at CamBam.UI.FontFamilyPropertyEditor.GetFamilyList () [0x00000] in <filename unknown>:0
  at CamBam.UI.MTextPropertyEditorDialog..ctor (CamBam.CAD.MText mtext) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) CamBam.UI.MTextPropertyEditorDialog:.ctor (CamBam.CAD.MText)
  at CamBam.UI.CamBamUI.DhaHPwiLvB () [0x00000] in <filename unknown>:0
  at CamBam.UI.CamBamUI.InsertText () [0x00000] in <filename unknown>:0
  at CamBam.CAD.EntityToolStrip.IqHoDVL6Zo (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Have I to put the cambam.so in some place? I tried to put the lib in /usr/lib, run ldconfig, put the CamBam folder in the file /etc/ld.so.conf and run ldconfig again, but no chance so far.

I run Ubuntu 10.04 with mono  2.10.8.1 from ppa.

Thank you for your good work, bye

Andrea

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #47 on: December 11, 2012, 10:58:22 am »
System.DllNotFoundException: libcambam.so

Have I to put the cambam.so in some place? I tried to put the lib in /usr/lib, run ldconfig, put the CamBam folder in the file /etc/ld.so.conf and run ldconfig again, but no chance so far.
Hello Andrea,

In the directory where CamBam.exe is located, you should also see a file :
CamBam.exe.config

This contains...

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<dllmap dll="libcambam.so" target="./libcambam.so"/>
</configuration>

If you start CamBam from the folder where the exe is located, this should tell it to look for the shared library in the same folder.

It may be, if you are starting from a quick launch or script, the current directory (./) is not the same as the program directory.  In which case, you may need to edit the .config file to enter an explicit folder.

If you do copy the library to a folder that is in the library search path (like /usr/lib ), you should be able to delete the .config file.  It is only there to override the default Linux library search behaviour.

Offline newlinuxuser

  • Droid
  • **
  • Posts: 99
    • View Profile
Re: CamBam on Linux
« Reply #48 on: December 11, 2012, 23:58:12 pm »
Hello 10bulls, maybe I found the problem starting mono in debug level:

Mono: DllImport error loading library '/home/andrea/CamBam0.9.8/libcambam.so: classe ELF errata: ELFCLASS32'.

Sorry, I forgot to say that I run a 64 bit system.
Do you have the lib libcambam.so compiled for 64 bit ?  ;D

Thanks,

Andrea

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #49 on: December 13, 2012, 11:32:20 am »
Do you have the lib libcambam.so compiled for 64 bit ?  ;D
Very well spotted Andrea!  That would indeed be the problem.

I just tried a 64bit build, but it doesn't seem possible unless I have the 64bit gcc tools setup.  :(

I will set up parallel 64bit Linux system for testing and development and will get that library recompiled.

Thank you very much for bringing this to my attention.

Offline captain chaos

  • Ewok
  • *
  • Posts: 47
    • View Profile
Re: CamBam on Linux
« Reply #50 on: December 19, 2012, 22:59:21 pm »
Hi I have finally gotten round to trying CamBam on linux 10.04. I'm good right down to:-
Quote
Copy the tar archives into your home folder.javascript:void(0);
Right click each archive and select 'Extract here'
???
How the hell do I get it into the home folder? I have been messing with Linux for over a year and am getting closer to being an absolute novice from being a complete ignoramus. This stumps me every time and every now and then I jag it and a program loads and I can fire it up from some obscure place. I seem to work fine in the terminal, if I can get the code laid out as well as you have here, as it is finite and is why I do prefer Linux as there are way too many descriptions and far too much terminology around the same thing in windose.

what is the home folder is it /home            and lands up in /home/ CamBam stuff
or                                   /home /me      and lands up in /home/me/ CamBam stuff
 :-\ cheers


Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 9086
    • View Profile
Re: CamBam on Linux
« Reply #51 on: December 19, 2012, 23:30:38 pm »
Try  cd ~

It used to work.

Lloyd

"Pyro for Fun and Profit for More Than Fifty Years"

Offline captain chaos

  • Ewok
  • *
  • Posts: 47
    • View Profile
Re: CamBam on Linux
« Reply #52 on: December 20, 2012, 00:05:32 am »
 ;D I jaged it, it landed up in /home/me, thanks Lloyd I'll give that a go next time, the rest worked out good and Dejan's 
Quote
To add your newly installed CamBam to your Ubuntu desktop you should do the following.

1. Open terminal end enter
gnome-desktop-item-edit ~/Desktop/ --create-new

2. When "Create Launcher" window opens, you enter following command to "Command" field:
mono /home/yourusername/CamBam0.9.8/CamBam.exe
worked fine but you do need to give it a name, I called mine CamBam :o

Thanks 10Bulls the GUI looks crisp and clearer and the mouse response seems quicker on this old single core computer than my flash windows 7 dual core, can't wait to get into it.
cheers

Offline mofosheee

  • Storm Trooper
  • ***
  • Posts: 123
    • View Profile
Re: CamBam on Linux
« Reply #53 on: December 21, 2012, 19:21:29 pm »
Dear Sir:

Thank you for the new release. 

40 to 45 seconds into your most recent tutorial and just after you established the stock size you were able to rotate the image and obtain a 3 dimensional image.  I have not been able to do. 

What part did I miss in this step?

Thank you'

Jerry

Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux
« Reply #54 on: December 21, 2012, 19:42:36 pm »
40 to 45 seconds into your most recent tutorial and just after you established the stock size you were able to rotate the image and obtain a 3 dimensional image.  I have not been able to do. 
The default key+mouse combination to rotate the drawing view is Alt + Mouse Left button Drag.

Unfortunately, most Linux window managers use this key combination for dragging windows.

The CamBam Linux reference page describes some ways to free up this key combination (this varies depending on whether you are using KDE / Gnome and which version).
http://www.cambam.info/ref/ref.linux

I have noticed the instructions need updating for the latest Gnome versions (in OpenSuSE, Ubuntu 12.2 etc).

For this, you may need to install the dconf-editor package.
Start 'dconf-editor', then browse to the following key:
org - gnome - desktop - wm - preferences - mouse-button-modifier
Change the value to <Super> or perhaps<Alt + Super>
(Where 'Super' is the 'Windows' key on most keyboards).

We are planning to add more view rotation options for Linux and Windows soon.

I hope this helps!


Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
CamBam on Linux 0.9.8N beta 4 (new release)
« Reply #55 on: December 24, 2012, 23:48:36 pm »
A new Linux version (0.9.8N beta 4) in now available...

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

This incorporates the latest changes and bug fixes from the latest 0.9.8N (rc-7) windows release.

Please see the rc-7 release notes for more details...

http://www.cambam.co.uk/forum/index.php?topic=2842.msg18699#msg18699

A 64bit version is now available to get text working.

And as I feel bad about about there not being 40 evaluation sessions for the Linux version, the g-code output count has now been increased to 1000 lines.  I hope this helps.

Thank you very much for the feedback regarding the Linux version and have a very merry Christmas!

Andy


Offline newlinuxuser

  • Droid
  • **
  • Posts: 99
    • View Profile
Re: CamBam on Linux
« Reply #56 on: December 25, 2012, 22:18:18 pm »
Have a merry Christmas you too, Andy.

I confirm that the text engraving on the new 64 bit version is working.  :D

Thanks a lot,

Andrea

Offline james_rb_scott

  • Ewok
  • *
  • Posts: 2
    • View Profile
Re: CamBam on Linux 0.9.8N beta 2 (new release)
« Reply #57 on: December 26, 2012, 10:12:22 am »
Another new Linux update...

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

Text support has finally been added! Yay!
Only quadratic fonts (such as TrueType) are currently supported.
Support for cubic fonts (such as some Type1 fonts) is on the todo list.

There were also a few bug fixes relating to the property grid.

Is anyone having problems with double-clicking drawing objects using Ubuntu?
(to get into polyline edit mode for example).

This is working OK for me in openSuSE 12.2 (KDE), but not on Ubuntu 12.04 (Gnome).
Maybe I need to upgrade to the latest Ubuntu ... or maybe it is a Gnome thing?


Any update on this? I'm running 32bit Ubuntu 12.04 LTS, and trying to insert text into a new project after just launching Cambam 0.9.8N causes it to crash immediately (trace below). If I first draw a rectangle before trying to insert text, then try to insert text using the toolbar button, I get the pop-up dialog "Edit Text" but there are no fonts available to select. If I type in some text into the text  entry box and click ok, it asks whether I would like to "Save changes to Untitled?"; clicking no makes all windows disappear; yes allows me to save a .cb file before all windows disappear (cambam doesn't exit completely though; the terminal from which I launch it doesn't return). Cancel just returns me to the text entry box.

Trace when I try to insert text into a blank new project:
:~$ cambam.sh
Unknown heap type: #GUlD

Unknown heap type: #Blop

Unknown heap type: #GUlD

Unknown heap type: #Blop

metadata.c:914: assertion 'index < meta->heap_blob.size' failed
metadata.c:914: assertion 'index < meta->heap_blob.size' failed
System.DllNotFoundException: ./libcambam.so
  at (wrapper managed-to-native) CamBam.UI.FontFamilyPropertyEditor:fpfAaumR09 ()
  at CamBam.UI.FontFamilyPropertyEditor.urHAwsQ0Si () [0x00000] in <filename unknown>:0
  at CamBam.UI.FontFamilyPropertyEditor.GetFamilyList () [0x00000] in <filename unknown>:0
  at CamBam.UI.MTextPropertyEditorDialog..ctor (CamBam.CAD.MText mtext) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) CamBam.UI.MTextPropertyEditorDialog:.ctor (CamBam.CAD.MText)
  at CamBam.UI.CamBamUI.JXgDGVjUvX () [0x00000] in <filename unknown>:0
  at CamBam.UI.CamBamUI.InsertText () [0x00000] in <filename unknown>:0
  at CamBam.CAD.EntityToolStrip.mvuDz9lnqU (System.Object , System.EventArgs ) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripButton.OnClick (System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.HandleClick (Int32 mouse_clicks, System.EventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStripItem.FireEvent (System.EventArgs e, ToolStripItemEventType met) [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.ToolStripItem:FireEvent (System.EventArgs,System.Windows.Forms.ToolStripItemEventType)
  at System.Windows.Forms.ToolStrip.OnMouseUp (System.Windows.Forms.MouseEventArgs mea) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonUp (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ToolStrip.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0



Offline 10bulls

  • Administrator
  • CNC Jedi
  • *****
  • Posts: 2163
  • Coding Jedi
    • View Profile
    • www.cambam.info
Re: CamBam on Linux 0.9.8N beta 2 (new release)
« Reply #58 on: December 26, 2012, 13:31:36 pm »
Any update on this? I'm running 32bit Ubuntu 12.04 LTS, and trying to insert text into a new project after just launching Cambam 0.9.8N causes it to crash immediately (trace below). If I first draw a rectangle before trying to insert text, then try to insert text using the toolbar button, I get the pop-up dialog "Edit Text" but there are no fonts available to select. If I type in some text into the text  entry box and click ok, it asks whether I would like to "Save changes to Untitled?"; clicking no makes all windows disappear; yes allows me to save a .cb file before all windows disappear (cambam doesn't exit completely though; the terminal from which I launch it doesn't return). Cancel just returns me to the text entry box.
...
System.DllNotFoundException: ./libcambam.so

It looks like it is not able to load the shared libraray 'libcambam.so'.
Text on my Ubuntu 12.04 32bit install is working OK.
(The double clicking problem I mentioned earlier is still there, but this problem seems to have gone away in later Ubuntu releases).

Does it work if you start CamBam from a terminal prompt in the same folder where the CamBam.exe is located?

In this folder, there should be two config files...

CamBam.exe.config and
CamBam.CAD.dll.config

These are text files that contain the location of the shared library ( ./ by default).
If this mapping is not working, you may need to change the path to point to the library location or use an absolute path.

I know you are running 32bit Linux, but if anyone else encounters this, the same error will be reported if trying to use the 32bit archive on a 64bit OS (and vice versa).

The only other possible cause I can think of is if there is a missing dependency in the shared library.
The following packages are needed by the shared library:
. fontconfig
. freetype
These are usually installed by default though.

I hope this helps.

Offline james_rb_scott

  • Ewok
  • *
  • Posts: 2
    • View Profile
Re: CamBam on Linux
« Reply #59 on: December 26, 2012, 21:34:38 pm »
10bulls,

Thanks very much - turns out that I was trying to be too smart by trying to use a script to run it. When I launched it from the folder as you suggested, it seems to work fine (and actually didn't take much to fix the script either!).

Many thanks for the quick response, and happy holidays!

Best

James