TechDraw Windows Compile Volunteer

Discussions about the development of the TechDraw workbench
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: TechDraw Windows Compile Volunteer

Post by wmayer »

Still no luck so I gave up. So, attached as a patch (remove the .zip)

Here are the changes:
+ do not link FreeCADApp against QtGui
Material.h added a method to convert between QColor and App::Color. However, QColor is part of QtGui and thus FreeCADApp has a dependency to QtGui that is a no-go. In order to still allow the conversion I replaced the method by a template method.
src/App/Material.h
src/Mod/TechDraw/App/GraphicsItems/GIBase.cpp
src/Mod/TechDraw/App/GraphicsItems/GIPage.cpp
src/Mod/TechDraw/Gui/QGIEdge.cpp
src/Mod/TechDraw/Gui/QGIFace.cpp
src/Mod/TechDraw/Gui/QGIHatch.cpp
src/Mod/TechDraw/Gui/QGIVertex.cpp
src/Mod/TechDraw/Gui/QGIViewDimension.cpp
src/Mod/TechDraw/Gui/QGIViewPart.cpp

+ port to occ7
src/Mod/Drawing/App/PreCompiled.h
src/Mod/MeshPart/App/PreCompiled.h
src/Mod/Part/App/OpenCascadeAll.h
src/Mod/TechDraw/App/Geometry.cpp
src/Mod/TechDraw/App/GeometryObject.cpp
src/Mod/TechDraw/App/GeometryObject.h

+ fix various build errors
src/Mod/Measure/App/PreCompiled.h
src/Mod/TechDraw/Gui/PreCompiled.h
src/Mod/TechDraw/App/CMakeLists.txt
src/Mod/TechDraw/App/GraphicsItems/PreCompiled.h

The file src/Mod/TechDraw/App/GraphicsItems/PreCompiled.h must be removed because a target can only have one pre-compiled headers and not two or more. In order to let the source files in a sub-directory find the pre-compiled header the include path must be extended.
Attachments
techdraw-fix.patch.zip
(25.03 KiB) Downloaded 140 times
wmayer
Founder
Posts: 20319
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: TechDraw Windows Compile Volunteer

Post by wmayer »

I got it working now. The problem was that my cloned remote master was hopelessly outdated. After merging official master branch everything is fine now.
So, here is a branch which my changes: https://github.com/wwmayer/FreeCAD/commits/TechDraw-fix
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw Windows Compile Volunteer

Post by wandererfan »

techdraw-fix.patch applied here: https://github.com/WandererFan/FreeCAD- ... e/TechDraw. Thanks for your help.

Rebase & warnings tomorrow if all goes well.

wf
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: TechDraw Windows Compile Volunteer

Post by ian.rees »

wandererfan wrote: Rebase & warnings tomorrow if all goes well.
If you don't mind holding off on those warnings for now, that would make my current project a bit easier. -Ian-
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw Windows Compile Volunteer

Post by wandererfan »

ian.rees wrote:If you don't mind holding off on those warnings for now, that would make my current project a bit easier. -Ian-
Ok, I'll talk to you before I apply anything.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: TechDraw Windows Compile Volunteer

Post by sgrogan »

Small thing
Line 36 in InitGui.py should be

Code: Select all

 self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/TechDraw/Resources/icons/preferences-TechDraw.svg"
"fight the good fight"
User avatar
wandererfan
Veteran
Posts: 6326
Joined: Tue Nov 06, 2012 5:42 pm
Contact:

Re: TechDraw Windows Compile Volunteer

Post by wandererfan »

cox wrote:/home/kjetil/src/td/FreeCAD-TechDraw/src/Mod/TechDraw/App/DrawViewSymbol.cpp:107:24: error: ‘boost::re_detail’ has not been declared
boost::re_detail::string_out_iterator<std::string > out(newsvg);
^~~~~~~~~
This is probably a boost version thing. See issue #2347. I've applied the same fix to DrawViewSymbol, so you should be good now. Let me know.

Thanks for helping!

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

Re: TechDraw Windows Compile Volunteer

Post by wandererfan »

sgrogan wrote:Small thing
Line 36 in InitGui.py should be

Code: Select all

 self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/TechDraw/Resources/icons/preferences-TechDraw.svg"
Thanks!
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: TechDraw Windows Compile Volunteer

Post by cox »

wandererfan wrote: This is probably a boost version thing. See issue #2347. I've applied the same fix to DrawViewSymbol, so you should be good now. Let me know.

Thanks for helping!

wf
Builds and runs like a charm :D :D excellent stuff. Thanks for making and sharing it.

OS: "Arch Linux"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7641 (Git)
Build type: Unknown
Branch: TechDraw
Hash: 0cc16b1e7ce600c2bdcb28f8f5703647db2c2b5d
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1
Need help? Feel free to ask, but please read the guidelines first
Post Reply