Open flagsoft opened 9 years ago
KiCadOSXBuilder is no longer supported.
But there's good news! There's been significant work on the codebase that means it's easy to do this manually today, and someone will probably package it up nicely in a script shortly. For starters, read this:
There's a few minor errors...
1) The "patch" commands are missing a character, they should look like this:
Notice the "<" character has been added, it won't work without that.
2) If you've got a multiple core (or hyperthreaded) machine, you can parallelize make by doing:
make -j N
Where "N" is the number of concurrent processes. I usually do cores + 1 (this is the fastest, generally), but if you want a usable system while it's compiling in the background do cores - 1 or cores - 2. Do note, there may be an error where a file isn't generated before it's required, if this happens simply re-run without the "-j" flag before trying anything else.
It works well, I'm using KiCad on my OS X (10.9.5) laptop right now as we speak. Just keep in mind that it's very much at a beta level right now, if that, so be careful using it for anything important!
Thanks iwoloschin!
On Sun, Oct 5, 2014 at 5:48 PM, iwoloschin notifications@github.com wrote:
KiCadOSXBuilder is no longer supported.
But there's good news! There's been significant work on the codebase that means it's easy to do this manually today, and someone will probably package it up nicely in a script shortly. For starters, read this:
There's a few minor errors...
1) The "patch" commands are missing a character, they should look like this:
patch -p0 < ../kicad/patches/wxwidgets-3.0.0_macosx.patch
patch -p0 < ../kicad/patches/wxwidgets-3.0.0_macosx_bug_15908.patch
patch -p0 < ../kicad/patches/wxwidgets-3.0.0_macosx_soname.patch
Notice the "<" character has been added, it won't work without that.
2) If you've got a multiple core (or hyperthreaded) machine, you can parallelize make by doing:
make -j N
Where "N" is the number of concurrent processes. I usually do cores + 1 (this is the fastest, generally), but if you want a usable system while it's compiling in the background do cores - 1 or cores - 2. Do note, there may be an error where a file isn't generated before it's required, if this happens simply re-run without the "-j" flag before trying anything else.
It works well, I'm using KiCad on my OS X (10.9.5) laptop right now as we speak. Just keep in mind that it's very much at a beta level right now, if that, so be careful using it for anything important!
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-57955541 .
I did try to compile by hand according to your script.
But it hangs on:
wxWidgets wx/version.h file not found in /Users/michi/Prj/Users/michi/Prj.
So it did detect the location of wxWidgets version.h at the wrong place...
Details:
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
... -- Try OpenMP CXX flag = [-qsmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-mp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed CMake Error at CMakeModules/FindwxWidgets.cmake:865 (message): wxWidgets wx/version.h file not found in /Users/michi/Prj/Users/michi/Prj. Call Stack (most recent call first): CMakeLists.txt:408 (find_package)
-- Configuring incomplete, errors occurred! See also "/Users/michi/Prj-DRAFT/KiCad/build/CMakeFiles/CMakeOutput.log". See also "/Users/michi/Prj-DRAFT/KiCad/build/CMakeFiles/CMakeError.log". ...
Could you try removing the build/ directory and doing that part over? I am investigating some issues where it doesn't detect things right if the CMake files are already there.
Adam Wolf
On Mon, Oct 6, 2014 at 1:20 PM, Michael notifications@github.com wrote:
I did try to compile by hand according to your script.
But it hangs on:
wxWidgets wx/version.h file not found in /Users/michi/Prj/Users/michi/Prj.
So it did detect the location of wxWidgets version.h at the wrong place...
Details:
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
... -- Try OpenMP CXX flag = [-qsmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-mp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed CMake Error at CMakeModules/FindwxWidgets.cmake:865 (message): wxWidgets wx/version.h file not found in /Users/michi/Prj/Users/michi/Prj. Call Stack (most recent call first): CMakeLists.txt:408 (find_package)
-- Configuring incomplete, errors occurred! See also "/Users/michi/Prj-DRAFT/KiCad/build/CMakeFiles/CMakeOutput.log". See also "/Users/michi/Prj-DRAFT/KiCad/build/CMakeFiles/CMakeError.log". ...
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58065474 .
? I think this KiCad/KicadOSXBuilder thing is no longer supported. And no files changed.
You are correct, it is no longer supported, which is why I gave you a link to another way to build KiCad on OS X. I guarantee you that it works well, but it does require some effort to get working right. It looks like you're doing something wrong, since your directory is concatenating itself, but I'm not certain, it's hard to tell since you didn't post the full set of commands you used to make wxWidgets.
If you're having trouble I recommend waiting a few days. I believe @adamwolf is making a new script that will work with current KiCad revisions.
I did built wxwidgets as described in http://bazaar.launchpad.net/%7Ekicad-product-committers/kicad/product/view/head:/Documentation/compiling/mac-osx.txt
On Monday, October 6, 2014, iwoloschin notifications@github.com wrote:
You are correct, it is no longer supported, which is why I gave you a link to another way to build KiCad on OS X. I guarantee you that it works well, but it does require some effort to get working right. It looks like you're doing something wrong, since your directory is concatenating itself, but I'm not certain, it's hard to tell since you didn't post the full set of commands you used to make wxWidgets.
If you're having trouble I recommend waiting a few days. I believe @adamwolf https://github.com/adamwolf is making a new script that will work with current KiCad revisions.
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58102114 .
Freundliche Grüsse
Michael Mustun
I'm not sure the problem is with wxWidgets. I think it's a path issue, possibly due to copy & paste or just mistyping something. From your prior post I see:
CMake Error at CMakeModules/FindwxWidgets.cmake:865 (message): wxWidgets wx/version.h file not found in /Users/michi/Prj/Users/michi/Prj.
Why is it showing "/Users/michi/Prj/Users/michi/Prj"? That's not right. I'm not sure why it's concatenating the directory upon itself, you don't show anything that would cause that, so I can't really say what's going wrong. It also doesn't jive with the other directory shown, "/Users/michi/Prj-DRAFT/" so that's something to explore as well.
Maybe post the error log? Or start from scratch and try again? Or just wait for Adam's script to be done?
Hi folks.
Can you try this? https://github.com/wayneandlayne/KicadOSXBuilder/tree/oct_2014_beta
It is an early version and needs some work, but it works for me.
Please let me know if it works for you. I expect to get the rest of the features in the TODO list done by early next week, but I accept pull requests :)
I do not have brew... I used port. (Not sure if I can have brew + port at the same time...)
This script builds KiCad from source on OS X. This script helps you follow the instructions at https://bazaar.launchpad.net/~kicad-product-committers/kicad/product/view/head:/Documentation/compiling/mac-osx.txt to build KiCad for OS X. Soon, there will be 'stable releases', so it'll be easier to just download binaries if you have no interest in building them. Looking for XCode's CLI compiler. It doesn't look like brew is installed. You can probably use MacPorts or something, but this script uses brew. To install brew, go to http://brew.sh and follow the simple instructions there.
PS: You should add this fact in your README (that brew is required). Or maybe even better: Rename build.sh to build-with-brew.sh
The problem is:
If you have a folder with a dash in it (e.g. "Prj-DARF") you run into problems. The Make file can't detect wxWidget version.
So this will work:
michi@osx ~/PrjKiCad/KiCad/build $ 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
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- 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/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-Qopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-xopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [+Oopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-qsmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP CXX flag = [-mp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Found wxWidgets: -L/Users/michi/PrjKiCad/KiCad/wx-build/../wx-bin/lib;;;-framework IOKit;-framework Carbon;-framework Cocoa;-framework AudioToolbox;-framework System;-framework OpenGL;-lwx_osx_cocoau_gl-3.0;-lwx_osx_cocoau_aui-3.0;-lwx_osx_cocoau_adv-3.0;-lwx_osx_cocoau_html-3.0;-lwx_osx_cocoau_core-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0;-lwx_baseu_xml-3.0 (found suitable version "3.0.2", minimum required is "3.0.0")
-- Check for installed OpenGL -- found
-- Found Glew: /opt/local/lib/libGLEW.dylib
-- Check for installed GLEW -- found
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28")
-- checking for module 'cairo'
-- found cairo, version 1.12.16
-- Found CAIRO: /opt/local/lib/libcairo.dylib
-- Check for installed Cairo -- found
-- Found BZip2: /usr/lib/libbz2.dylib (found version "1.0.6")
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib
-- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib - found
-- Performing Test GXX_HAS_VISIBILITY_FLAG
-- Performing Test GXX_HAS_VISIBILITY_FLAG - Success
-- Performing Test GXX_HAS_VISIBILITY_INLINES
....
But now it runs into another problem:
michi@osx ~/PrjKiCad/KiCad/build $ make Scanning dependencies of target boost [ 0%] Creating directories for 'boost' [ 0%] Performing download step (download, verify and extract) for 'boost' -- downloading... src='http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2' dst='/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2' timeout='1200 seconds' CMake Error at boost-stamp/download-boost.cmake:9 (file): file DOWNLOAD HASH mismatch
for file: [/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2]
expected hash: [15cb8c0803064faef0c4ddf5bc5ca279]
actual hash: [d41d8cd98f00b204e9800998ecf8427e]
make[2]: * [/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download] Error 1 make[1]: * [CMakeFiles/boost.dir/all] Error 2 make: *\ [all] Error 2 michi@osx ~/PrjKiCad/KiCad/build $
I have not ran into a sha mismatch before. I will report a bug about the hyphen--thanks! On Oct 7, 2014 1:41 PM, "Michael" notifications@github.com wrote:
The problem is:
If you have a folder with a dash in it (e.g. "Prj-DARF") you run into problems. The Make file can't detect wxWidget version.
So this will work:
michi@osx ~/PrjKiCad/KiCad/build $ 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 -- The C compiler identification is Clang 6.0.0 -- The CXX compiler identification is Clang 6.0.0 -- 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/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Try OpenMP C flag = [ ] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [/openmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-Qopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-openmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-xopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [+Oopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-qsmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP C flag = [-mp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [ ] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-fopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [/openmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-Qopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-openmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-xopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [+Oopenmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-qsmp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Try OpenMP CXX flag = [-mp] -- Performing Test OpenMP_FLAG_DETECTED -- Performing Test OpenMP_FLAG_DETECTED - Failed -- Found wxWidgets: -L/Users/michi/PrjKiCad/KiCad/wx-build/../wx-bin/lib;;;-framework IOKit;-framework Carbon;-framework Cocoa;-framework AudioToolbox;-framework System;-framework OpenGL;-lwx_osx_cocoau_gl-3.0;-lwx_osx_cocoau_aui-3.0;-lwx_osx_cocoau_adv-3.0;-lwx_osx_cocoau_html-3.0;-lwx_osx_cocoau_core-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0;-lwx_baseu_xml-3.0 (found suitable version "3.0.2", minimum required is "3.0.0") -- Check for installed OpenGL -- found -- Found Glew: /opt/local/lib/libGLEW.dylib -- Check for installed GLEW -- found -- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.28") -- checking for module 'cairo' -- found cairo, version 1.12.16 -- Found CAIRO: /opt/local/lib/libcairo.dylib
-- Check for installed Cairo -- found -- Found BZip2: /usr/lib/libbz2.dylib (found version "1.0.6") -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib -- Looking for BZ2_bzCompressInit in /usr/lib/libbz2.dylib - found -- Performing Test GXX_HAS_VISIBILITY_FLAG -- Performing Test GXX_HAS_VISIBILITY_FLAG - Success -- Performing Test GXX_HAS_VISIBILITY_INLINES
....
But now it runs into another problem:
michi@osx ~/PrjKiCad/KiCad/build $ make Scanning dependencies of target boost [ 0%] Creating directories for 'boost' [ 0%] Performing download step (download, verify and extract) for 'boost' -- downloading... src=' http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2 '
dst='/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2' timeout='1200 seconds' CMake Error at boost-stamp/download-boost.cmake:9 (file): file DOWNLOAD HASH mismatch
for file: [/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0.tar.bz2] expected hash: [15cb8c0803064faef0c4ddf5bc5ca279] actual hash: [d41d8cd98f00b204e9800998ecf8427e]
make[2]: * [/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-download] Error 1 make[1]: *\ [CMakeFiles/boost.dir/all] Error 2 make: * [all] Error 2 michi@osx ~/PrjKiCad/KiCad/build $
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58237136 .
And how did you fixed the HASH-bug?
I changed the HASH keys in 2 files.
michi@osx ~/PrjKiCad/KiCad/build $ EDIT ../kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/download-boost.cmake
michi@osx ~/PrjKiCad/KiCad/build $ EDIT ../kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/verify-boost.cmake
But now I get:
bzr: ERROR: No changes to commit. Please 'bzr add' the files you want to commit, or use --unchanged to force an empty commit. make[2]: * [/Users/michi/PrjKiCad/KiCad/kicad/.downloads-by-cmake/boost_1_54_0/src/boost-stamp/boost-bzr_commit_boost] Error 3 make[1]: * [CMakeFiles/boost.dir/all] Error 2 make: *\ [all] Error 2
I have never had an issue with the hash. I even redid a build and it succeeded.
Also, there will be plenty of command line options to build with brew or whatever, but this is an early version I released just for you, @flagsoft :)
@flagsoft I think you had a bad download. I tried downloading the boost tarball by itself and running a checksum against it. My checksum appears to match the expected sum.
~/Downloads $ wget http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.bz2 ~/Downloads $ md5sum boost_1_54_0.tar.bz2 15cb8c0803064faef0c4ddf5bc5ca279 boost_1_54_0.tar.bz2
I'd recommend deleting the tarball file and trying again.
For the record, unless you know why the actual hash is different from the expected (for instance, a point revision in a piece of software created a new tarball to download), you should not change the expected hash value. I wouldn't be too concerned about something nefarious (though it's certainly possible!) but a bad hash generally indicates that the file did not download properly, which will cause further, much more confusing problems if you try to compile with the damaged tarball.
@adamwolf your script seems to work! Thanks. (I just commented check_brew and check_brew_depends - because I knew I already have these components and I installed it already with mac port.)
Great!
On Tue, Oct 7, 2014 at 3:39 PM, Michael notifications@github.com wrote:
@adamwolf https://github.com/adamwolf your script seems to work! Thanks. (I just commented check_brew and check_brew_depends - because I knew I already have these components and I installed it already with mac port.)
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58257518 .
Can I also disable GPU (3D graphics chip) support? (Just using software rendering)?
I asked the dev team. Not sure. What system are you building for?
I don't know if it's possible. But thanks for asking.
OS X 10.9.5
Graphics Chips: AMD Radeon HD 6490M:
Chipset Model: AMD Radeon HD 6490M Type: GPU Bus: PCIe PCIe Lane Width: x8 VRAM (Total): 256 MB Vendor: ATI (0x1002) Device ID: 0x6760 Revision ID: 0x0000 ROM Revision: 113-C0170H-521 gMux Version: 1.9.23 EFI Driver Version: 01.00.521 Displays: Display: Resolution: 1680 x 1050 Pixel Depth: 32-Bit Color (ARGB8888) Main Display: Yes Mirror: Off Online: Yes
Intel HD Graphics 3000:
Chipset Model: Intel HD Graphics 3000 Type: GPU Bus: Built-In VRAM (Total): 512 MB VRAM (Dynamic, Max): 10 Vendor: Intel (0x8086) Device ID: 0x0116 Revision ID: 0x0009 gMux Version: 1.9.23
I think those will run KiCad fine... any reason why you want to force software rendering?
On Wed, Oct 8, 2014 at 12:00 PM, Michael notifications@github.com wrote:
I don't know if it's possible. But thanks for asking.
OS X 10.9.5
Graphics Chips: AMD Radeon HD 6490M:
Chipset Model: AMD Radeon HD 6490M Type: GPU Bus: PCIe PCIe Lane Width: x8 VRAM (Total): 256 MB Vendor: ATI (0x1002) Device ID: 0x6760 Revision ID: 0x0000 ROM Revision: 113-C0170H-521 gMux Version: 1.9.23 EFI Driver Version: 01.00.521 Displays: Display: Resolution: 1680 x 1050 Pixel Depth: 32-Bit Color (ARGB8888) Main Display: Yes Mirror: Off Online: Yes
Intel HD Graphics 3000:
Chipset Model: Intel HD Graphics 3000 Type: GPU Bus: Built-In VRAM (Total): 512 MB VRAM (Dynamic, Max): 10 Vendor: Intel (0x8086) Device ID: 0x0116 Revision ID: 0x0009 gMux Version: 1.9.23
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58390488 .
GPU defect: http://breakfree.cc
I have noticed that using the OpenGL canvas in PCBNew it switches to the discrete graphics card on my rMBP. Perhaps what @flagsoft is looking for is PCBNew not to require that? I'm not sure it's necessary myself, but I typically use KiCad while plugged into an external monitor, which requires the discrete card anyways.
Read also: https://developer.apple.com/library/mac/qa/qa1734/_index.html
Or just using the internal GPU intel - which is terrible slow and ugly... but at least it works for playing youtube.
Hi folks,
From the dev list, it sounds like that isn't something that is directly controlled by KiCad. I think it comes from OpenGL. If there's a way to force OpenGL to only go through the SW pipeline and not the HW one, it might be a workaround for your hardware issue.
It sounds like that developer link shows how to tell OS X that you can survive on just the integrated renderer--can you try it and let me know if it works?
Adam Wolf
On Wed, Oct 8, 2014 at 12:23 PM, Michael notifications@github.com wrote:
Read also: https://developer.apple.com/library/mac/qa/qa1734/_index.html
Or just using the internal GPU intel - which is terrible slow and ugly... but at least it works for playing youtube.
— Reply to this email directly or view it on GitHub https://github.com/KiCad/KicadOSXBuilder/issues/45#issuecomment-58393995 .
I think the link from Apple is for applications. Not for the whole system. Anyway, starting a 3D app will cause crash the Mac or force reboot, etc. So the only solution seems to be SW rendering.
michi@OSX ~/Downloads/KicadOSXBuilder-master $ bash ./build.sh BUILDING RELEASE BINARIES
Starting step: CHECK & UNPACK WXPYTHON (wxPython-src-2.9.4.0)
Starting step: UPDATE KICAD SOURCES
Branched 5163 revisions.
Using saved parent location: bzr+ssh://bazaar.launchpad.net/+branch/kicad/ No revisions or tags to pull.
Branched 415 revisions.
Using saved parent location: bzr+ssh://bazaar.launchpad.net/~kicad-product-committers/kicad/library/ No revisions or tags to pull.
Applying local kicad patches... patch: /Users/michi/Downloads/KicadOSXBuilder-master/patches/10_kicad_cmake-osx.patch Could not apply! build error on UPDATE KICAD SOURCES STEP: 2
Starting step: BUILD WXWIDGETS
./build.sh: line 320: /Users/michi/Downloads/KicadOSXBuilder-master/src/wxPython-src-2.9.4.0/configure: No such file or directory build error on BUILD WXWIDGETS STEP: 3 michi@OSX ~/Downloads/KicadOSXBuilder-master $