kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14982
Re: OS X build issue when rerunning CMake
Hi Wayne,
I was running with wxWidgets 3.0.2, but CMake 2.8.12.2.
Adam Wolf
Cofounder and Engineer
W&L
On Mon, Oct 6, 2014 at 3:19 PM, Wayne Stambaugh <stambaughw@xxxxxxxxxxx>
wrote:
> On 10/6/2014 4:00 PM, Adam Wolf wrote:
> > Hi Wayne,
> >
> > Thanks for the prompt response. That modification does not appear to
> > have worked.
> >
> > I am using CMake cmake-2.8.12.2. I guess there has been a more recent
> > release--I will go update that.
>
> That's a more serious problem. It should have failed the first time you
> ran CMake with wxWidgets 2.8.12.2 because the minimum version is now
> 3.0.0. Make sure you apply the osx patches to wxWidgets from our
> patches folder before you build it. I think Bernhard documented that as
> well when he updated the osx build documentation.
>
> >
> > Adam Wolf
> > Cofounder and Engineer
> > W&L
> >
> > On Mon, Oct 6, 2014 at 2:52 PM, Wayne Stambaugh <stambaughw@xxxxxxxxxxx
> > <mailto:stambaughw@xxxxxxxxxxx>> wrote:
> >
> > On 10/6/2014 3:32 PM, Adam Wolf wrote:
> > > Hi folks,
> > >
> > > I'm working on scripting the great new work from Bernhard. The
> last
> > > remaining issue before publishing the builder script to the
> > > KicadOSXBuilder repo that Miguel made is that I am having problems
> > when
> > > I rerun CMake. When I start clean, everything works great!
> > >
> > > I am following the instructions
> > > in
> >
> https://bazaar.launchpad.net/~kicad-product-committers/kicad/product/view/head:/Documentation/compiling/mac-osx.txt
> .
> > >
> > > If I have a build/ directory, go into it, and run
> > >
> > > cmake ../kicad \
> > >
> > > -DCMAKE_C_COMPILER=clang \
> > > -DCMAKE_CXX_COMPILER=clang++ \
> > > -DwxWidgets_CONFIG_EXECUTABLE=../wx-bin/bin/wx-config \
> > > -DKICAD_SCRIPTING=OFF \
> > > -DKICAD_SCRIPTING_MODULES=OFF \
> > > -DKICAD_SCRIPTING_WXPYTHON=OFF \
> > > -DCMAKE_INSTALL_PREFIX=../bin \
> > > -DCMAKE_BUILD_TYPE=Release
> > >
> > > It works, generates great Makefiles that work great. I can
> > immediately
> > > rerun the exact same CMake command, and I get the following error:
> > >
> > > CMake Error at CMakeModules/FindPackageHandleStandardArgs.cmake:136
> > > (message):
> > > Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES)
> > (Required is at
> > > least version "3.0.0")
> > > Call Stack (most recent call first):
> > > CMakeModules/FindPackageHandleStandardArgs.cmake:343
> > > (_FPHSA_FAILURE_MESSAGE)
> > > CMakeModules/FindwxWidgets.cmake:901
> > (find_package_handle_standard_args)
> > > CMakeLists.txt:408 (find_package)
> >
> > Try commenting out line 903 in CMakeModules/FindwxWidgets.cmake which
> > looks like:
> >
> > REQUIRED_VARS wxWidgets_LIBRARIES
> >
> > It appears that CMake is not finding the wxWidgets libraries on the
> > second pass after they have already been found. I don't see this on
> > windows or linux. I don't think this hack will work because I
> believe
> > that find_package_handle_standards_args() expects REQUIRED_VARS when
> > using it to test the for the found version.
> >
> > >
> > > If I clobber out the CMake files, and leave the rest of the build
> > > artifacts alone, CMake will rebuild successfully.
> >
> > This is very strange. Any thoughts Bernhard? Also, what version of
> > CMake are you using? At least it sounds like you can build a OSX
> bundle
> > which is a good first start.
> >
> > Thanks,
> >
> > Wayne
> >
> >
> > >
> > > Any thoughts?
> > >
> > > Adam Wolf
> > > Cofounder and Engineer
> > > W&L
> > >
> > >
> > > _______________________________________________
> > > Mailing list: https://launchpad.net/~kicad-developers
> > > Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> > > Unsubscribe : https://launchpad.net/~kicad-developers
> > > More help : https://help.launchpad.net/ListHelp
> > >
> >
> >
> > _______________________________________________
> > Mailing list: https://launchpad.net/~kicad-developers
> > Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> > <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> > Unsubscribe : https://launchpad.net/~kicad-developers
> > More help : https://help.launchpad.net/ListHelp
> >
> >
>
>
Follow ups
References