First test drive ...

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: First test drive ...

Post by ulrich1a »

Just to add another test-environment. The error does also show up with a windows-version on wine.

OS: Windows XP
Word size of OS: 32-bit
Word size of FreeCAD: 32-bit
Version: 0.17.10894 (Git)
Build type: Release
Branch: master
Hash: 6e5bba3999b49098cac93482a13afca243a89d04
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

I saw, that on wine, there are no parameters available in the parameter-editor at Preferences/Mod/Techdraw/all subfolders. This is different with a Linux-version. There have some subfolders stored values.

Ulrich
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: First test drive ...

Post by wandererfan »

wandererfan wrote:I've started configuring a Win7 build environment, but I'll be overjoyed if I don't have to finish it!
Arrgh. I've advanced my win environment to the point where cmake can't find boost. Progress of a sort. :?
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: First test drive ...

Post by sgrogan »

wandererfan wrote:Arrgh. I've advanced my win environment to the point where cmake can't find boost. Progress of a sort. :?
How are you gathering the dependencies?
"fight the good fight"
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: First test drive ...

Post by ian.rees »

I had a little time to tinker with this tonight - there are a couple different but related problems. One is that the DlgTemplateField isn't getting deleted after it's accepted, and I think the other is related to the TemplateTextField mouse press event handler not being cleaned up... Will try to look at it more in the morning and maybe make a PR. -Ian-
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: First test drive ...

Post by wandererfan »

ian.rees wrote:I had a little time to tinker with this tonight - there are a couple different but related problems. One is that the DlgTemplateField isn't getting deleted after it's accepted, and I think the other is related to the TemplateTextField mouse press event handler not being cleaned up... Will try to look at it more in the morning and maybe make a PR. -Ian-
FWIW, this is as far as I got in my "thought experiment":

Code: Select all

@@ -72,7 +73,9 @@ void TemplateTextField::execDialog()
            tmplte->EditableTexts.setValue(fieldNameStr, utf8Content);
        }
     }
-    ui = nullptr;               //ui memory will be release by ui's parent Widget
+    ui->close();
+    ui = nullptr;
+    scene()->clearSelection();
 }
 
 void TemplateTextField::mousePressEvent(QGraphicsSceneMouseEvent *event)
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: First test drive ...

Post by wandererfan »

sgrogan wrote:How are you gathering the dependencies?
github...sgrogan...FreeCADLibs_11.5.2_x64_VC12 ??

got further last night. pointed all the CMAKE variables for Boost libs directly to the libraries. Now Boostlibs are found, but don't like my compiler.

Have to figure out how to downgrade VS2017 to VS20?? or install Boost 1.64.

This was all a lot easier on WinNT with Borland tools. :oops:
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: First test drive ...

Post by triplus »

Note that on Ubuntu 17.04 i have 2 dev builds. One is against Qt 4 and one against Qt 5. And the Qt 5 build has the behaviour when the pop-up stays persistent. Qt 4 build doesn't have such behaviour and everything works as expected.
ulrich1a
Veteran
Posts: 1957
Joined: Sun Jul 07, 2013 12:08 pm

Re: First test drive ...

Post by ulrich1a »

wandererfan wrote:Have to figure out how to downgrade VS2017 to VS20??
Here is a download link for Visual Studio Express 2013. It is posted at the wine page: https://appdb.winehq.org/objectManager. ... &iId=32010

http://download.microsoft.com/download/ ... xp_ENU.iso

Ulrich
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: First test drive ...

Post by sgrogan »

wandererfan wrote:github...sgrogan...FreeCADLibs_11.5.2_x64_VC12 ??

got further last night. pointed all the CMAKE variables for Boost libs directly to the libraries. Now Boostlibs are found, but don't like my compiler.

Have to figure out how to downgrade VS2017 to VS20?? or install Boost 1.64.
You must use VS2013 with this libpack. VS is very intolerant and everything needs to be compiled with the same version. Wth VS2013 + libpack cmake should find everything after setting the path to the libpack.
EDIT: Also see here: viewtopic.php?f=4&t=20602#p159717
"fight the good fight"
User avatar
wandererfan
Veteran
Posts: 6268
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: First test drive ...

Post by wandererfan »

ulrich1a wrote:
sgrogan wrote:
Progress!!

OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10887 (Git)
Build type: Release
Branch: master
Hash: 67fc70dadae471cb3d77dcf5562b4a86ec79f95d
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0

Now that I can duplicate the behaviour, I just have to figure out what's wrong with the code. :?
Post Reply