Доброго всем дня.
После долгого перерыва приходится опять возврвщаться с печатным платам.
До этого работал с PCAD (очень давно) и Eagle. В этот раз хочется стартануть
с более православным CAD'ом, поэтому обращаю свой взор на KiCAD.
Работаю в Debian Jessie + Mate. Сперва поставил программу из репозиториев Jessie.
На пустом месте начало ругаться какими-то ассёртами в GTK. Снёс нафиг.
Потом скачал с офиц. сайта скрипт kicad-install.sh Вроде всё работает, но УГО
некоторых элементов приводит в уныние.
Дальше забрёл сюда. Склонировал
https://code.launchpad.net/~kicad-gost-comm...ers/kicad/kicadСобрал вот так:
Код
export CXXFLAGS="-m64"
cmake -DCMAKE_BUILD_TYPE=Debug -DwxUSE_UNICODE=ON -DKICAD_GOST=ON -DKICAD_STABLE_VERSION=ON -DKICAD_GOST=ON -DCMAKE_INSTALL_PREFIX=/opt/kicad ..
Boost выкачало и собрало, но почему-то матюкнулось:
Код
gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.8/release/link-static/threading-multi/winstances.o
gcc.compile.c++ bin.v2/libs/regex/build/gcc-4.8/release/link-static/threading-multi/usinstances.o
gcc.archive bin.v2/libs/regex/build/gcc-4.8/release/link-static/threading-multi/libboost_regex.a
common.copy /home/sergey/tmp/kicad/boost_root/lib/libboost_regex.a
common.mkdir bin.v2/libs/thread/build/gcc-4.8/release/link-static
common.mkdir bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi
common.mkdir bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi/pthread
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi/pthread/thread.o
In file included from ./boost/bind/bind.hpp:29:0,
from ./boost/bind.hpp:22,
from ./boost/thread/detail/thread.hpp:29,
from ./boost/thread/thread_only.hpp:22,
from libs/thread/src/pthread/thread.cpp:11:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally defined but not used [-Wunused-local-typedefs]
typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
^
In file included from ./boost/tuple/tuple.hpp:33:0,
from ./boost/thread/detail/async_func.hpp:37,
from ./boost/thread/future.hpp:22,
from libs/thread/src/pthread/thread.cpp:19:
./boost/tuple/detail/tuple_basic.hpp: In function ‘typename boost::tuples::access_traits<typename boost::tuples::element<N, boost::tuples::cons<HT, TT> >::type>::const_type boost::tuples::get(const boost::tuples::cons<HT, TT>&)’:
./boost/tuple/detail/tuple_basic.hpp:228:45: warning: typedef ‘cons_element’ locally defined but not used [-Wunused-local-typedefs]
typedef BOOST_DEDUCED_TYPENAME impl::type cons_element;
^
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi/pthread/once.o
In file included from ./boost/bind/bind.hpp:29:0,
from ./boost/bind.hpp:22,
from ./boost/thread/pthread/once_atomic.hpp:19,
from ./boost/thread/once.hpp:20,
from libs/thread/src/pthread/./once_atomic.cpp:9,
from libs/thread/src/pthread/once.cpp:8:
./boost/bind/arg.hpp: In constructor ‘boost::arg<I>::arg(const T&)’:
./boost/bind/arg.hpp:37:22: warning: typedef ‘T_must_be_placeholder’ locally defined but not used [-Wunused-local-typedefs]
typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
^
gcc.compile.c++ bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi/future.o
gcc.archive bin.v2/libs/thread/build/gcc-4.8/release/link-static/threading-multi/libboost_thread.a
common.copy /home/sergey/tmp/kicad/boost_root/lib/libboost_thread.a
...updated 10859 targets...
[ 36%] No install step for 'boost'
[ 36%] Completed 'boost'
[ 36%] Built target boost
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2
Ну да ладно, после перезапуска make шоу продолжилось и никаких ошибок больше не выдало.
После make install KiCAD запускается, но падает при попытке запуска редактора схем:
Код
Starting program: /opt/kicad/bin/./kicad
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
LIB_ENV_VAR:'/opt/kicad/bin'
configCreate SEARCH_STACK:
[ 0]:/home/sergey/code/imx6/imx6_router/secondary_psu/pcb
[ 1]:/opt/kicad/share/kicad/template
[ 2]:/usr/local/share/kicad/template
[New Thread 0x7fffe33b0700 (LWP 32717)]
kiface SEARCH_STACK:
[ 0]:/opt/kicad/share/kicad/template
[ 1]:/usr/local/share/kicad/library
[ 2]:/usr/local/share/kicad/template
[ 3]:/usr/local/share
Program received signal SIGSEGV, Segmentation fault.
0x000000000046a3dc in KIFACE_I::KifaceSettings (this=0x0) at /home/sergey/tmp/kicad/include/kiface_i.h:102
102 wxConfigBase* KifaceSettings() const { return m_bm.m_config; }
(gdb) bt
#0 0x000000000046a3dc in KIFACE_I::KifaceSettings (this=0x0) at /home/sergey/tmp/kicad/include/kiface_i.h:102
#1 0x00007fffe279f989 in EDA_DRAW_PANEL::EDA_DRAW_PANEL (this=0x9ad200, parent=0x9a8d70, id=-1, pos=..., size=...) at /home/sergey/tmp/kicad/common/draw_panel.cpp:127
#2 0x00007fffe279b057 in EDA_DRAW_FRAME::EDA_DRAW_FRAME (this=0x9a8d70, aKiway=0x6d8b60 <Kiway>, aParent=0x774200, aFrameType=FRAME_SCH, aTitle=..., aPos=..., aSize=..., aStyle=541335104, aFrameName=...)
at /home/sergey/tmp/kicad/common/draw_frame.cpp:163
#3 0x00007fffe2706810 in SCH_BASE_FRAME::SCH_BASE_FRAME (this=0x9a8d70, aKiway=0x6d8b60 <Kiway>, aParent=0x774200, aWindowType=FRAME_SCH, aTitle=..., aPosition=..., aSize=..., aStyle=541335104, aFrameName=...)
at /home/sergey/tmp/kicad/eeschema/sch_base_frame.cpp:37
#4 0x00007fffe273bd27 in SCH_EDIT_FRAME::SCH_EDIT_FRAME (this=0x9a8d70, aKiway=0x6d8b60 <Kiway>, aParent=0x774200) at /home/sergey/tmp/kicad/eeschema/schframe.cpp:190
#5 0x00007fffe26992c6 in SCH::IFACE::CreateWindow (this=0x7fffe2b89000 <SCH::kiface>, aParent=0x774200, aClassId=0, aKiway=0x6d8b60 <Kiway>, aCtlBits=2) at /home/sergey/tmp/kicad/eeschema/eeschema.cpp:84
#6 0x0000000000472c32 in KIWAY::Player (this=0x6d8b60 <Kiway>, aFrameType=FRAME_SCH, doCreate=true) at /home/sergey/tmp/kicad/common/kiway.cpp:291
#7 0x000000000045637c in KICAD_MANAGER_FRAME::OnRunEeschema (this=0x774200, event=...) at /home/sergey/tmp/kicad/kicad/mainframe.cpp:296
#8 0x00007ffff692fa86 in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#9 0x00007ffff692fb2b in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#10 0x00007ffff692fe97 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#11 0x00000000004672d0 in EDA_BASE_FRAME::ProcessEvent (this=0x774200, aEvent=...) at /home/sergey/tmp/kicad/common/basicframe.cpp:131
#12 0x00007ffff692fe20 in wxEvtHandler::ProcessEvent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#13 0x00007ffff709ffc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#14 0x00007ffff709ffc9 in wxWindowBase::TryParent(wxEvent&) () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#15 0x00007ffff6ffdddc in ?? () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#16 0x00007ffff3cb85e7 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#17 0x00007ffff3cd1088 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#18 0x00007ffff3cd1ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#19 0x00007ffff508f3f5 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#20 0x00007ffff3cb83b8 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#21 0x00007ffff3cc9557 in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#22 0x00007ffff3cd1a29 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#23 0x00007ffff3cd1ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#24 0x00007ffff508e349 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#25 0x00007ffff51304f5 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#26 0x00007ffff3cb83b8 in g_closure_invoke () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#27 0x00007ffff3cc9afb in ?? () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#28 0x00007ffff3cd16f9 in g_signal_emit_valist () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#29 0x00007ffff3cd1ce2 in g_signal_emit () from /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#30 0x00007ffff5240114 in ?? () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#31 0x00007ffff512eca4 in gtk_propagate_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#32 0x00007ffff512f05b in gtk_main_do_event () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#33 0x00007ffff4daa1fc in ?? () from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#34 0x00007ffff3542e04 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007ffff3543048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007ffff354330a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#37 0x00007ffff512e147 in gtk_main () from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#38 0x00007ffff6fc236a in wxEventLoop::Run() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#39 0x00007ffff7033c1c in wxAppBase::MainLoop() () from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-2.8.so.0
#40 0x0000000000454b05 in APP_KICAD::OnRun (this=0x71e740) at /home/sergey/tmp/kicad/kicad/kicad.cpp:289
#41 0x00007ffff68dcf7d in wxEntry(int&, wchar_t**) () from /usr/lib/x86_64-linux-gnu/libwx_baseu-2.8.so.0
#42 0x0000000000454314 in main (argc=1, argv=0x7fffffffe328) at /home/sergey/tmp/kicad/kicad/kicad.cpp:321
(gdb)
Не оставте страждующего в беде. Сам я из программистов, но дебажить чужой код некогда. Пора бы уже плату ваять...
Может я чего не так собрал или не оттуда склонировал?