Difference between revisions of "Mcbuilder"
From Bashlinux
(Created page with "=== How to build mcbuilder for Make Controller on Linux === Instructions are for Fedora 14 up to Fedora 16 * Install dependencies yum install dbus-devel * Get the source s...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 26: | Line 26: | ||
* Patch the project file. This is because libhal is no longer supported since Fedora 16, and some sources have been renamed. |
* Patch the project file. This is because libhal is no longer supported since Fedora 16, and some sources have been renamed. |
||
+ | : [http://wiki.bashlinux.com/w/images/a/a5/Mcbuilder.pro.no_hal.patch Mcbuilder.pro.no_hal.patch] |
||
− | --- mcbuilder.pro.orig 2015-06-13 13:07:24.672983475 -0700 |
||
− | +++ mcbuilder.pro 2015-06-13 13:29:46.027676182 -0700 |
||
− | @@ -66,24 +66,33 @@ |
||
− | # ******************************************* |
||
− | # qextserialport |
||
− | # ******************************************* |
||
− | -INCLUDEPATH += src/qextserialport |
||
− | -HEADERS += src/qextserialport/qextserialport.h \ |
||
− | - src/qextserialport/qextserialenumerator.h |
||
− | +INCLUDEPATH += src/qextserialport/src |
||
− | +HEADERS += src/qextserialport/src/qextserialport.h \ |
||
− | + src/qextserialport/src/qextserialenumerator.h |
||
− | |||
− | -SOURCES += src/qextserialport/qextserialport.cpp \ |
||
− | - src/qextserialport/qextserialenumerator.cpp |
||
− | +SOURCES += src/qextserialport/src/qextserialport.cpp \ |
||
− | + src/qextserialport/src/qextserialenumerator.cpp |
||
− | + |
||
− | +linux:SOURCES += src/qextserialport/src/qextserialport_linux.cpp \ |
||
− | + src/qextserialport/src/qextserialenumerator_linux.cpp |
||
− | + |
||
− | +unix:SOURCES += src/qextserialport/src/qextserialport_unix.cpp \ |
||
− | + src/qextserialport/src/qextserialenumerator_unix.cpp |
||
− | + |
||
− | +unix:SOURCES += src/qextserialport/src/qextserialport_osx.cpp \ |
||
− | + src/qextserialport/src/qextserialenumerator_osx.cpp |
||
− | |||
− | -unix:SOURCES += src/qextserialport/posix_qextserialport.cpp |
||
− | macx: LIBS += -framework IOKit -framework Carbon |
||
− | unix{ |
||
− | !macx{ |
||
− | CONFIG += link_pkgconfig |
||
− | - PKGCONFIG += dbus-1 hal |
||
− | + PKGCONFIG += dbus-1 |
||
− | } |
||
− | } |
||
− | |||
− | win32{ |
||
− | - SOURCES += src/qextserialport/win_qextserialport.cpp |
||
− | + SOURCES += src/qextserialport/qextserialport_win.cpp \ |
||
− | + src/qextserialport/src/qextserialenumerator_win.cpp |
||
− | DEFINES += WINVER=0x0501 |
||
− | LIBS += -lSetupapi |
||
− | } |
||
− | |||
* Create the Makefile and build the code |
* Create the Makefile and build the code |
Latest revision as of 04:17, 16 June 2015
How to build mcbuilder for Make Controller on Linux
Instructions are for Fedora 14 up to Fedora 16
- Install dependencies
yum install dbus-devel
- Get the source
svn co http://makecontroller.googlecode.com/svn/mcbuilder/trunk mcbuilder
- CD into the source
cd mcbuilder
- Update mercurial entries for future
pull
, edit ~/.hgrc and add
[trusted] users = storage groups = staff
- They must match the user/group where qextserialport sources are being downloaded
- Replace qextserialport
cd src mv qextserialport qextserialport-orig git clone https://github.com/qextserialport/qextserialport.git
- Go to the root folder of mcbuilder
cd ../../
- Patch the project file. This is because libhal is no longer supported since Fedora 16, and some sources have been renamed.
- Create the Makefile and build the code
qmake-qt4 make
- Run
./mcbuilder