Closed srikanthbvrao closed 1 year ago
Hi @srikanthbvrao
We don't have any GUI version for any Linux Distro currently. However, a console development version can be compiled.
Hi Kingster,
------- Below is complete "make" result.
srikanth@srikanth-virtual-machine:/usr/src/tinyphone/tinyphone-linux$ sudo make
[ 5%] Building CXX object /usr/src/tinyphone/lib/statsd-cpp/build/CMakeFiles/statsd_static.dir/src/statsd.cpp.o
[ 10%] Linking CXX static library lib/libstatsd_static.a
[ 10%] Built target statsd_static
[ 15%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/account.cpp.o
[ 21%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/baseapp.cpp.o
/usr/src/tinyphone/tinyphone/baseapp.cpp: In function ‘void tp::InitPJSUAEndpoint(std::string)’:
/usr/src/tinyphone/tinyphone/baseapp.cpp:140:71: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
140 | pj_logerror(pjsip_endpt_create_resolver(endpt, &resolver),"pjsip_endpt_create_resolver");
| ^~~~~~~~~
[ 26%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/call.cpp.o
[ 31%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/config.cpp.o
[ 36%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/microtar.cpp.o
[ 42%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/mod_notify.cpp.o
/usr/src/tinyphone/tinyphone/mod_notify.cpp: In function ‘pj_bool_t options_on_rx_request(pjsip_rx_data)’:
/usr/src/tinyphone/tinyphone/mod_notify.cpp:39:39: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
39 | const pj_str_t USER_AGENT = { "User-Agent", 10};
| ^~~~
/usr/src/tinyphone/tinyphone/mod_notify.cpp: At global scope:
/usr/src/tinyphone/tinyphone/mod_notify.cpp:59:7: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
59 | { "mod-notify", 51 }, / Name. /
| ^~~~
[ 47%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/net.cpp.o
[ 52%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/phone.cpp.o
/usr/src/tinyphone/tinyphone/phone.cpp: In member function ‘void tp::TinyPhone::SetCodecs()’:
/usr/src/tinyphone/tinyphone/phone.cpp:39:43: warning: ISO C++ forbids converting a string constant to ‘char’ [-Wwrite-strings]
39 | const pj_str_t ID_ALL = { "", 1 };
| ^~~
[ 57%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/server.cpp.o
[ 63%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/stdafx.cpp.o
[ 68%] Building CXX object CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/utils.cpp.o
[ 73%] Building CXX object CMakeFiles/tinyphone.dir/console.cpp.o
[ 78%] Linking CXX executable tinyphone
/usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/account.cpp.o: in function tp::SIPAccount::onIncomingCall(pj::OnIncomingCallParam&)': account.cpp:(.text+0x5150): undefined reference to
pjsua_schedule_timer2'
/usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/account.cpp.o: in function boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const': account.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0xbf): undefined reference to
boost::system::generic_category()'
/usr/bin/ld: account.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition[_ZNK5boost6system14error_category12std_category10equivalentEiRKSt15error_condition]+0xfa): undefined reference to boost::system::generic_category()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/account.cpp.o: in function
boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
account.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0xc0): undefined reference to boost::system::generic_category()' /usr/bin/ld: account.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0xfb): undefined reference to
boost::system::generic_category()'
/usr/bin/ld: account.cpp:(.text._ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei[_ZNK5boost6system14error_category12std_category10equivalentERKSt10error_codei]+0x1e2): undefined reference to boost::system::generic_category()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/baseapp.cpp.o: in function
boost::system::error_code::error_code()':
baseapp.cpp:(.text._ZN5boost6system10error_codeC2Ev[_ZN5boost6system10error_codeC5Ev]+0x1b): undefined reference to boost::system::system_category()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/baseapp.cpp.o: in function
boost::asio::error::get_system_category()':
baseapp.cpp:(.text._ZN5boost4asio5error19get_system_categoryEv[_ZN5boost4asio5error19get_system_categoryEv]+0x9): undefined reference to boost::system::system_category()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/phone.cpp.o: in function
tp::TinyPhone::ConfigureAudioDevices()':
phone.cpp:(.text+0x5bc4): undefined reference to pj::AudDevManager::enumDev()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/server.cpp.o: in function
TinyPhoneHttpServer::Start()::{lambda()#6}::operator()() const':
server.cpp:(.text+0x52d8): undefined reference to pj::AudDevManager::enumDev()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/server.cpp.o: in function
unsigned short boost::date_time::month_str_to_ushortboost::gregorian::greg_month::get_month_map_ptr[abi:cxx11]()' /usr/bin/ld: CMakeFiles/tinyphone.dir/usr/src/tinyphone/tinyphone/utils.cpp.o: in function
boost::filesystem::create_directory(boost::filesystem::path const&)':
utils.cpp:(.text._ZN5boost10filesystem16create_directoryERKNS0_4pathE[_ZN5boost10filesystem16create_directoryERKNS0_4pathE]+0x1d): undefined reference to `boost::filesystem::detail::create_directory(boost::filesystem::path const&, boost::system::error_code*)'
collect2: error: ld returned 1 exit status
make[2]: [CMakeFiles/tinyphone.dir/build.make:278: tinyphone] Error 1
make[1]: [CMakeFiles/Makefile2:122: CMakeFiles/tinyphone.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
Thanks and Regards, Srikanth
Please make sure you install the boost dependencies. From, your logs it seems that some of boost components are missing.
You can refer to the CI Job https://github.com/voiceip/tinyphone/blob/master/.github/workflows/main.yml#L175-L222 which runs the same sequence of commands to verify that the code compiles.
Also, the instructions are for ubuntu 20.04. If you are on any other version/distribution you will need to install the dependencies accordingly.
Hi Kingster,
Thank you very much for your support! I am able to install now. Also checking default location for config.json, let me try and register to some SIP Server and come back if I have any doubt.
Thanks and Regards, Srikanth
Hi Kingster,
I was able to test all the APIs, thanks very much for your support!
Thanks and Regards, Srikanth
Glad, that I could help.
I am going ahead and closing this issue, as you confirmed that you have been able to compile successfully. Please open a fresh issue if you find any issue.
Thankyou Kinshukji!
Thanks and Regards,
Srikanth B V | +91 97422 54298 | @.***
On Tue, Jul 26, 2022 at 10:43 AM Kinshuk Bairagi @.***> wrote:
Glad, that I could help.
I am going ahead and closing this issue, as you confirmed that you have been able to compile successfully. Please open a fresh issue if you find any issue.
— Reply to this email directly, view it on GitHub https://github.com/voiceip/tinyphone/issues/66#issuecomment-1195011745, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZT7DTL4QEQ3PU6XO3WGP3VV5XXLANCNFSM54RPYVMQ . You are receiving this because you were mentioned.Message ID: @.***>
Dear Team,
Can anyone please help, how do I install Tiny phone on Ubuntu Linux?
Thanks and Regards, Srikanth