← Back to team overview

kicad-developers team mailing list archive

Re: bzr 5173 build broken

 

On 12.10.2014, at 07:38, Bob Gustafson <bobgus@xxxxxxx> wrote:

> I think it is working now. When I use eeschema and move around a component - no artifacts - hooray
Well, good to hear… :)

> 
> Following the osx_build_wx.sh - there are still some problems:
> 
> 1) The 'make install' step needs to be 'sudo make install’
If you do it like the docs tell you then you don’t install wxWidgets to a system path, but only to your local KiCad build root.
You don’t need root access for that (and your local patched wxWidgets won’t clobber anything else).
You don’t need wxWidgets installed globally on OSX (unlike on Unix), because everything needed from it will be pulled into the bundle anyway.

> 
> 2) The results in the bin directory are:
> kicad.app/Contents/MacOS
> kicad.app/Contents/Plugins
> 
> The Plugins work better if they are included in the MacOS folder as:
What do you mean with that?
It’s implemented in the code that the *.kiface are search in “../Plugins” relative to executable path.
> 
> kicad.app/Contents/MacOS/Plugins
> 
> However, the gerbview and pcb_calculator seems to expect the side-by-side
> directory locations.
> 
>       If I duplicate the Plugins directory and put it side-by-side with MacOS,
>            both gerbview and pcb_calculator work.
Please check your build.
All applications having a *.kiface use the same piece of code to load it, there should be no difference.


> 3) The pcb_calculator opens 'behind' the kicad window
> 
> ----------
> 
> I will continue to test this build (and perhaps build a board..)
> 
> Thanks much
> 
> Bob G
> 
> On 10/11/2014 02:13 PM, Bob Gustafson wrote:
>> I used the wx builder script kicad/scripts/osx_build_wx.sh
>> 
>> It doesn't have the 'execute' bit set, so I had to use
>> 
>>   sh osx_build_wx.sh
>> 
>> Also, I used an absolute address for the directory containing the wxWidget source. This seemed to conflict with your assumption that the source directory was alongside the containing directory for kicad.
>> 
>> A patch --
>> Bobs-MacBook-Air:scripts bobgus$ diff osx_build_wx.sh.orig osx_build_wx.sh
>> 48c48
>> < ../$1/configure \
>> ---
>> > $1/configure \
>> Bobs-MacBook-Air:scripts bobgus$
>> 
>> 
>> wxWidget just finished compiling - will stick it into kicad now.
>> 
>> Thanks much
>> 
>> Bob G 
>> 
>> On 10/11/2014 01:17 PM, Bernhard Stegmaier wrote:
>>> Yes.
>>> 
>>> <<<
>>> IMPORTANT:
>>> At the moment you *must not* use a wxWidgets/wxPython version installed by any
>>> package manager.
>>> KiCad on OSX needs overlay support and some other fixes, which are not yet
>>> contained in mainline wxWidgets/wxPython sources and builds.
>>> If you don't use a patched wxWidgets you will get graphical artifacts (something
>>> like a magnifying glass effect in the upper left corner of KiCad windows) or
>>> KiCad will just crash on start (due to duplicate libraries).
>>> >>>
>>> 
>>> If you say that previously you had problems with redraw artifacts when moving things in eeschema, then I guess the patches mentioned in this doc are not applied in this home-brew wxWidgets version… that’s just one of the symptoms.
>>> 
>>> 
>>> Regards,
>>> Bernhardbuil
>>> 
>>> On 11.10.2014, at 19:54, Bob Gustafson <bobgus@xxxxxxx> wrote:
>>> 
>>>> The documentation you refer to - is it:
>>>> 
>>>> http://bazaar.launchpad.net/~kicad-product-committers/kicad/product/view/head:/Documentation/compiling/mac-osx.txt
>>>> 
>>>> 
>>>> On 10/11/2014 11:06 AM, Bernhard Stegmaier wrote:
>>>>> … and another comment:
>>>>> As far as I can see this recipe uses/depends on a pretty stock “Wxmac” recipe.
>>>>> I doubt that all the needed patches for KiCad are included in this Wxmac recipe… it won’t work then.
>>>>> Please read mac-os.txt in Documentation/compiling.
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> Bernhard
>>>>> 
>>>>> On 11.10.2014, at 17:56, Bernhard Stegmaier <stegmaier@xxxxxxxxxxxxx> wrote:
>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> normally, this error happens if you mix up different versions of C++ standards (the “-std=...” option) or you mix linking against libcpp/libstdc++ in KiCad/Dependencies.
>>>>>> 
>>>>>> You will have to find out what homebrew uses for the various dependencies and configure it in a way that everything is done the same way.
>>>>>> 
>>>>>> 
>>>>>> Regards,
>>>>>> Bernhard
>>>>>> 
>>>>>> 
>>>>>> On 11.10.2014, at 17:15, Bob Gustafson <bobgus@xxxxxxx> wrote:
>>>>>> 
>>>>>>> 
>>>>>>> On 10/11/2014 08:46 AM, Wayne Stambaugh wrote:
>>>>>>>> I cannot duplicate this.  I suspect it is a configuration difference
>>>>>>>> issue as I am using Boost 1.56 on both my Linux and Windows builds.  I
>>>>>>>> need some more information.  Please include your cmake command and the
>>>>>>>> build platform.
>>>>>>>> 
>>>>>>>> On 10/11/2014 02:42 AM, inkblotter wrote:
>>>>>>>>> On 10/11/2014 01:00 AM, Mark Roszko wrote:
>>>>>>>>>> The build compiles fine for me, did you run cmake configure properly?
>>>>>>>>>> Cmake generates shader_src.h which shader.cpp includes and has all the
>>>>>>>>>> missing variables you see the errors complaining about.
>>>>>>>>>> 
>>>>>>>>> Yes, and for me too.   The error I got was caused by some  random error
>>>>>>>>> when building with many threads but I always build with many threads and
>>>>>>>>> never ran into this error before.
>>>>>>>>> Sorry for the noise.
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> 
>>>>>>> 
>>>>>>> In compiling r5173, I got the ‘traits’ error.
>>>>>>> 
>>>>>>> This is on an uptodate Macbook air.
>>>>>>> 
>>>>>>> I iterated through brew update, brew upgrade, brew doctor, brew prune.. until it looked good.
>>>>>>> 
>>>>>>> The command line is:
>>>>>>> 
>>>>>>> HOMEBREW_MAKE_JOBS=1 brew install -v --HEAD kicad 2>&1 | tee brew_kicad_out16.txt
>>>>>>> 
>>>>>>> I can copy the brew_kicad_out16.txt file to gist if anyone is interested.
>>>>>>> 
>>>>>>> The process to this point seemed to rebuild boost and it may have used wxWidget-3.0.2, which I attempted to build prior to this run.
>>>>>>> 
>>>>>>> I think there was an email discussing a trait error - maybe I have missed a patch.
>>>>>>> 
>>>>>>> This is a snippet of the build output including the error lines.
>>>>>>> 
>>>>>>> [ 36%] Building CXX object common/CMakeFiles/common.dir/colors.cpp.o
>>>>>>> cd /tmp/kicad-0j86Yx/common && /usr/local/Library/ENV/4.3/clang++   -DHAVE_STDINT_H -DKICAD_KEEPCASE -DUSE_WX_OVERLAY -DWXUSINGDLL -DWX_COMPATIBILITY -D_FILE_OFFSET_BITS=64 -D__WXMAC__ -D__WXOSX_COCOA__ -D__WXOSX__ -Wall -D__ASSERTMACROS__ -fPIC -Wno-strict-aliasing -D__ASSERTMACROS__ -mmacosx-version-min=10.9 -I/usr/local/include/wx-3.0 -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -I/tmp/kicad-0j86Yx/include -I/tmp/kicad-0j86Yx/common/. -I/usr/local/lib/wx/include/osx_cocoa-unicode-3.0 -I/usr/local/include/wx-3.0 -I/tmp/kicad-0j86Yx/common/./dialogs -I/tmp/kicad-0j86Yx/common/./dialog_about -I/usr/local/include/cairo -I/usr/local/include -I/tmp/kicad-0j86Yx/common/../3d-viewer -I/tmp/kicad-0j86Yx/common/../pcbnew -I/tmp/kicad-0j86Yx/common/../polygon -I/tmp/kicad-0j86Yx/boost_root/include -I/tmp/kicad-0j86Yx    -o CMakeFiles/common.dir/colors.cpp.o -c /tmp/kicad-0j86Yx/common/colors.cpp
>>>>>>> In file included from /tmp/kicad-0j86Yx/common/colors.cpp:2:
>>>>>>> In file included from /tmp/kicad-0j86Yx/include/colors.h:8:
>>>>>>> In file included from /usr/local/include/wx-3.0/wx/wx.h:15:
>>>>>>> In file included from /usr/local/include/wx-3.0/wx/object.h:19:
>>>>>>> In file included from /usr/local/include/wx-3.0/wx/memory.h:15:
>>>>>>> In file included from /usr/local/include/wx-3.0/wx/string.h:46:
>>>>>>> /usr/local/include/wx-3.0/wx/strvararg.h:30:18: fatal error: 'tr1/type_traits' file not found
>>>>>>>         #include <tr1/type_traits>
>>>>>>>                  ^
>>>>>>> 1 error generated.
>>>>>>> make[2]: *** [common/CMakeFiles/common.dir/colors.cpp.o] Error 1
>>>>>>> make[1]: *** [common/CMakeFiles/common.dir/all] Error 2
>>>>>>> make: *** [all] Error 2
>>>>>>> ==> Formula
>>>>>>> Tap: shaneburrell/homebrew-kicad
>>>>>>> Path: /usr/local/Library/Taps/shaneburrell/homebrew-kicad/kicad.rb
>>>>>>> ==> Configuration
>>>>>>> HOMEBREW_VERSION: 0.9.5
>>>>>>> HEAD: 53d6a65161796fcec874dcac4a63e92ba9acb3e0
>>>>>>> CPU: quad-core 64-bit haswell
>>>>>>> OS X: 10.9.5-x86_64
>>>>>>> Xcode: 6.0.1
>>>>>>> CLT: 6.0.0.0.1.1410400753
>>>>>>> Error: kicad HEAD did not build
>>>>>>> X11: 2.7.7 => /opt/X11
>>>>>>> ==> ENV
>>>>>>> HOMEBREW_CC: clang
>>>>>>> HOMEBREW_CXX: clang++
>>>>>>> MAKEFLAGS: -j1
>>>>>>> CMAKE_PREFIX_PATH: /usr/local/opt/gettext:/usr/local/opt/libffi:/usr/local
>>>>>>> CMAKE_INCLUDE_PATH: /usr/include/libxml2:/opt/X11/include:/opt/X11/include/freetype2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
>>>>>>> CMAKE_LIBRARY_PATH: /opt/X11/lib:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
>>>>>>> PKG_CONFIG_PATH: /usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/GLEW/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig:/usr/local/opt/fontconfig/lib/pkgconfig:/usr/local/opt/pixman/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/glib/lib/pkgconfig:/usr/local/opt/Cairo/lib/pkgconfig
>>>>>>> PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.9:/opt/X11/lib/pkgconfig:/opt/X11/share/pkgconfig
>>>>>>> HOMEBREW_MAKE_JOBS: 1
>>>>>>> ACLOCAL_PATH: /usr/local/opt/gettext/share/aclocal:/usr/local/share/aclocal:/opt/X11/share/aclocal
>>>>>>> PATH: /usr/local/Library/ENV/4.3:/usr/local/opt/bazaar/bin:/usr/local/opt/cmake/bin:/usr/local/opt/jpeg/bin:/usr/local/opt/libpng/bin:/usr/local/opt/libtiff/bin:/usr/local/opt/Wxmac/bin:/usr/local/opt/GLEW/bin:/usr/local/opt/freetype/bin:/usr/local/opt/fontconfig/bin:/usr/local/opt/gettext/bin:/usr/local/opt/glib/bin:/usr/local/opt/Cairo/bin:/opt/X11/bin:/usr/bin:/bin:/usr/sbin:/sbin
>>>>>>> 
>>>>>>> Logs:
>>>>>>>      /Users/bobgus/Library/Logs/Homebrew/kicad/01.cmake
>>>>>>>      /Users/bobgus/Library/Logs/Homebrew/kicad/01.cmake.cc
>>>>>>>      /Users/bobgus/Library/Logs/Homebrew/kicad/02.make
>>>>>>>      /Users/bobgus/Library/Logs/Homebrew/kicad/02.make.cc
>>>>>>>      /Users/bobgus/Library/Logs/Homebrew/kicad/CMakeCache.txt
>>>>>>> 
>>>>>>> Bobs-MacBook-Air:~ bobgus$ _______________________________________________
>>>>>>> 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
>>>>>> 
>>>>>> _______________________________________________
>>>>>> 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
>>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
>>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> _______________________________________________
> 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


References