kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #14975
Re: OS X build issue when rerunning CMake
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxxxx>
-
Date:
Mon, 06 Oct 2014 15:52:37 -0400
-
In-reply-to:
<CAJXA3hRZ5qE_tiNXLLAomM5TpDtiOC5D+KfRy2=thv_vJLt2Hw@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2
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
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References