Mac OS X build BZR 5324 on 10.10.1

Hi there,

Perhaps there is a better forum, the developers mailing list for example, but I’ll try here first.

I’m building latest kicad revision bzr 5324 and the everything seems fine until:

    cmake ../kicad -DCMAKE_C_COMPILER=clang
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 
-DwxWidgets_CONFIG_EXECUTABLE=../wx-bin/bin/wx-config 
-DPYTHON_EXECUTABLE=`which python` 
-DPYTHON_SITE_PACKAGE_PATH=`pwd`/../wx-bin/lib/python2.7/site-packages 
-DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON 
-DKICAD_SCRIPTING_WXPYTHON=ON -DCMAKE_INSTALL_PREFIX=../bin 
-DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 6.0.0.6000056
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:79 (install):
  install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable
  target "kicad".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.0)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/Users/jsr/dev_ext/kicad.bzr/build/CMakeFiles/CMakeOutput.log".

My cmake version is 3.0.2 as supplied by Homebrew. wxWidgets seemed to patch and build fine.

Any pointers appreciated.

best talk to metacollin

Change the first arguement to …/ instead of …/kicad:

cmake ../ #Rest of the args here

not

cmake ../kicad #Rest of args here

That won’t necessarily make it work, but that should fix this problem and get you to the next (if there is one) ;).

That command you are running is verbatim the command in the mac-osx.txt documentation, but that command only works if you have your directory structure laid out exactly as the instructions tell you.

You’ll need to either follow the instructions including how you setup your directory structure OR change the paths you give cmake, PYTHON_SITE_PACKAGE_PATH, and wxWidgets_CONFIG_EXECUTABLE to reflect any differences with your setup.

Also, I would do an rm -rf * in your build folder to clear out the cache files whenever running cmake with new settings, THEN once build is empty, run cmake …/ followed by whatever other flags you want as well. If you change flags, repeat.

Thanks @metacollin this was careless of me. I wondered about the instructions as something appeared to be amiss at the time.

All looks good. I’m able to view some projects now.