Compiling on Windows - Won't Compile Wix

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
jfreak53
Posts: 2
Joined: Fri Apr 26, 2013 6:24 pm

Compiling on Windows - Won't Compile Wix

Post by jfreak53 »

I have been trying to compile on Windows 7 for some days now without success. The compile works fine and the application starts up without problems and works just fine. But Wix won't make an installer no matter what I do. I do have Wix installed:
http://i.imgur.com/yiQ8iDb.png

But first off when I run the cMake config app I get no Wix installer option to check:
http://i.imgur.com/OXpmcHG.png

As you can see there is no FREECAD_BUILD_INSTALLER checkbox. I have Visual C++ Express 2008 installed for my compile and Wix 3.7.

When I run the Build it works, but when it tries to compile the INSTALL trunk I get all kinds of errors:

Code: Select all

------ Build started: Project: Fem, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'MEFISTO2.lib'
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\src\Mod\Fem\App\Fem.dir\Release\BuildLog.htm"
Fem - 1 error(s), 0 warning(s)
------ Build started: Project: MeshPart, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'MEFISTO2.lib'
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\src\Mod\MeshPart\App\MeshPart.dir\Release\BuildLog.htm"
MeshPart - 1 error(s), 0 warning(s)
------ Build started: Project: MeshPartGui, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file '..\App\Release\MeshPart.lib'
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\src\Mod\MeshPart\Gui\MeshPartGui.dir\Release\BuildLog.htm"
MeshPartGui - 1 error(s), 0 warning(s)
------ Build started: Project: FemGui, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file '..\App\Release\Fem.lib'
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\src\Mod\Fem\Gui\FemGui.dir\Release\BuildLog.htm"
FemGui - 1 error(s), 0 warning(s)
------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------
Building Custom Rule C:/Users/Land/Desktop/freecad-0.13.1830/freecad-0.13.1830/CMakeLists.txt
CMake is re-running because C:\Users\Land\Desktop\FreeCAD-Bin\CMakeFiles\generate.stamp dependency file is missing.
-- prefix: C:/Program Files/FreeCAD_trunk
-- datadir: data
-- docdir: doc
-- includedir: include
CMake Error at CMakeLists.txt:153 (message):
  Could not find neither LibPack 6.x nor 7.x in specified
  location:C:/Users/Land/Desktop/freecad-0.13.1830/freecad-0.13.1830
-- Could NOT find SWIG (missing:  SWIG_EXECUTABLE SWIG_DIR) 
SWIG was not found, build no SWIG binding for pivy
-- Platform is 32-bit
CMake Warning (dev) at src/3rdParty/Pivy/CMakeLists.txt:41 (target_link_libraries):
  Link library type specifier "debug" is followed by specifier "optimized"
  instead of a library name.  The first specifier will be ignored.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at src/3rdParty/Pivy/CMakeLists.txt:41 (target_link_libraries):
  Link library type specifier "optimized" is followed by specifier "debug"
  instead of a library name.  The first specifier will be ignored.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Warning (dev) at src/3rdParty/Pivy/CMakeLists.txt:41 (target_link_libraries):
  Link library type specifier "debug" is followed by specifier "optimized"
  instead of a library name.  The first specifier will be ignored.
This warning is for project developers.  Use -Wno-dev to suppress it.
CMake Error at src/3rdParty/Pivy/CMakeLists.txt:41 (target_link_libraries):
  The "optimized" argument must be followed by a library.
-- Configuring incomplete, errors occurred!
Project : error PRJ0019: A tool returned an error code from "Building Custom Rule C:/Users/Land/Desktop/freecad-0.13.1830/freecad-0.13.1830/CMakeLists.txt"
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\ALL_BUILD.dir\Release\BuildLog.htm"
ALL_BUILD - 1 error(s), 0 warning(s)
------ Build started: Project: INSTALL, Configuration: Release Win32 ------
 
Performing Post-Build Event...
-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:31 (FILE):
  file cannot create directory: C:/Program Files/FreeCAD_trunk/doc.  Maybe
  need administrative privileges.
Call Stack (most recent call first):
  cmake_install.cmake:32 (INCLUDE)
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
Build log was saved at "file://c:\Users\Land\Desktop\FreeCAD-Bin\INSTALL.dir\Release\BuildLog.htm"
INSTALL - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 7 failed, 50 up-to-date, 0 skipped ==========
And Wix never creates the installer.
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compiling on Windows - Won't Compile Wix

Post by wmayer »

Check the error messages:
------ Build started: Project: Fem, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1181: cannot open input file 'MEFISTO2.lib'
MEFISTO2.lib is missing. Haven't you built the project for it? (See the Solution Explorer of VS)
CMake Error at CMakeLists.txt:153 (message):
Could not find neither LibPack 6.x nor 7.x in specified
location:C:/Users/Land/Desktop/freecad-0.13.1830/freecad-0.13.1830
Which LibPack yo you use? Go for 8.x.
Performing Post-Build Event...
-- Install configuration: "Release"
CMake Error at src/cmake_install.cmake:31 (FILE):
file cannot create directory: C:/Program Files/FreeCAD_trunk/doc. Maybe
need administrative privileges.
You don't need to trigger the INSTALL target. Once the build is finished you have to run the "BuildInstaller.bat" script (src/WindowsInstaller). And you have to adjust the file to your needs, e.g. the WiX location.
jfreak53
Posts: 2
Joined: Fri Apr 26, 2013 6:24 pm

Re: Compiling on Windows - Won't Compile Wix

Post by jfreak53 »

As far as that goes I did a Build Project as the Wiki said to do, it built everything that I know of.

I am using Version 8.1 of LibPack
FreeCADLibs_8.1_x86_VC9

No where can I find that src/WindowsInstaller in my src directory:
http://i.imgur.com/co5pLAL.png
http://i.imgur.com/b91pvUh.png
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Compiling on Windows - Won't Compile Wix

Post by wmayer »

You have downloaded a source tarball rather than doing a checkout with git. Our tarballs don't include the WindowsInstaller directory but you can download it manually, then.
pperisin
Posts: 695
Joined: Wed Oct 20, 2010 12:29 pm

Re: Compiling on Windows - Won't Compile Wix

Post by pperisin »

Hi,

when I am building installer for win:

1 - I copy entire content of libpack into source directory
2 - I make in-source build (set it with cmake to have both directories to be source dir)
3 - compile
4 - (because of 2 bugs) modify stuff described here:
https://sourceforge.net/apps/mantisbt/f ... hp?id=1120
5 - run BuildInstaller.bat

Regards,
Petar
pperisin
Posts: 695
Joined: Wed Oct 20, 2010 12:29 pm

Re: Compiling on Windows - Won't Compile Wix

Post by pperisin »

P.S. - there is first 0.14 unstable added to downloads today. I'm currently adding 7z of it.
pperisin
Posts: 695
Joined: Wed Oct 20, 2010 12:29 pm

Re: Compiling on Windows - Won't Compile Wix

Post by pperisin »

pperisin wrote:Hi,

when I am building installer for win:

1 - I copy entire content of libpack into source directory
2 - I make in-source build (set it with cmake to have both directories to be source dir)
3 - compile
4 - (because of 2 bugs) modify stuff described here:
https://sourceforge.net/apps/mantisbt/f ... hp?id=1120

5 - run BuildInstaller.bat

Regards,
Petar

Number 4 wass fixed by werner, recently. so no need to edit anything any more
Post Reply