Re: [Piklab-users] problem building piklab-0.16.1 on fedora
IDE for PIC microcontrollers
Brought to you by:
azhyd
|
From: Nicolas <aa...@gm...> - 2012-08-16 06:47:47
|
Hi,
I put your fix in the development tree.
Thanks!
Nicolas
On Wed, Aug 15, 2012 at 2:41 PM, bitlord <bit...@gm...> wrote:
> On Wed, 2012-08-15 at 23:02 +0200, bitlord wrote:
> > Hello, I'm new to this list, first I want to thank everyone who worked
> > on this software, it is great, and allows me to use my ICD2 on linux.
> >
> > I'm using fedora distribution, and now in fedora 17 we have
> > piklab-0.15.12, and I wanted a 0.16.1 and tried to update .spec file,
> > then tried to build a package.
> >
> > But I got some errors
> >
> > In file included
> > from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/common/args.h:12:0,
> from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/common/args.cpp:9:
> >
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/common/global.h:53:28:
> fatal error: kapplication.h: No such file or directory
> > compilation terminated.
> > In file included
> > from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/port/port.h:12:0,
> from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/port/port_base.h:12,
> from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/port/parallel.h:14,
> from
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/port/parallel.cpp:11:
> >
> /home/bitlord/rpmbuild/BUILD/piklab-0.16.1/src/common/common/global.h:53:28:
> fatal error: kapplication.h: No such file or directory
> > compilation terminated.
> >
> > I think I have all build dependencies installed, kapplication.h is from
> > kdelibs-devel package, and it is found at the beginning
> > -- Found KDE 4.8 include dir: /usr/include/kde4
> >
> > but probably missing -I/usr/include/kde4 later
> >
> > Few important things: I'm not a developer, know almost nothing about
> > build systems.
> > I got a small hint from someone with a lot more experience to add
> > include_directories(${KDE4_INCLUDES}) to CMakeLists.txt but I don't know
> > in which one, tried with this simple patch for
> > src/common/common/CMakeLists.txt
> > ...
> > @@ -1,4 +1,5 @@
> > include_directories(${CMAKE_CURRENT_SOURCE_DIR})
> > +include_directories(${KDE4_INCLUDES})
> >
> > SET(common_STAT_SRCS
> > args.cpp
> >
> > I think that helped for the first error.
> >
> >
> >
> >
> A lot of people from #fedora-kde on freenode helped me with building rpm
> package, and <Kevin_Kofler> found the problem and solution for it. Now
> it builds fine, just some minor tweaking needed in spec file I think
>
> Sorry if this reply doesn't get well combined in the thread, I didn't
> configured my account on mailing list to send me messages which I send
> to mailing list so I didn't know how to reply (I don't use mailing list
> much)
>
>
> Here is the patch
> --- cmake/Piklab.cmake_orig 2012-08-15 23:21:25.515511895 +0200
> +++ cmake/Piklab.cmake 2012-08-15 23:21:52.746171465 +0200
> @@ -27,7 +27,7 @@
> else(QT_ONLY)
> find_package(KDE4 REQUIRED)
> add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
> - include_directories( ${KDE4_INCLUDE_DIRS})
> + include_directories( ${KDE4_INCLUDES})
> set(EXE_LIBS ${QT_LIBRARIES} ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS}
> kde)
> set(GUI_LIBS ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} ${EXE_LIBS}
> kde_gui ${KDE4_KTEXTEDITOR_LIBS} ${KDE4_KFILE_LIBS})
> endif(QT_ONLY)
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Piklab-users mailing list
> Pik...@li...
> https://lists.sourceforge.net/lists/listinfo/piklab-users
>
|