FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-08-2011, 06:31 PM
Alain Muls
 
Default KML: problems while compiling

Hi All

I installed the libkmldev package for creating KML files to use in
GoogleEarth. As development environment I use QT-creator and make
console or GUI applications using the Qt APIs.

I tested the compilation using the createkml example, which I
integrated into a basic Qt console application (main.cpp). The
makefile is obtained from a .pro file running qmake. The .pro-file I
used was:


QT += core

QT -= gui

TARGET = createkml
CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

SOURCES += main.cpp

During compile, the compiler complained that the dom.h file is not
available. So I looked for it and found it in the /usr/include/kml
directory. I adjusted the .pro file by adding:

INCLUDEPATH += /usr/include/kml

which allowed to compile, but the linking failes since the kml libs
were not found. Looking for these I found them in /usr/lib, which is
in my LD_LIBRARY_PATH, so that was something odd, since they should be
found normally. A second adjustment of the .pro file is adding the
lines

LIBS += /usr/lib/libkmlbase.so
LIBS += /usr/lib/libkmldom.so

and now the program links and runs OK.

How is it that the header files and libraries are not automagically found?

A second question, does anyone has a link to the API of the kml
development libraries?

Tx/Alain

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 07:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org