TechDraw Windows Compile Volunteer

Discussions about the development of the TechDraw workbench
wmayer
Site Admin
Posts: 15259
Joined: Thu Feb 19, 2009 10:32 am

Re: TechDraw Windows Compile Volunteer

Postby wmayer » Tue May 17, 2016 2:07 pm

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 47 times
wmayer
Site Admin
Posts: 15259
Joined: Thu Feb 19, 2009 10:32 am

Re: TechDraw Windows Compile Volunteer

Postby wmayer » Tue May 17, 2016 7:30 pm

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
Posts: 3477
Joined: Tue Nov 06, 2012 5:42 pm

Re: TechDraw Windows Compile Volunteer

Postby wandererfan » Wed May 18, 2016 1:54 am

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

Postby ian.rees » Wed May 18, 2016 8:22 am

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
Posts: 3477
Joined: Tue Nov 06, 2012 5:42 pm

Re: TechDraw Windows Compile Volunteer

Postby wandererfan » Wed May 18, 2016 12:49 pm

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
Posts: 5584
Joined: Wed Oct 22, 2014 5:02 pm

Re: TechDraw Windows Compile Volunteer

Postby sgrogan » Wed May 18, 2016 6:22 pm

Small thing
Line 36 in InitGui.py should be

Code: Select all

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

Re: TechDraw Windows Compile Volunteer

Postby wandererfan » Thu May 19, 2016 12:40 pm

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
Posts: 3477
Joined: Tue Nov 06, 2012 5:42 pm

Re: TechDraw Windows Compile Volunteer

Postby wandererfan » Thu May 19, 2016 12:47 pm

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: 963
Joined: Wed Nov 26, 2014 11:37 pm

Re: TechDraw Windows Compile Volunteer

Postby cox » Fri May 20, 2016 7:48 am

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