[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Klog-users] trouble building klog
From: |
Jaime Robles |
Subject: |
Re: [Klog-users] trouble building klog |
Date: |
Tue, 4 May 2010 07:52:59 +0200 (CEST) |
User-agent: |
SquirrelMail/1.4.15 |
Thank you very much for your contribution George!
As the new version of KLog is nearly finished for release I will test your
contribution in my sources and include it to the new release.
Thanks again!
--
Un saludo,
Jaime Robles, EA4TV
address@hidden
Visita:
http://jaime.robles.es
> Ok;
>
> Hopefully I will remember everything.
>
> I have made a functional cmake find macro based on the LibFindMacros
> as documented here: http://www.vtk.org/Wiki/CMake:How_To_Find_Libraries
>
> In klog-0.5.4/cmake add these files:
> LibFindMacros.cmake
> FindHamlib.cmake
>
> here is klog-0.5.4/CMakeLists.txt
>
> ====== tear here ======
> project(klog)
>
> set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
> set (VERSION 0.5.2)
>
> find_package(KDE4 REQUIRED)
> include (KDE4Defaults)
>
> find_PACKAGE(Hamlib REQUIRED)
> if (HAMLIB_FOUND)
> message( STATUS "Hamlib library found in: ${HAMLIB_LIBRARY}" )
> message( STATUS "Hamlib includes found in: ${HAMLIB_INCLUDE_DIR}" )
> endif (HAMLIB_FOUND)
>
> include_directories( ${KDE4_INCLUDES} ${QT_INCLUDES} )
>
> add_subdirectory( src )
> add_subdirectory( icons )
> add_subdirectory( po )
>
> ====== tear here ======
>
> In klog-0.5.4/src/CMakeLists.txt
> change the line:
> target_link_libraries(klog ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS} hamlib)
>
> to
>
> target_link_libraries(klog ${KDE4_KDEUI_LIBS} ${KDE4_KDECORE_LIBS}
> ${HAMLIB_LIBRARY})
>
> And that works for me.
>
>
> On Tuesday 13 April 2010, Jaime Robles wrote:
> > I am glad to read that you fixed it although, as you say it is not the
> > best solution.
> >
> > I can't add that patch to the general sources.
> >
> > If you get the best solution, please sent it to me to add it to the
> > KLog's sources.
> >
> > Thanks!
> >
> > Jaime
> >
> > El 12/04/2010, a las 23:25, "George L. Emigh" <address@hidden>
> >
> > escribió:
> > > While not the really correct solution, it was the quickest, all I
> > > had to do
> > > was add:
> > >
> > > LINK_DIRECTORIES( /usr/lib64/hamlib )
> > >
> > > to the:
> > >
> > > klog-0.5.4/src/CMakeLists.txt
> > >
> > > file.
> > >
> > > rerun cmake -DCMAKE_INSTALL_PREFIX=/usr ..
> > > and make
> > >
> > >
> > > Tnx;
> > >
> > > 73
> > >
> > > On Monday 12 April 2010, Jaime Robles wrote:
> > >> Hello,
> > >> Taking into account what Andrew has told you and having in mind
> > >> that I
> > >> don't know how Gentoo manages its packages... Hace you "emerged"
> the
> > >> hamlib-dev package?
> > >>
> > >> In order to compile KLog you need the -dev package of hamlib.
> > >>
> > >> Keep us informed!
> > >>
> > >> Jaime
> > >>
> > >> El 11/04/2010, a las 23:11, "George L. Emigh"
> > >> <address@hidden>
> > >>
> > >> escribió:
> > >>> I'm trying to build klog on my Gentoo system, when I manually
> tried
> > >>> to build it,
> > >>> I got the same error as listed here, currently I'm trying to build
> > >>> it using an ebuild
> > >>> script to install it the Gentoo way, but still it cannot find
> > >>> hamlib.
> > >>>
> > >>> the currently installed hamlib is hamlib-1.2.10
> > >>>
> > >>> Any idea what may be the problem here?
> > >>>
> > >>> [100%] Building CXX object src/CMakeFiles/klog.dir/qrc_klog-
> > >>> resources.o
> > >>> Linking CXX executable klog
> > >>> /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.3/../../../../x86_64-pc-linux-
> > >>> gnu/bin/ld: cannot find -lhamlib
> > >>> collect2: ld returned 1 exit status
> > >>> make[2]: *** [src/klog] Error 1
> > >>> make[1]: *** [src/CMakeFiles/klog.dir/all] Error 2
> > >>> make: *** [all] Error 2
> > >>>
> > >>>
> > >>> My hamlib directory
> > >>>
> > >>> # ls -l /usr/lib64/hamlib/
> > >>> total 2992
> > >>>
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-alinco.la
> > >>> -rwxr-xr-x 1 root root 26552 Apr 11 16:49 hamlib-alinco.so
> > >>> -rwxr-xr-x 1 root root 1015 Apr 11 16:49 hamlib-aor.la
> > >>> -rwxr-xr-x 1 root root 120816 Apr 11 16:49 hamlib-aor.so
> > >>> -rwxr-xr-x 1 root root 1027 Apr 11 16:49 hamlib-drake.la
> > >>> -rwxr-xr-x 1 root root 38960 Apr 11 16:49 hamlib-drake.so
> > >>> -rwxr-xr-x 1 root root 1027 Apr 11 16:49 hamlib-dummy.la
> > >>> -rwxr-xr-x 1 root root 67696 Apr 11 16:49 hamlib-dummy.so
> > >>> -rwxr-xr-x 1 root root 1045 Apr 11 16:49 hamlib-easycomm.la
> > >>> -rwxr-xr-x 1 root root 10136 Apr 11 16:49 hamlib-easycomm.so
> > >>> -rwxr-xr-x 1 root root 1051 Apr 11 16:49 hamlib-flexradio.la
> > >>> -rwxr-xr-x 1 root root 39064 Apr 11 16:49 hamlib-flexradio.so
> > >>> -rwxr-xr-x 1 root root 1045 Apr 11 16:49 hamlib-fodtrack.la
> > >>> -rwxr-xr-x 1 root root 10136 Apr 11 16:49 hamlib-fodtrack.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-gs232a.la
> > >>> -rwxr-xr-x 1 root root 10168 Apr 11 16:49 hamlib-gs232a.so
> > >>> -rwxr-xr-x 1 root root 1045 Apr 11 16:49 hamlib-heathkit.la
> > >>> -rwxr-xr-x 1 root root 10152 Apr 11 16:49 hamlib-heathkit.so
> > >>> -rwxr-xr-x 1 root root 1021 Apr 11 16:49 hamlib-icom.la
> > >>> -rwxr-xr-x 1 root root 551152 Apr 11 16:49 hamlib-icom.so
> > >>> -rwxr-xr-x 1 root root 1015 Apr 11 16:49 hamlib-jrc.la
> > >>> -rwxr-xr-x 1 root root 51152 Apr 11 16:49 hamlib-jrc.so
> > >>> -rwxr-xr-x 1 root root 1039 Apr 11 16:49 hamlib-kachina.la
> > >>> -rwxr-xr-x 1 root root 18312 Apr 11 16:49 hamlib-kachina.so
> > >>> -rwxr-xr-x 1 root root 1039 Apr 11 16:49 hamlib-kenwood.la
> > >>> -rwxr-xr-x 1 root root 375544 Apr 11 16:49 hamlib-kenwood.so
> > >>> -rwxr-xr-x 1 root root 1011 Apr 11 16:49 hamlib-kit.la
> > >>> -rwxr-xr-x 1 root root 96312 Apr 11 16:49 hamlib-kit.so
> > >>> -rwxr-xr-x 1 root root 1021 Apr 11 16:49 hamlib-lowe.la
> > >>> -rwxr-xr-x 1 root root 18352 Apr 11 16:49 hamlib-lowe.so
> > >>> -rwxr-xr-x 1 root root 1015 Apr 11 16:49 hamlib-pcr.la
> > >>> -rwxr-xr-x 1 root root 51504 Apr 11 16:49 hamlib-pcr.so
> > >>> -rwxr-xr-x 1 root root 1027 Apr 11 16:49 hamlib-racal.la
> > >>> -rwxr-xr-x 1 root root 22472 Apr 11 16:49 hamlib-racal.so
> > >>> -rwxr-xr-x 1 root root 1015 Apr 11 16:49 hamlib-rft.la
> > >>> -rwxr-xr-x 1 root root 18328 Apr 11 16:49 hamlib-rft.so
> > >>> -rwxr-xr-x 1 root root 1039 Apr 11 16:49 hamlib-rotorez.la
> > >>> -rwxr-xr-x 1 root root 14264 Apr 11 16:49 hamlib-rotorez.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-rpcrig.la
> > >>> -rwxr-xr-x 1 root root 57048 Apr 11 16:49 hamlib-rpcrig.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-rpcrot.la
> > >>> -rwxr-xr-x 1 root root 14680 Apr 11 16:49 hamlib-rpcrot.so
> > >>> -rwxr-xr-x 1 root root 1009 Apr 11 16:49 hamlib-rs.la
> > >>> -rwxr-xr-x 1 root root 18360 Apr 11 16:49 hamlib-rs.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-sartek.la
> > >>> -rwxr-xr-x 1 root root 6016 Apr 11 16:49 hamlib-sartek.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-skanti.la
> > >>> -rwxr-xr-x 1 root root 18336 Apr 11 16:49 hamlib-skanti.so
> > >>> -rwxr-xr-x 1 root root 1021 Apr 11 16:49 hamlib-spid.la
> > >>> -rwxr-xr-x 1 root root 10144 Apr 11 16:49 hamlib-spid.so
> > >>> -rwxr-xr-x 1 root root 1021 Apr 11 16:49 hamlib-tapr.la
> > >>> -rwxr-xr-x 1 root root 18288 Apr 11 16:49 hamlib-tapr.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-tentec.la
> > >>> -rwxr-xr-x 1 root root 149648 Apr 11 16:49 hamlib-tentec.so
> > >>> -rwxr-xr-x 1 root root 1027 Apr 11 16:49 hamlib-tuner.la
> > >>> -rwxr-xr-x 1 root root 18336 Apr 11 16:49 hamlib-tuner.so
> > >>> -rwxr-xr-x 1 root root 1033 Apr 11 16:49 hamlib-uniden.la
> > >>> -rwxr-xr-x 1 root root 96240 Apr 11 16:49 hamlib-uniden.so
> > >>> -rwxr-xr-x 1 root root 1045 Apr 11 16:49 hamlib-winradio.la
> > >>> -rwxr-xr-x 1 root root 79752 Apr 11 16:49 hamlib-winradio.so
> > >>> -rwxr-xr-x 1 root root 1009 Apr 11 16:49 hamlib-wj.la
> > >>> -rwxr-xr-x 1 root root 22456 Apr 11 16:49 hamlib-wj.so
> > >>> -rwxr-xr-x 1 root root 1027 Apr 11 16:49 hamlib-yaesu.la
> > >>> -rwxr-xr-x 1 root root 465152 Apr 11 16:49 hamlib-yaesu.so
> > >>> -rwxr-xr-x 1 root root 1026 Apr 11 16:49 libhamlib++.la
> > >>> lrwxrwxrwx 1 root root 20 Apr 11 16:50 libhamlib++.so ->
> > >>> libhamlib++.so.2.0.5
> > >>> lrwxrwxrwx 1 root root 20 Apr 11 16:50 libhamlib++.so.2 ->
> > >>> libhamlib++.so.2.0.5
> > >>> -rwxr-xr-x 1 root root 51928 Apr 11 16:49 libhamlib++.so.2.0.5
> > >>> -rwxr-xr-x 1 root root 989 Apr 11 16:49 libhamlib.la
> > >>> lrwxrwxrwx 1 root root 19 Apr 11 16:50 libhamlib.so ->
> > >>> libhamlib.so.2.0.10
> > >>> lrwxrwxrwx 1 root root 19 Apr 11 16:50 libhamlib.so.2 ->
> > >>> libhamlib.so.2.0.10
> > >>> -rwxr-xr-x 1 root root 119568 Apr 11 16:49 libhamlib.so.2.0.10
>
> --
> George L. Emigh - AB4BD
> http://www.georgelemigh.com
>