TechDraw Windows Compile Volunteer
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: TechDraw Windows Compile Volunteer
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.
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
Re: TechDraw Windows Compile Volunteer
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
So, here is a branch which my changes: https://github.com/wwmayer/FreeCAD/commits/TechDraw-fix
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw Windows Compile Volunteer
techdraw-fix.patch applied here: https://github.com/WandererFan/FreeCAD- ... e/TechDraw. Thanks for your help.
Rebase & warnings tomorrow if all goes well.
wf
Rebase & warnings tomorrow if all goes well.
wf
Re: TechDraw Windows Compile Volunteer
If you don't mind holding off on those warnings for now, that would make my current project a bit easier. -Ian-wandererfan wrote: Rebase & warnings tomorrow if all goes well.
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw Windows Compile Volunteer
Ok, I'll talk to you before I apply anything.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-
Re: TechDraw Windows Compile Volunteer
Small thing
Line 36 in InitGui.py should be
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"
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw Windows Compile Volunteer
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.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);
^~~~~~~~~
Thanks for helping!
wf
- wandererfan
- Veteran
- Posts: 6326
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: TechDraw Windows Compile Volunteer
Thanks!sgrogan wrote:Small thing
Line 36 in InitGui.py should beCode: Select all
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/TechDraw/Resources/icons/preferences-TechDraw.svg"
Re: TechDraw Windows Compile Volunteer
Builds and runs like a charm excellent stuff. Thanks for making and sharing it.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
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