[ gpsdrive ] FYI: Makefile changes from automake to cmake
Andreas Schneider
mail at cynapses.org
Mon Dec 31 00:33:04 AKST 2007
Guenther Meyer wrote:
> Am Sonntag 30 Dezember 2007 schrieb Andreas Schneider:
>> Guenther Meyer wrote:
>>> Am Sonntag 30 Dezember 2007 schrieb Joerg Ostertag (gpsdrive
> Munich/Germany):
>>>> On Sonntag 30 Dezember 2007, Guenther Meyer wrote:
>>>>> Am Sonntag 30 Dezember 2007 schrieb Joerg Ostertag (gpsdrive
>>>> Munich/Germany):
>>>>>> We are currently trying to change the makefiles and build structure
>>>>>> for gpsdrive from autotools to cmake in the next few days/weeks. So
>>>>>> you might experience some troubles compiling the svn sources. If so
>>>>>> please tell us in order to find a way arround the troubles.
>>>>> ok, so how do I build with cmake?
>>>>> a "cmake ." won't work. and what is thsi lomoco thing?
>>>> If you already calles cmake anywhere alse, you schould remove the file
>>>> CMakeCache.txt. This is what the error means.
>>> then the error maybe should give a hint to this?
>>>
>>> my "build":
>>>
>>> Scanning dependencies of target friendsd
>>> [ 1%] Building C object src/CMakeFiles/friendsd.dir/friendsd.o
>>> /home/dse/Projekte/gpsdrive.dev/trunk/src/friendsd.c: In function ‘main’:
>>> /home/dse/Projekte/gpsdrive.dev/trunk/src/friendsd.c:521: error:
>>> ‘LOCALEDIR’ undeclared (first use in this function)
>>> /home/dse/Projekte/gpsdrive.dev/trunk/src/friendsd.c:521: error: (Each
>>> undeclared identifier is reported only once
>>> /home/dse/Projekte/gpsdrive.dev/trunk/src/friendsd.c:521: error: for each
>>> function it appears in.)
>>> make[2]: *** [src/CMakeFiles/friendsd.dir/friendsd.o] Fehler 1
>>> make[1]: *** [src/CMakeFiles/friendsd.dir/all] Fehler 2
>>> make: *** [all] Fehler 2
>> Are you sure that cmake configure was sucessful. It looks like the config.h
>> wasn't generated.
>>
>> -- andreas
>
> yes it was generated inside the build dir.
>
> but maybe is the error inside the friendsd.c file where config.h is include
> with #include "../config.h"
>
I think that's the problem. Use #include "config".
-- andreas
--
http://www.cynapses.org/ - cybernetic synapses
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://lists.gpsdrivers.org/pipermail/gpsdrive/attachments/20071231/c9d86ada/attachment.bin
More information about the GPSdrive
mailing list