well, I don't have OSX but I have exactly the same issues on Fedora 20
as Adam had on OSX. And I am building with wxWidgets 3.0.1 and cmake
2.8.12.2 (system version)
Now, I got this combo to work by hacking the cmake files so that when
it wanted to fail on the final pass for version check I had the check
return true rather than the false it wanted to return. Poof! suddenly
everything worked build-wise after that and it used my wxWidgets 3.0.1.
But, when I run against this version of wxWidgets I encounter a
run-time assertion when I run DRC checks against my schematic (8
sheets). I don't really care about these assertions, wxWidgets asserts
against itself or so the backtrace implies. If I continue after the
assertion DRC completes, as if nothing had happened. Still this doesn't
make me like wxWigets 3.0.1.
Anyway, I like Wayne's hack better than mine, though the result is the same.
I have downloaded wxWidgets 3.0.2 and cmake 3.0.2, which is where Adam
ended up, and see if that combo works better on Fedora 20.
crossing my fingers.
On 10/06/2014 02:52 PM, Wayne Stambaugh 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 : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp
.
_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kicad-developers
More help : https://help.launchpad.net/ListHelp