Failing to compile swig pjsua for python

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

 



Hi All,

I am looking for help to compile PJSUA for python with Swig for Windows.

I have done following so far:
 - Install active python 3.6.6
 - Add C:\Python36\include to system path
 - Install jdk
 - Set JAVA_HOME system variable to C:\Program Files\Java\jdk-11.0.2
 - Add %JAVA_HOME%\bin to system path
 - Extract swigwin to C:\Program Files\swigwin-3.0.12
 - Add C:\Program Files\swigwin-3.0.12 to system path
 - Download and extract source code of PJSIP
 - Create empty file pjlib/include/pj/config_site.h
 - Install VS express 2015
 - Open project and install extra requirements in VS installer
 - mark swig_java_pjsua2 to build
 - Unmark all uwp and wp8 from build
 - On python_pjsua project: right click on the project> properties> vc++ directories>library directories> dropdown> edit
 -  Add Python include directory (e.g. C:\Python24\include) to Visual Studio include directories. 
   - Add Python library directory (e.g. C:\Python24\libs) to Visual Studio library directories.
 - On swig_java_pjsua2 project:right click on the project> properties> vc++ directories>library directories> dropdown> edit
- c:\Program Files\Java\jdk-11.0.2\include\
- c:\Program Files\Java\jdk-11.0.2\include\win32\

When I try to compile, it fails with following error message:
Error Unrecognized option install swig_java_pjsua2 C:\Users\user\Desktop\PJSIP install package\pjproject-2.8_001\pjproject-2.8\pjsip-apps\build\CUSTOMBUILD 1

Complete log attached to email.

Anyone could help or suggest how to solve this problem?

Thank You
Krisz
1>------ Build started: Project: swig_java_pjsua2, Configuration: Debug Win32 ------
1>  Performing Custom Build Tools
1>  **************************************************************
1>   - Make sure 'swig' and 'javac' locations are in your PATH environment vars.
1>   - Make sure Java SDK header file directories
1>     (e.g: C:\Program Files (x86)\Java\jdk1.7.0_79\include and C:\Program Files (x86)\Java\jdk1.7.0_79\include\win32)
1>     are in your MSVC header search path
1>  **************************************************************
1>  Building pjsua2.dll to
1>  A subdirectory or file ..\src\swig\java\output\org\pjsip\pjsua2 already exists.
1>CUSTOMBUILD : swig error : Unrecognized option install
1>CUSTOMBUILD : swig error : Unrecognized option package\pjproject-2.8_001\pjproject-2.8\pjsip\include
1>CUSTOMBUILD : swig error : Unrecognized option C:\Users\user\Desktop\PJSIP
1>CUSTOMBUILD : swig error : Unrecognized option install
1>  Use 'swig -help' for available options.
1>  Exception in thread "main" java.nio.file.InvalidPathException: Illegal char <*> at index 41: ..\src\swig\java\output\org\pjsip\pjsua2\*.java
1>  	at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
1>  	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
1>  	at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
1>  	at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
1>  	at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
1>  	at java.base/java.nio.file.Path.of(Path.java:147)
1>  	at java.base/java.nio.file.Paths.get(Paths.java:69)
1>  	at jdk.compiler/com.sun.tools.javac.main.Option$37.process(Option.java:693)
1>  	at jdk.compiler/com.sun.tools.javac.main.Option.handleOption(Option.java:1088)
1>  	at jdk.compiler/com.sun.tools.javac.main.Arguments.doProcessArgs(Arguments.java:381)
1>  	at jdk.compiler/com.sun.tools.javac.main.Arguments.processArgs(Arguments.java:347)
1>  	at jdk.compiler/com.sun.tools.javac.main.Arguments.init(Arguments.java:193)
1>  	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:229)
1>  	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
1>  	at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
1>  	at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
1>  Building sample app
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:30: error: cannot find symbol
1>      abstract void notifyRegState(pjsip_status_code code, String reason,
1>                                   ^
1>    symbol:   class pjsip_status_code
1>    location: interface MyAppObserver
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:50: error: cannot find symbol
1>  class MyCall extends Call
1>                       ^
1>    symbol: class Call
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:203: error: cannot find symbol
1>  class MyBuddy extends Buddy
1>                        ^
1>    symbol: class Buddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:205: error: cannot find symbol
1>      public BuddyConfig cfg;
1>             ^
1>    symbol:   class BuddyConfig
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:207: error: cannot find symbol
1>      MyBuddy(BuddyConfig config)
1>              ^
1>    symbol:   class BuddyConfig
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:52: error: cannot find symbol
1>      public VideoWindow vidWin;
1>             ^
1>    symbol:   class VideoWindow
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:53: error: cannot find symbol
1>      public VideoPreview vidPrev;
1>             ^
1>    symbol:   class VideoPreview
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:129: error: cannot find symbol
1>  class MyAccount extends Account
1>                          ^
1>    symbol: class Account
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:62: error: cannot find symbol
1>      public void onCallState(OnCallStateParam prm)
1>                              ^
1>    symbol:   class OnCallStateParam
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:81: error: cannot find symbol
1>      public void onCallMediaState(OnCallMediaStateParam prm)
1>                                   ^
1>    symbol:   class OnCallMediaStateParam
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:132: error: cannot find symbol
1>      public AccountConfig cfg;
1>             ^
1>    symbol:   class AccountConfig
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:134: error: cannot find symbol
1>      MyAccount(AccountConfig config)
1>                ^
1>    symbol:   class AccountConfig
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:140: error: cannot find symbol
1>      public MyBuddy addBuddy(BuddyConfig bud_cfg)
1>                              ^
1>    symbol:   class BuddyConfig
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:176: error: cannot find symbol
1>      public void onRegState(OnRegStateParam prm)
1>                             ^
1>    symbol:   class OnRegStateParam
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:183: error: cannot find symbol
1>      public void onIncomingCall(OnIncomingCallParam prm)
1>                                 ^
1>    symbol:   class OnIncomingCallParam
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:191: error: cannot find symbol
1>      public void onInstantMessage(OnInstantMessageParam prm)
1>                                   ^
1>    symbol:   class OnInstantMessageParam
1>    location: class MyAccount
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:24: error: package org.pjsip.pjsua2 does not exist
1>  import org.pjsip.pjsua2.*;
1>  ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:40: error: cannot find symbol
1>  class MyLogWriter extends LogWriter
1>                            ^
1>    symbol: class LogWriter
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:43: error: cannot find symbol
1>      public void write(LogEntry entry)
1>                        ^
1>    symbol:   class LogEntry
1>    location: class MyLogWriter
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:254: error: cannot find symbol
1>      public AccountConfig accCfg = new AccountConfig();
1>             ^
1>    symbol:   class AccountConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:255: error: cannot find symbol
1>      public ArrayList<BuddyConfig> buddyCfgs = new ArrayList<BuddyConfig>();
1>                       ^
1>    symbol:   class BuddyConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:257: error: cannot find symbol
1>      public void readObject(ContainerNode node)
1>                             ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:272: error: cannot find symbol
1>      public void writeObject(ContainerNode node)
1>                              ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:301: error: cannot find symbol
1>      public static Endpoint ep = new Endpoint();
1>                    ^
1>    symbol:   class Endpoint
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:307: error: cannot find symbol
1>      private EpConfig epConfig = new EpConfig();
1>              ^
1>    symbol:   class EpConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:308: error: cannot find symbol
1>      private TransportConfig sipTpConfig = new TransportConfig();
1>              ^
1>    symbol:   class TransportConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:439: error: cannot find symbol
1>      public MyAccount addAcc(AccountConfig cfg)
1>                              ^
1>    symbol:   class AccountConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:61: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:65: error: cannot find symbol
1>  	    CallInfo ci = getInfo();
1>  	    ^
1>    symbol:   class CallInfo
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:65: error: cannot find symbol
1>  	    CallInfo ci = getInfo();
1>  	                  ^
1>    symbol:   method getInfo()
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:67: error: cannot find symbol
1>  		pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED)
1>  		^
1>    symbol:   variable pjsip_inv_state
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:69: error: cannot find symbol
1>  		MyApp.ep.utilLogWrite(3, "MyCall", this.dump(true, ""));
1>  		                                       ^
1>    symbol: method dump(boolean,String)
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:80: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:83: error: cannot find symbol
1>  	CallInfo ci;
1>  	^
1>    symbol:   class CallInfo
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:85: error: cannot find symbol
1>  	    ci = getInfo();
1>  	         ^
1>    symbol:   method getInfo()
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:90: error: cannot find symbol
1>  	CallMediaInfoVector cmiv = ci.getMedia();
1>  	^
1>    symbol:   class CallMediaInfoVector
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:93: error: cannot find symbol
1>  	    CallMediaInfo cmi = cmiv.get(i);
1>  	    ^
1>    symbol:   class CallMediaInfo
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:94: error: cannot find symbol
1>  	    if (cmi.getType() == pjmedia_type.PJMEDIA_TYPE_AUDIO &&
1>  	                         ^
1>    symbol:   variable pjmedia_type
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:96: error: cannot find symbol
1>  		 	pjsua_call_media_status.PJSUA_CALL_MEDIA_ACTIVE ||
1>  		 	^
1>    symbol:   variable pjsua_call_media_status
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:98: error: cannot find symbol
1>  			pjsua_call_media_status.PJSUA_CALL_MEDIA_REMOTE_HOLD))
1>  			^
1>    symbol:   variable pjsua_call_media_status
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:102: error: cannot find symbol
1>  		Media m = getMedia(i);
1>  		^
1>    symbol:   class Media
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:102: error: cannot find symbol
1>  		Media m = getMedia(i);
1>  		          ^
1>    symbol:   method getMedia(int)
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:103: error: cannot find symbol
1>  		AudioMedia am = AudioMedia.typecastFromMedia(m);
1>  		^
1>    symbol:   class AudioMedia
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:103: error: cannot find symbol
1>  		AudioMedia am = AudioMedia.typecastFromMedia(m);
1>  		                ^
1>    symbol:   variable AudioMedia
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:114: error: cannot find symbol
1>  	    } else if (cmi.getType() == pjmedia_type.PJMEDIA_TYPE_VIDEO &&
1>  	                                ^
1>    symbol:   variable pjmedia_type
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:116: error: cannot find symbol
1>  			    pjsua_call_media_status.PJSUA_CALL_MEDIA_ACTIVE &&
1>  			    ^
1>    symbol:   variable pjsua_call_media_status
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:117: error: cannot find symbol
1>  		       cmi.getVideoIncomingWindowId() != pjsua2.INVALID_ID)
1>  		                                         ^
1>    symbol:   variable pjsua2
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:119: error: cannot find symbol
1>  		vidWin = new VideoWindow(cmi.getVideoIncomingWindowId());
1>  		             ^
1>    symbol:   class VideoWindow
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:120: error: cannot find symbol
1>  		vidPrev = new VideoPreview(cmi.getVideoCapDev());
1>  		              ^
1>    symbol:   class VideoPreview
1>    location: class MyCall
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:215: error: cannot find symbol
1>  	BuddyInfo bi;
1>  	^
1>    symbol:   class BuddyInfo
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:218: error: cannot find symbol
1>  	    bi = getInfo();
1>  	         ^
1>    symbol:   method getInfo()
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:224: error: cannot find symbol
1>  	if (bi.getSubState() == pjsip_evsub_state.PJSIP_EVSUB_STATE_ACTIVE) {
1>  	                        ^
1>    symbol:   variable pjsip_evsub_state
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:226: error: cannot find symbol
1>  		pjsua_buddy_status.PJSUA_BUDDY_STATUS_ONLINE)
1>  		^
1>    symbol:   variable pjsua_buddy_status
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:233: error: cannot find symbol
1>  		       pjsua_buddy_status.PJSUA_BUDDY_STATUS_OFFLINE)
1>  		       ^
1>    symbol:   variable pjsua_buddy_status
1>    location: class MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:243: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:147: error: cannot find symbol
1>  	    bud.delete();
1>  	       ^
1>    symbol:   method delete()
1>    location: variable bud of type MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:155: error: cannot find symbol
1>  		    bud.subscribePresence(true);
1>  		       ^
1>    symbol:   method subscribePresence(boolean)
1>    location: variable bud of type MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:165: error: cannot find symbol
1>  	buddy.delete();
1>  	     ^
1>    symbol:   method delete()
1>    location: variable buddy of type MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:172: error: cannot find symbol
1>  	bud.delete();
1>  	   ^
1>    symbol:   method delete()
1>    location: variable bud of type MyBuddy
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:175: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:182: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:190: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:42: error: method does not override or implement a method from a supertype
1>      @Override
1>      ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:254: error: cannot find symbol
1>      public AccountConfig accCfg = new AccountConfig();
1>                                        ^
1>    symbol:   class AccountConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:255: error: cannot find symbol
1>      public ArrayList<BuddyConfig> buddyCfgs = new ArrayList<BuddyConfig>();
1>                                                              ^
1>    symbol:   class BuddyConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:260: error: cannot find symbol
1>  	    ContainerNode acc_node = node.readContainer("Account");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:262: error: cannot find symbol
1>  	    ContainerNode buddies_node = acc_node.readArray("buddies");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:265: error: cannot find symbol
1>  		BuddyConfig bud_cfg = new BuddyConfig();
1>  		^
1>    symbol:   class BuddyConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:265: error: cannot find symbol
1>  		BuddyConfig bud_cfg = new BuddyConfig();
1>  		                          ^
1>    symbol:   class BuddyConfig
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:275: error: cannot find symbol
1>  	    ContainerNode acc_node = node.writeNewContainer("Account");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:277: error: cannot find symbol
1>  	    ContainerNode buddies_node = acc_node.writeNewArray("buddies");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyAccountConfig
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:301: error: cannot find symbol
1>      public static Endpoint ep = new Endpoint();
1>                                      ^
1>    symbol:   class Endpoint
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:307: error: cannot find symbol
1>      private EpConfig epConfig = new EpConfig();
1>                                      ^
1>    symbol:   class EpConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:308: error: cannot find symbol
1>      private TransportConfig sipTpConfig = new TransportConfig();
1>                                                ^
1>    symbol:   class TransportConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:352: error: cannot find symbol
1>  	LogConfig log_cfg = epConfig.getLogConfig();
1>  	^
1>    symbol:   class LogConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:356: error: package pj_log_decoration does not exist
1>  			 ~(pj_log_decoration.PJ_LOG_HAS_CR.swigValue() |
1>  			                    ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:357: error: package pj_log_decoration does not exist
1>  			 pj_log_decoration.PJ_LOG_HAS_NEWLINE.swigValue()));
1>  			                  ^
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:364: error: cannot find symbol
1>  	UaConfig ua_cfg = epConfig.getUaConfig();
1>  	^
1>    symbol:   class UaConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:387: error: cannot find symbol
1>  	    ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_UDP,
1>  	                       ^
1>    symbol:   variable pjsip_transport_type_e
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:394: error: cannot find symbol
1>  	    ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TCP,
1>  	                       ^
1>    symbol:   variable pjsip_transport_type_e
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:402: error: cannot find symbol
1>  	    ep.transportCreate(pjsip_transport_type_e.PJSIP_TRANSPORT_TLS,
1>  	                       ^
1>    symbol:   variable pjsip_transport_type_e
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:426: error: cannot find symbol
1>  		BuddyConfig bud_cfg = my_cfg.buddyCfgs.get(j);
1>  		^
1>    symbol:   class BuddyConfig
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:460: error: cannot find symbol
1>  	JsonDocument json = new JsonDocument();
1>  	^
1>    symbol:   class JsonDocument
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:460: error: cannot find symbol
1>  	JsonDocument json = new JsonDocument();
1>  	                        ^
1>    symbol:   class JsonDocument
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:465: error: cannot find symbol
1>  	    ContainerNode root = json.getRootContainer();
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:471: error: cannot find symbol
1>  	    ContainerNode tp_node = root.readContainer("SipTransport");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:476: error: cannot find symbol
1>  	    ContainerNode accs_node = root.readArray("accounts");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:513: error: cannot find symbol
1>  	JsonDocument json = new JsonDocument();
1>  	^
1>    symbol:   class JsonDocument
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:513: error: cannot find symbol
1>  	JsonDocument json = new JsonDocument();
1>  	                        ^
1>    symbol:   class JsonDocument
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:520: error: cannot find symbol
1>  	    ContainerNode tp_node = json.writeNewContainer("SipTransport");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:525: error: cannot find symbol
1>  	    ContainerNode accs_node = json.writeNewArray("accounts");
1>  	    ^
1>    symbol:   class ContainerNode
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:544: error: cannot find symbol
1>  	    IpChangeParam changeParam = new IpChangeParam();
1>  	    ^
1>    symbol:   class IpChangeParam
1>    location: class MyApp
1>  ..\src\swig\java\android\app\src\main\java\org\pjsip\pjsua2\app\MyApp.java:544: error: cannot find symbol
1>  	    IpChangeParam changeParam = new IpChangeParam();
1>  	                                    ^
1>    symbol:   class IpChangeParam
1>    location: class MyApp
1>  93 errors
1>  ..\src\swig\java\output\..\test.java:1: error: package org.pjsip.pjsua2 does not exist
1>  import org.pjsip.pjsua2.*;
1>  ^
1>  ..\src\swig\java\output\..\test.java:11: error: cannot find symbol
1>  	AuthCredInfo cred = new AuthCredInfo();
1>  	^
1>    symbol:   class AuthCredInfo
1>    location: class test
1>  ..\src\swig\java\output\..\test.java:11: error: cannot find symbol
1>  	AuthCredInfo cred = new AuthCredInfo();
1>  	                        ^
1>    symbol:   class AuthCredInfo
1>    location: class test
1>  3 errors
1>  ..\src\swig\java\output\..\sample.java:26: error: cannot find symbol
1>  class MyObserver implements MyAppObserver {
1>                              ^
1>    symbol: class MyAppObserver
1>  ..\src\swig\java\output\..\sample.java:27: error: cannot find symbol
1>  	private static MyCall currentCall = null;
1>  	               ^
1>    symbol:   class MyCall
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:40: error: cannot find symbol
1>  	public void notifyRegState(pjsip_status_code code, String reason, int expiration) {}
1>  	                           ^
1>    symbol:   class pjsip_status_code
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:43: error: cannot find symbol
1>  	public void notifyIncomingCall(MyCall call) {
1>  	                               ^
1>    symbol:   class MyCall
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:57: error: cannot find symbol
1>  	public void notifyCallMediaState(MyCall call) {
1>  	                                 ^
1>    symbol:   class MyCall
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:60: error: cannot find symbol
1>  	public void notifyCallState(MyCall call) {
1>  	                            ^
1>    symbol:   class MyCall
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:80: error: cannot find symbol
1>  	public void notifyBuddyState(MyBuddy buddy) {}
1>  	                             ^
1>    symbol:   class MyBuddy
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:23: error: package org.pjsip.pjsua2 does not exist
1>  import org.pjsip.pjsua2.*;
1>  ^
1>  ..\src\swig\java\output\..\sample.java:102: error: cannot find symbol
1>  	private static MyApp app = new MyApp();
1>  	               ^
1>    symbol:   class MyApp
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:104: error: cannot find symbol
1>  	private static MyAccount account = null;
1>  	               ^
1>    symbol:   class MyAccount
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:105: error: cannot find symbol
1>  	private static AccountConfig accCfg = null;
1>  	               ^
1>    symbol:   class AccountConfig
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:39: error: method does not override or implement a method from a supertype
1>  	@Override
1>  	^
1>  ..\src\swig\java\output\..\sample.java:42: error: method does not override or implement a method from a supertype
1>  	@Override
1>  	^
1>  ..\src\swig\java\output\..\sample.java:45: error: cannot find symbol
1>  		CallOpParam call_param = new CallOpParam();
1>  		^
1>    symbol:   class CallOpParam
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:45: error: cannot find symbol
1>  		CallOpParam call_param = new CallOpParam();
1>  		                             ^
1>    symbol:   class CallOpParam
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:46: error: cannot find symbol
1>  		call_param.setStatusCode(pjsip_status_code.PJSIP_SC_OK);
1>  		                         ^
1>    symbol:   variable pjsip_status_code
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:56: error: method does not override or implement a method from a supertype
1>  	@Override
1>  	^
1>  ..\src\swig\java\output\..\sample.java:64: error: cannot find symbol
1>  		CallInfo ci;
1>  		^
1>    symbol:   class CallInfo
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:70: error: cannot find symbol
1>  		if (ci.getState() == pjsip_inv_state.PJSIP_INV_STATE_DISCONNECTED) {
1>  		                     ^
1>    symbol:   variable pjsip_inv_state
1>    location: class MyObserver
1>  ..\src\swig\java\output\..\sample.java:79: error: method does not override or implement a method from a supertype
1>  	@Override
1>  	^
1>  ..\src\swig\java\output\..\sample.java:82: error: method does not override or implement a method from a supertype
1>  	@Override
1>  	^
1>  ..\src\swig\java\output\..\sample.java:102: error: cannot find symbol
1>  	private static MyApp app = new MyApp();
1>  	                               ^
1>    symbol:   class MyApp
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:130: error: cannot find symbol
1>  			accCfg = new AccountConfig();
1>  			             ^
1>    symbol:   class AccountConfig
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:135: error: cannot find symbol
1>  			AccountSipConfig sipCfg = accCfg.getSipConfig();
1>  			^
1>    symbol:   class AccountSipConfig
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:136: error: cannot find symbol
1>  			AuthCredInfoVector ciVec = sipCfg.getAuthCreds();
1>  			^
1>    symbol:   class AuthCredInfoVector
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:137: error: cannot find symbol
1>  			ciVec.add(new AuthCredInfo("Digest",
1>  			              ^
1>    symbol:   class AuthCredInfo
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:143: error: cannot find symbol
1>  			StringVector proxy = sipCfg.getProxies();
1>  			^
1>    symbol:   class StringVector
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:146: error: cannot find symbol
1>  			AccountRegConfig regCfg = accCfg.getRegConfig();
1>  			^
1>    symbol:   class AccountRegConfig
1>    location: class sample
1>  ..\src\swig\java\output\..\sample.java:160: error: package MyApp does not exist
1>  			MyApp.ep.libHandleEvents(10);
1>  			     ^
1>  29 errors
1>  **************************************************************
1>   After the build completed succesfully, try to run the test app, e.g:
1>   java -cp D:\projects\pjproject\pjsip-apps\src\swig\java\output -Djava.library.path="D:\projects\pjproject\pjsip-apps\src\swig\java\output" org.pjsip.pjsua2.app.sample
1>  **************************************************************
========== Build: 0 succeeded, 1 failed, 23 up-to-date, 0 skipped ==========
_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux