linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Fwd: Re: Liblinphone Linking with Qt Creator


From: Georges Khoueiry
Subject: Re: [Linphone-developers] Fwd: Re: Liblinphone Linking with Qt Creator
Date: Wed, 31 Oct 2012 14:26:21 +0200

Oops , sorry for the hasty conclusion , I'm still getting undefined reference `linphone_proxy_config_get_addr' for example and many others , to be honest I'm actually trying the basic registration  tutorial from 'http://mirror.veriportal.com/savannah//linphone/docs/liblinphone/group__registration__tutorials.html

I figured the main problem is still in LIBS +=  ... because whatever I put here the code is building without linking error then I get the undefined reference.



On Wed, Oct 31, 2012 at 2:17 PM, Diorcet Yann <address@hidden> wrote:



-------- Message original --------
Sujet: Re: [Linphone-developers] Liblinphone Linking with Qt Creator
Date : Wed, 31 Oct 2012 13:48:58 +0200
De : Georges Khoueiry <address@hidden>
Pour : address@hidden


Apparently I was using mvcc , and the switch to mingw32 made it work!
 thank you , your help is greatly appreciated !



On Wed, Oct 31, 2012 at 1:17 PM, Diorcet Yann <address@hidden> wrote:

Le 31/10/12 12:08, Georges Khoueiry a écrit :
I tried  
 Try with something like that
LIBS += -L:/liblinphone-win32-3.5.99.0/lib/ \
    -llinphone \
    -lmediastreamer \
-lortpand 
I got : :-1: error: LNK1104: cannot open file 'linphone.lib'
I also tried the same but with -lliblinphone instead of -llinphone because the file is physically called liblinphone.dll.a
and also didn't work , same error.
I finally tried the following , no error linking , but back to the old error about not finding the symbols

LIBS += -L:/liblinphone-win32-3.5.99.0/lib/-lliblinphone \
    -L:/liblinphone-win32-3.5.99.0/lib/-llibmediastreamer \
    -L:/liblinphone-win32-3.5.99.0/lib/-llibortp
Je vous remercie pour votre temps et efforts , est-ce que vous suggeres une autre methode ou approche pour mon probleme ?
 
Which compiler did you use? mingw32 or mvcc?

On Wed, Oct 31, 2012 at 12:56 PM, Diorcet Yann <address@hidden> wrote:
Hi,
Le 31/10/12 11:50, Georges Khoueiry a écrit :
Hello,
I'm trying to implement a Qt Gui for Linphone using Qt Creator,
I got hold of Liblinphone and added the following to my .pro :
INCLUDEPATH += liblinphone-win32-3.5.99.0/include/
LIBS += -L:/liblinphone-win32-3.5.99.0/lib/liblinphone.dll.a \
    -L:/liblinphone-win32-3.5.99.0/lib/libmediastreamer.dll.a \
    -L:/liblinphone-win32-3.5.99.0/lib/libortp.dll.a
Try with something like that
LIBS += -L:/liblinphone-win32-3.5.99.0/lib/ \
    -llinphone \
    -lmediastreamer \
    -lortp
The INCLUDEPATH works perfectly , I can include the .h files and call the functions , but what seems to be the problem is in linking the Libraries, I figured these are the proper libraries to link. Upon building the project I'm having the following error: LNK2019: unresolved external symbol _linphone_core_destroy , and for many other functions I've called. So I guess the problem is dynamically linking the libraries with the .h files so I'm not sure what to include in my project , or which libraries to add/link
I would appreciate any help I can get , thank you.
--
Georges Khoueiry 


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


--
Yann Diorcet


_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--
Georges Khoueiry

--
Yann Diorcet




--
Georges Khoueiry 




_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers




--
Georges Khoueiry 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]