Linphone EXE compilation problem

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
24 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Linphone EXE compilation problem

Harsh
Hello All,

I am new to linphone and trying to compile it on my windows machine.

My System configuration and installed softwares/dependencies for linphone are as below:

windows-7 32-bit OS platform

installed MinGW.exe 
installed MINGW32 (mingw32-git.exe)
installed inno compiler for build exe 


I have downloaded linphone version 3.7 from website and followed all the steps from README.mingw file for compiling and making setup file of linphone, so far everything went fine without any errors.

But when i try to build setup.exe file from MINGW32 using command "make setup.exe", that time it throws below errors:

cp: cannot stst '/usr/.bin/libbzrtp-0.dll' : No such file or directory
make[1]: *** [other-cherrypick] Error 1
make[1]: Leaving directory '/c/sources/linphone'
make : *** [zip] Error 2

Please find attached screenshot of my compilation.

Note: It gives same errors when i run "make zip"

Do i miss anything? Is there any dependency problem? Please let me know.
Any help would be appreciated.

Thanks
Harsh Jain


_______________________________________________
Linphone-developers mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/linphone-developers

make-exe.jpg (287K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
Hello All,

Do anyone have any solution for this issue? Please let me know. Any help would be appreciated.

                 And also i have tried to build setup.exe using INNO setup compiler (tool). I selected "linphone.iss" file from linphone source directory and click on run option but that time it returned "file not found : linphone-win32.filelist" error.
Please find attached screenshot of my inno setup compiler issue.

Waiting for a positive repsonse.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
In reply to this post by Harsh
I am really stuck here. can any one help me please ?
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

fess
This post was updated on .
In reply to this post by Harsh
(My 1st run I did at 12-2012)

linphone-win32.filelist is file that contains all additional dependences that linphone generates during (not sure 100%) with "make setup.exe" and at the end removes this file. This is a reason why you can't run it from Inno setup.

You can change makefile.am to avoid this or write additional row to generate tow copies of this file.

The content looks like:

Source: ./bin/avcodec-53.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/avutil-51.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/freetype6.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/intl.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libasprintf-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libatk-1.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libcairo-2.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libcairo-gobject-2.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libcairo-script-interpreter-2.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libcurl-4.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libeay32.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libeXosip2-7.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libexpat-1.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libfontconfig-1.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgailutil-18.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgcc_s_dw2-1.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgcrypt-11.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgdk-win32-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgdk_pixbuf-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgio-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libglib-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgmodule-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgnutls-26.dll; Destdir: {app}; Flags: ignoreversion
Source: ./bin/libgobject-2.0-0.dll; Destdir: {app}; Flags: ignoreversion
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

fess
In reply to this post by Harsh
I don't remember that I used libbzrtp-0.dll and I don't see in in all my minGW folder neither in linphone project.

But I see with README.minGW you have README.zrtp.

Might spread a light on this issue
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
This post was updated on .
In reply to this post by fess
Hello fess,
Thanks for your quick response.
I have checked all the possible things based on your response. Below are the outputs of all tried things:

1) I tried to look for "makefile.am" file in this path (c:\sources\), in that i have found many files with same name as per the attached image.
Can you please tell me which file i have to modify?
i have checked all files which is in image but i didn't get your given code solution in any of the file. so please help me.




2) I used inno compiler to make setup.exe using c:\sources\linphone\linphone.iss in that i have removed below code :

[Files]
#include  "linphone-win32.filelist"

and it worked when i ran setup.exe file that also got installed successfully but when open linphone that time it shows error message as per below attachment.


3) I tried to look for README.zrtp, but i didn't get this file in my system. Can you please tell me where can i find that file?
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
In reply to this post by fess
Hello fess,

I have checked all the possible things as mentioned below again but still no luck
Do you think i should try something else? please let me know if you have any hints on inno compiler or make setup.exe related issues i am facing as mentioned below.

Any help would be appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
This post was updated on .
Hi fess,

Is there any chance if you can check this?  Please let me know
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
In reply to this post by fess
Hi Fess,

Sorry for mentioning wrong name there due to typing mistake.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
In reply to this post by fess
Does anyone having any idea on how to move forward with this? I have followed all the steps mentioned in README.mingw , but still not able to run it properly.
Please help me.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

yisuhu
cp: cannot stst '/usr/.bin/libbzrtp-0.dll' : No such file or directory

don't have this file "libbzrtp-0.dll".
 
I guess during building files ,you may ignore some steps.So read the README.mingw and  the files related wit h it again, you may find some linght.God bless you.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
Hello yisuhu,

Thanks for your quick response.
I have checked all the possible things again based on your response.
From README.mingw i followed all steps but in belle-sip compilation one command "./configure --prefix=/usr --enable-shared --disable-static".
If i used that command then not getting any error but at last when run command "make setup.exe or make zip" then i am getting error which is already mention in my above post.
I have also tried with "./configure" that time i got "antlr3 package missing error" which you can see in below image.
I had also try to install antlr3 but i have no idea how to install it & where its need to be install.
Is it need to install antlr3 ?
Do i miss anything? Is there any dependency problem?Please let me know.

Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

yisuhu
Obviously you have not installed  *libantlr3c-3.2 or 3.4  and *antlr3-3.2 or 3.4 in your computer. In the README file of the belle-sip folder there are sentences below :
"
Dependencies
************

*libantlr3c-3.2 or 3.4
*antlr3-3.2 or 3.4
Newer versions won't compile.

Optional:
*CUinit-2.x
*polarssl>=1.2


On windows you have to edit /usr/local/include/antl3defs.h
replace:
#include <winsock.h>
by:
#include <winsock2.h>

Or get the source code from linphone's git (linphone branch):
git clone -b linphone git://git.linphone.org/antlr3.git
git clone -b linphone git://git.linphone.org/cunit.git
"
About how to install antlr3,you can open the file antlr3 which you download.There is a file BUID.txt in it.Open it ,it teaches you how to install antlr3.
    Unluckily ,I have be stuck with this step.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
This post was updated on .
Hello yisuhu,
I have already referred and followed the steps of README file of belle-sip directory.
But in that i didn't find any file  "edit /usr/local/include/antl3defs.h" and also did try with
git clone -b linphone git://git.linphone.org/antlr3.git as you told me to do so. referred BUILD.txt but i am not getting proper idea where to start ?
Do you think i should try something else? please let me know if you have any hints

Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

yisuhu
The file "edit /usr/local/include/antl3defs.h"  may appear after you install antl3.So you can ignore it first.
In the file readme.mingw there is :
"
* Install msys-git from (http://code.google.com/p/msysgit/).
During installation you are asked to make a choice about how line endings are treated by git.
 Choose "Checkout line endings as they are, commit as they are".
 THIS CHOICE IS VERY IMPORTANT. OTHERS BREAK AUTOMAKE.
"
     

So you should install msys-git.Then you can use it:
"
git clone -b linphone git://git.linphone.org/antlr3.git
"
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
Hello yisuhu,
Thanks for your quick response.

I have already downloaded antlr3.git. From antlr3 directory i have open BUILD.txt file and follow the steps in that written

Building
--------

http://maven.apache.org/download.html from this link i have download apache-maven-3.2.1-bin from that source i follow readme.txt file step to set environment variable but in that i am getting following error.
i have tried with java program which works fine with same system so i think there shouldn't be a JAVA related problem.
Do you think i should try something else? please let me know if you have any hints
 
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

yisuhu
My JAVA_HOME is equal to C:\Program Files\Java\jdk1.7.0_55.So you can change it like mine.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
Hello yisuhu,
Thanks for your quick response.
I have set my JAVA_HOME same as your and its work. After that i am trying to build antlr3 and refer steps from build.txt file but when building the antlr3, excute mvn -Dmaven.test.skip=true.I get

[INFO] 22 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ANTLR Master build control POM .................... SUCCESS [  0.416 s]
[INFO] Antlr Runtime 3.4.1-SNAPSHOT ...................... SUCCESS [  3.834 s]
[INFO] ANTLR Tool 3.4.1-SNAPSHOT ......................... FAILURE [  2.403 s]
[INFO] Maven plugin for ANTLR V3 ......................... SKIPPED
[INFO] ANTLR gUnit ....................................... SKIPPED
[INFO] Maven plugin for gUnit ANTLR V3 ................... SKIPPED
[INFO] ANTLR3 Maven Archetype ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.083 s
[INFO] Finished at: 2014-05-13T11:05:32+05:30
[INFO] Final Memory: 17M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
5.1:compile (default-compile) on project antlr: Compilation failure: Compilation
 failure:
[ERROR] C:\sources\belle-sip\antlr3\tool\src\main\java\org\antlr\tool\Grammar.ja
va:[795,19] error: method addAggr in class ST cannot be applied to given types;
[ERROR]
[ERROR] found: String,String,Object
[ERROR] reason: actual and formal argument lists differ in length
[ERROR] C:\sources\belle-sip\antlr3\tool\src\main\java\org\antlr\tool\Grammar.ja
va:[1632,17] error: method addAggr in class ST cannot be applied to given types;


Do you know how  to solve it? Any help would be appreciated. I also refer your same post on:-

http://nongnu.13855.n7.nabble.com/during-building-antlr3-3-4-ANTLR-Tool-3-4-1-SNAPSHOT-FAILURE-td183245.html#a183369
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

yisuhu
I haven't solved it.
=========================================================================
After excute hte command|: mvn -N install.appear:

$ mvn -N install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:antlr-master:pom:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin is missing. @ line 180, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.

=====================================================================
Afer excute the command: mvn -Dmaven.test.skip=true.apear:

[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:antlr:jar:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin is missing. @ line 76, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:antlr3-maven-plugin:maven-plugin:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sour
ce-plugin is missing. @ line 338, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:gunit:jar:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin is missing. @ line 132, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:maven-gunit-plugin:maven-plugin:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-proj
ect-info-reports-plugin is missing. @ line 231, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sour
ce-plugin is missing. @ line 239, column 21
[WARNING] The expression ${groupId} is deprecated. Please use ${project.groupId}
 instead.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:antlr3-maven-archetype:maven-archetype:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-sour
ce-plugin is missing. @ line 79, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.antlr:antlr-master:pom:3.4.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin is missing. @ line 180, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten t
he stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support buildin
g such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------


method addAggr in class ST cannot be applied to given types;

==============================================================================
So the key to the problem is to find  'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp
iler-plugin and solve method addAggr in class ST cannot be applied to given types;  .If we can solve it,building it may succeed
  Recently I did another project.I also focus it if I am free.
Reply | Threaded
Open this post in threaded view
|

Re: Linphone EXE compilation problem

Harsh
Ok i am working on this issue and if i found any solution then i will help you.
Any thoughts from anyone about this issue will be appreciated ?
12