New unofficial windows build and updated libpack

Having trouble installing or compiling FreeCAD? Get help here.
peterl94
Posts: 999
Joined: Thu May 23, 2013 7:31 pm
Location: United States

New unofficial windows build and updated libpack

Postby peterl94 » Sun Mar 16, 2014 8:30 pm

Hey guys,

I finally have a working build using my new LibPack: FreeCAD_r3343_x86_vc9.7z
OS: Windows 7
Platform: 32-bit
Version: 0.14.3343 (Git)
Branch: libpack
Hash: 8dcb8f68cf17ef152d34d226d7699c98c5bb59fb
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0


The LibPack is available here, and contains the following libraries:
boost 1.55
coin 3.1.3
eigen 3.2.1
f2c
freeimage 3.15.4
freetype 2.5.2
netgen 4.9.14
oce 0.15
pyside 1.2.1
python 2.7.6
qt 4.8.5
shiboken 1.2.1
soqt 1.5.0
xerces-c 3.1.1
zlib 1.2.8

Note: it is not a drop-in replacement for LibPack 8.1. I tried to keep it a pretty much a standard unix layout so that it can be used with FREECAD_LIBPACK_USE=OFF, but I did have to make few changes to the cmake files to get it to work.

How to use this LibPack:

1. checkout my branch peterl94/libpack or cherry-pick commits 24682eec0d43ef, a80354260545bb, 0a4c352fef9547, and e274f70e524ff3 from it.

2. add C:\path\to\FCLibs_x86_vc9\bin to the PATH environment variable

3. set CMAKE_PREFIX_PATH environment variable to C:\path\to\FCLibs_x86_vc9

4. Set the following cmake variables:
FREECAD_LIBPACK_USE=OFF
OCE_DIR=C:\path\to\FCLibs_x86_vc9\lib\cmake

If you use cmake-gui, and you set the environment variables from the command line, launch cmake-gui from the same shell so that it will have the same environment.

Example:

Code: Select all

set PATH=C:\Users\Peter\FClib_pkg\FCLibs_x86_vc9\bin;%PATH%
set CMAKE_PREFIX_PATH=C:\Users\Peter\FClib_pkg\FCLibs_x86_vc9
cmake -DCMAKE_INSTALL_PREFIX=C:\Users\Peter\FreeCAD\FreeCAD_x86_vc9 ^
 -DFREECAD_LIBPACK_USE=OFF ^
 -DFREECAD_USE_FREETYPE=ON ^
 -DOCE_DIR=C:\Users\Peter\FClib_pkg\FCLibs_x86_vc9\lib\cmake ^
 -G "Visual Studio 9 2008" ..\FreeCAD-src


Next, I hope to create a LibPack with Visual Studio 2013, but it's going to be a while before I have the time.
User avatar
microelly2
Posts: 4415
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: New unofficial windows build and updated libpack

Postby microelly2 » Wed Apr 02, 2014 2:26 pm

hallo peter
I have tried to build with your libpack

the problem is:

Code: Select all

1>------ Build started: Project: SMDS, Configuration: Release Win32 ------
1>Compiling...
2>------ Build started: Project: MEFISTO2, Configuration: Release Win32 ------
3>------ Build started: Project: FreeCADBase, Configuration: Release Win32 ------
2>Linking...
1>SMDS_VolumeTool.cpp
2>LINK : fatal error LNK1181: cannot open input file 'MEFISTO2f.lib'

Code: Select all

Command Lines
  	

Creating temporary file "e:\built_april3\src\3rdParty\salomesmesh\MEFISTO2.dir\Release\RSP00000246644840.rsp" with contents
[
/OUT:"E:\built_april3\bin\Release\..\MEFISTO2.dll" /VERSION:0.0 /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:"MEFISTO2.dir\Release\MEFISTO2.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB /DEF:"E:\freecad\free-cad-code\src\3rdParty\salomesmesh\src\MEFISTO2\MEFISTO2F.def" /PDB:"E:\built_april3\bin\Release\..\MEFISTO2.pdb" /DYNAMICBASE /NXCOMPAT /IMPLIB:"E:\built_april3\lib\Release\MEFISTO2.lib"  /machine:X86 /LARGEADDRESSAWARE kernel32.lib user32.lib gdi32.lib winspool.lib SHFolder.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  MSVCRT.lib MSVCPRT.lib Rpcrt4.lib E:\freecad\freecadlibs\lib\nglib.lib E:\freecad\freecadlibs\lib\TKFillet.lib E:\freecad\freecadlibs\lib\TKMesh.lib E:\freecad\freecadlibs\lib\TKernel.lib E:\freecad\freecadlibs\lib\TKG2d.lib E:\freecad\freecadlibs\lib\TKG3d.lib E:\freecad\freecadlibs\lib\TKMath.lib E:\freecad\freecadlibs\lib\TKIGES.lib E:\freecad\freecadlibs\lib\TKSTL.lib E:\freecad\freecadlibs\lib\TKShHealing.lib E:\freecad\freecadlibs\lib\TKXSBase.lib E:\freecad\freecadlibs\lib\TKBool.lib E:\freecad\freecadlibs\lib\TKBO.lib E:\freecad\freecadlibs\lib\TKBRep.lib E:\freecad\freecadlibs\lib\TKTopAlgo.lib E:\freecad\freecadlibs\lib\TKGeomAlgo.lib E:\freecad\freecadlibs\lib\TKGeomBase.lib E:\freecad\freecadlibs\lib\TKOffset.lib E:\freecad\freecadlibs\lib\TKPrim.lib E:\freecad\freecadlibs\lib\TKSTEP.lib E:\freecad\freecadlibs\lib\TKSTEPBase.lib E:\freecad\freecadlibs\lib\TKSTEPAttr.lib E:\freecad\freecadlibs\lib\TKHLR.lib E:\freecad\freecadlibs\lib\TKFeat.lib E:\freecad\freecadlibs\lib\TKCAF.lib E:\freecad\freecadlibs\lib\TKXCAF.lib E:\freecad\freecadlibs\lib\TKLCAF.lib E:\freecad\freecadlibs\lib\TKXDESTEP.lib E:\freecad\freecadlibs\lib\TKXDEIGES.lib E:\freecad\freecadlibs\lib\TKMeshVS.lib E:\freecad\freecadlibs\lib\TKAdvTools.lib MEFISTO2f.lib E:\freecad\freecadlibs\lib\TKSTEP.lib E:\freecad\freecadlibs\lib\TKSTEP209.lib E:\freecad\freecadlibs\lib\TKSTEPAttr.lib E:\freecad\freecadlibs\lib\TKSTEPBase.lib E:\freecad\freecadlibs\lib\TKIGES.lib E:\freecad\freecadlibs\lib\TKOffset.lib E:\freecad\freecadlibs\lib\TKFillet.lib E:\freecad\freecadlibs\lib\TKBool.lib E:\freecad\freecadlibs\lib\TKPrim.lib E:\freecad\freecadlibs\lib\TKXSBase.lib E:\freecad\freecadlibs\lib\TKXCAF.lib E:\freecad\freecadlibs\lib\TKCAF.lib E:\freecad\freecadlibs\lib\TKBO.lib E:\freecad\freecadlibs\lib\TKLCAF.lib E:\freecad\freecadlibs\lib\TKCDF.lib E:\freecad\freecadlibs\lib\TKV3d.lib E:\freecad\freecadlibs\lib\TKMesh.lib E:\freecad\freecadlibs\lib\TKHLR.lib E:\freecad\freecadlibs\lib\TKService.lib E:\freecad\freecadlibs\lib\TKShHealing.lib E:\freecad\freecadlibs\lib\TKTopAlgo.lib E:\freecad\freecadlibs\lib\TKGeomAlgo.lib E:\freecad\freecadlibs\lib\TKBRep.lib E:\freecad\freecadlibs\lib\TKGeomBase.lib E:\freecad\freecadlibs\lib\TKG3d.lib E:\freecad\freecadlibs\lib\TKG2d.lib E:\freecad\freecadlibs\lib\TKMath.lib C:\Users\Peter\FClib_pkg\FCLibs_x86_vc9\lib\FreeImage.lib C:\Users\Peter\FClib_pkg\FCLibs_x86_vc9\lib\freetype.lib E:\freecad\freecadlibs\lib\TKernel.lib ws2_32.lib advapi32.lib gdi32.lib user32.lib kernel32.lib psapi.lib

".\MEFISTO2.dir\Release\aptrte.obj"
]
Creating command line "link.exe @e:\built_april3\src\3rdParty\salomesmesh\MEFISTO2.dir\Release\RSP00000246644840.rsp /NOLOGO /ERRORREPORT:PROMPT"

Output Window
 	 	

Linking...
LINK : fatal error LNK1181: cannot open input file 'MEFISTO2f.lib'

any idea?
thanks thomas.
peterl94
Posts: 999
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: New unofficial windows build and updated libpack

Postby peterl94 » Wed Apr 02, 2014 4:10 pm

Did you follow step one?
peterl94 wrote:1. checkout my branch peterl94/libpack or cherry-pick commits 24682eec0d43ef, a80354260545bb, 0a4c352fef9547, and e274f70e524ff3 from it.
User avatar
microelly2
Posts: 4415
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: New unofficial windows build and updated libpack

Postby microelly2 » Wed Apr 02, 2014 9:18 pm

peterl94 wrote:Did you follow step one?
peterl94 wrote:1. checkout my branch peterl94/libpack or cherry-pick commits 24682eec0d43ef, a80354260545bb, 0a4c352fef9547, and e274f70e524ff3 from it.
sorry but yes, I checked out your branch.
peterl94
Posts: 999
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: New unofficial windows build and updated libpack

Postby peterl94 » Thu Apr 03, 2014 12:41 am

Okay, can you check if the cmake option FREECAD_USE_F2C is on?
User avatar
microelly2
Posts: 4415
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: New unofficial windows build and updated libpack

Postby microelly2 » Thu Apr 03, 2014 9:47 pm

No success

There are still too many errors in my built, so I think that I have to install something else or something is not right configured.

Can you send me your CMakeCache.txt file - so I can compare it against my one.
thank you
thomas
peterl94
Posts: 999
Joined: Thu May 23, 2013 7:31 pm
Location: United States

Re: New unofficial windows build and updated libpack

Postby peterl94 » Fri Apr 04, 2014 1:52 am

Sure:
CMakeCache.zip
(16.86 KiB) Downloaded 104 times