CamBam
News:
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 14, 2019, 21:43:25 pm


Login with username, password and session length


Pages: [1] 2 3
  Print  
Author Topic: CamBam plus V1.0 (rc-2)  (Read 3366 times)
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 2133


Coding Jedi


View Profile WWW
« on: October 02, 2019, 12:11:42 pm »

Another new CamBam release V1.0 (rc-2) is available...

http://cambamcnc.com/downloads/#devt
and for Linux...
http://cambamcnc.com/ref/ref.linux

Release notes...

Notable changes in this release:

More work on the gcode output file prompting behaviour (as discussed in this thread)

Some more Mono tweaks and fixes...
Added new config options 'Menu Font Family' and 'Menu Font Size'.  This should hopefully mean no longer avoiding later libmono releases that included larger hard coded font sizes.

File open now also filters for capitalized file extensions (so .DXF and .dxf will match... but not DxF <- just wrong! )

The offline help files are now included in the linux program downloads.

I have also added a script 'install-launcher.sh' to the program folder the create a program launcher.
I am still looking for a reliable way to set the .cb file extension handling, but once the launcher is created, it just requires a few clicks on a .cb file to set the default program as the new program launcher.

Just to reiterate the rc-1 notes...

Quote
The rc-2 tag denotes 'release candidate', which implies that, at long last, we nearing the point of making V1.0 the recommended production release.

The main aim of this release has been to work through remaining bugs and issues, particularly where these prevented moving over from 0.9.8

If you are yet to try V1.0 we recommend doing so.
If there are issues with this release preventing you from moving from 0.9.8, please let us know!

Note, V1.0 and 0.9.8 can be installed on the same computer and run in parallel.
Version 1.0 now requires the .NET framework version 4 to installed.

Thank you again for your support, feedback and patience while we work to make this the best CamBam release yet!

Thank you again for the great feedback from the rc-1 release!

Regards

Andy Payne (10bulls)
Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #1 on: October 02, 2019, 13:00:32 pm »

Tested font selection and it works. Is it set to use only the 'Regular' font variation?
I may now risk upgrading Mono to the latest stable version.
Thanks!
Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #2 on: October 02, 2019, 13:30:15 pm »

Update:
Installed mono-complete v. 6.4.0.
Best result with (can you imagine?)... font Arial Smiley

Only the 'Aligner' plugin drop down list box stays with large letters but I assume some change is required in the plugin itself.

P.S. Ubuntu 16.04 Xenial with Mate desktop.
« Last Edit: October 02, 2019, 13:32:53 pm by Dragonfly » Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #3 on: October 02, 2019, 14:07:39 pm »

Found two spots where font size stays large.


* LargeLetters.png (45.68 KB, 927x288 - viewed 73 times.)
Logged
onekk
Wookie
****
Offline Offline

Posts: 497


View Profile
« Reply #4 on: October 03, 2019, 11:58:23 am »

for the reliable way to add associations, in Linux,

Code:
sudo xdg-mime install --mode system x-cambam.xml
sudo xdg-mime default cambam.desktop application/x-cambam
sudo xdg-icon-resource install --context mimetypes --size 32 cambam.png application-x-cambam

but cambam.desktop have to be taylored accordig the installation directory, mybe some sed or awk script ti adapt a generic cambam.desktop like the following

Code:
[Desktop Entry]
 Type=Application
 Version=1.0
 Name=CamBam
 Icon=<your-home>/CamBam0.9.8/cambam.png
 Exec=<your home>/CamBam0.9.8/cambam.sh %f
 MimeType=application/x-cambam
 Categories=Graphics;3DGraphics;Engineering;

and cambam,sh


Code:
cd ~/CamBam0.9.8/
# MONO_LOG_LEVEL="debug" MONO_LOG_MASK="dll"

mono ./CamBam.exe "$1"



and finally the icon attached.


Generally work, it is Desktop independent as it use the xdg-mime associations mechanism,, generally available on most dirtributions.


Regards

Carlo D.


* cambam.png (1.4 KB, 30x30 - viewed 262 times.)
Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 2133


Coding Jedi


View Profile WWW
« Reply #5 on: October 03, 2019, 14:23:55 pm »

Tested font selection and it works. Is it set to use only the 'Regular' font variation?
I may now risk upgrading Mono to the latest stable version.
Thanks!
Thank you very much for the testing!  Yes, only Regular variations are used.

Some plugins may need a tweak to get the correct font size.
When I get a moment I will look into a best way to do this that works on mono and won't break on windows.
Ideally, I think a higher level API call to create menus would be better, but that's for another day.
Logged
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 2133


Coding Jedi


View Profile WWW
« Reply #6 on: October 03, 2019, 14:33:25 pm »

for the reliable way to add associations, in Linux, ...

Thank you very much Carlo.

I have uploaded a minor change to the latest mono -rc2 packages released yesterday.
(it is the same filename sorry, so you will need to re-download).

The install-launcher.sh script should now also setup the mime attachments.

It seems to work on Unbuntu, Mint and Raspberry Pi (the pi needed a reboot to pick up the file icons).

Thanks again to everyone for the linux testing!
Logged
dh42
Administrator
CNC Jedi
*****
Offline Offline

Posts: 5677



View Profile WWW
« Reply #7 on: October 04, 2019, 00:47:53 am »

Hello

Quote
The install-launcher.sh script should now also setup the mime attachments.

Tried on Ubuntu 14.04, when I run the "./install-launcher.sh" command, Linux return something like "permission denied"  Huh Embarrassed

++
David
Logged
Dragonfly
CNC Jedi
*****
Offline Offline

Posts: 2224



View Profile
« Reply #8 on: October 04, 2019, 08:01:19 am »

Perhaps you should use 'sudo' before the command to run it with root privileges.
Logged
lloydsp
CNC Jedi
*****
Offline Offline

Posts: 8085



View Profile
« Reply #9 on: October 04, 2019, 11:44:10 am »

'sudo' is a great workaround for some privilege-related issues in 'IX environments, but won't lick 'em all.

You may have to create an account with higher privileges, and run the package within that.

I would not choose to do so voluntarily -- 'twould be better if the softs would run as a non-administrator.

Lloyd
Logged

"Pyro for Fun and Profit for More Than Fifty Years"
10bulls
Administrator
CNC Jedi
*****
Offline Offline

Posts: 2133


Coding Jedi


View Profile WWW
« Reply #10 on: October 04, 2019, 13:06:26 pm »

Tried on Ubuntu 14.04, when I run the "./install-launcher.sh" command, Linux return something like "permission denied"  Huh Embarrassed
I have so far focused on getting the Linux installation process working in the 'user' context, so was trying to avoid any sudo commands for the time being.
(I will work on a system install script / instructions once the user one is working OK)

Did the script fail straight away?  It may just need the 'execute' permission setting.
In the file browser gui, right click the script, select properties, then permissions.
'Allow executing file as program' should be ticked.
..or from the command line
Code:
cd ~/CamBam1.0
chmod +x install-launcher.sh

It may also be helpful to run the script from the command line to see if there are any error messages displayed.

Code:
cd ~/CamBam1.0
./install-launcher.sh


The full script is currently...

Code:
#!/bin/bash

dest=/home/"$USER"/.local/share/applications/cambam.desktop

echo "#!/usr/bin/env xdg-open" > "$dest"
echo "[Desktop Entry]" >> "$dest"
echo "Type=Application" >> "$dest"
echo "Version=1.0" >> "$dest"
echo "Name=CamBam 1.0" >> "$dest"
echo "Exec=$PWD/cambam.sh %f" >> "$dest"
echo "Path=$PWD" >> "$dest"
echo "Terminal=false" >> "$dest"
echo "Icon=$PWD/CamBam.svg" >> "$dest"
echo "MimeType=application/x-cambam" >> "$dest"
echo "Categories=Graphics;3DGraphics;Engineering;" >> "$dest"

xdg-mime install cambam-mime.xml
xdg-mime default cambam.desktop application/x-cambam
xdg-icon-resource install --context mimetypes --size 64 CamBam.png application-x-cambam

The last three lines were added in yesterdays 'sneaky' update.

If the launcher icon is created, but it then fails on setting up the mime types, try running each of those last few lines one at a time to see where it is failing.

Thank you for the testing!  I tried this script on a few Linux distros and it seemed to work OK... even on the raspi.
Logged
ubiquity
CNC Ewok
*
Offline Offline

Posts: 28


View Profile
« Reply #11 on: October 06, 2019, 03:13:20 am »

[Fixed - Thank You!]
After the issues outlined below I restarted the machine and reran the script in terminal
This time the appropriate directories and files were created together with a menu based launcher.
Also the mime associations are working so CamBam appears to be working fine.

Where should I run this script?
I am using Linux Mint and rc-2 from Oct 2 2019
I tried running directly from the CamBam1.0 directory and I tried running in terminal but neither option created the launcher icon - no error message was received.
Then I tried line by line in terminal and it failed at echo "#!/usr/bin/env xdg-open" > "$dest" with the error
bash: !/usr/bin/env: event not found
I continued with
echo "[Desktop Entry]" >>"$dest" and received the error
bash: /home/hmsadmin/.local/share/applications/cambam.desktop: No such file or directory

When I got this error I checked the contents of .local/share and there indeed is no applications directory and hence no file either.

My CamBam1.0 directory is installed in /home for the user hmsadmin
Have I somehow installed CamBam incorrectly?

I also noted when attempting to open a .cb file using Open with other application that when I browse to the CamBam1.0 directory to select CamBam.exe it does not appear in the list of executable files (although of course I know it does exist as I can open CamBam directly using both it and cambam.sh.

In addition when I do open CamBam I get the error messages saying Library path not found - checking the .config/CamBam plus 1.0 directory I  noticed the subdirectories styles,materials,tools,machinedefs and post are missing.
« Last Edit: October 07, 2019, 15:17:53 pm by ubiquity » Logged
onekk
Wookie
****
Offline Offline

Posts: 497


View Profile
« Reply #12 on: October 07, 2019, 09:29:41 am »

if you have no /.local/share/applications, you have to create it, usually it is present, but in some "new" installation is not.

for the #!/usr/bin/env, some distribution can't cope with them, maybe there is some "compatibility" package to install.

The most easy way is to modify the line in #/usr/bin/bash (generally most if not all Linux distribution, have a form of bash compatible shell on board).

Maybe Andy could make a more articulated script that can test and eventually create the "~/.local/share/applications"

I have give up to use Ubuntu derivatives some time ago with the rise of systemd so i could not help you in details.

Regards

Carlo D.
Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
ubiquity
CNC Ewok
*
Offline Offline

Posts: 28


View Profile
« Reply #13 on: October 07, 2019, 15:19:52 pm »

Thanks Carlo,
Everything is working as expected now - I have amended my previous post with an explanation.
Logged
onekk
Wookie
****
Offline Offline

Posts: 497


View Profile
« Reply #14 on: October 07, 2019, 23:00:06 pm »

ubiquity
Happy to hear that you have solved your problem and that all is working now.

But from your post (the one you amended) I haven't understood how you solved the problem.

Maybe these informations will be useful for another person who will have your same problem in future.

Regards
Carlo D.
Logged

Carlo D. (onekk)

eShapeoko #343 750x1000 mm + GRBL + bCNC + CamBam
Pages: [1] 2 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.143 seconds with 19 queries.

Copyright © 2018 HexRay Ltd. | Sitemap