I am following this to set up pjsip for iPhone.
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
I follow up to where I run ./configure-iphone and everything is good, these run fine, I can get into the directory and run these.
$ cd /path/to/your/pjsip/dir
$ ARCH='-arch armv7s' ./configure-iphone
but then I need to run "make dep && make clean && make" and I get this:
make: * /Users/Me: Is a directory. Stop.
I have Xcode command line tools installed, what is my problem here?
Related
I am very new to react native. I have created a Hello World project and unable to run it on iOS. Every time when i run the project for iOS it throws the following error(s)
** BUILD FAILED **
The following build commands failed:
CompileC /Users/usman/FunZoneAppsProjects/{ProjectName}/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/{ProjectName}.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{ProjectName}.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/{ProjectName}.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
at checkExecSyncError (child_process.js:621:11)
at Object.execFileSync (child_process.js:639:13)
at Promise.then (/Users/usman/FunZoneAppsProjects/{ProjectName}/node_modules/react-native/local-cli/runIOS/runIOS.js:208:5)
I have read many people resolved this issue with different fixes but none of them worked for me. What can be the issue? TIA
I think this is connected with the new xcode version. Try opening your project in xcode. Go to File->Project Settings and choose Legacy build. Then try to rebuild your project.
What worked for me on mac OS Big Sur and Xcode 12 was,
Delete package-lock.json file.
Run npm install and cd ios && pod install && cd ..
Then opened the .xcworkspace file from Xcode and it worked.
First of all you should be secure that brew, node and watchman are installed. After that, try to follow these steps.
Delete your actual project, close simulator, xcode and run on the path folder of your project watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean. Finally, close the command line
Create a folder in desktop named RNProjects. Open the command line and run cd Desktop/RNProjects.
Run in the command line react-native init myProjectName. You can name the project as you want. You should change "myProjectName" for the desired project name.
After installation is completed (it takes a couple of minutes), be sure that in the command line you are in the path RNProjects and then run cd myProjectName. If you gave the project a different name, just replace "myProjectName" for the real project name.
Finally, just run react-native run-ios. Let me know if you want to test it in a real iDevice.
EDIT 1
If brew, node or watchman are not installed yet, follow this
For HOMEBREW follow this link. you should paste that at a Terminal prompt. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After that run brew install node
Then run brew install watchman
Then run npm install -g react-native-cli
Install Xcode command line tools follow this link
I had tried to compile pjsip library.but getting error. when run
$ cd /pjproject-2.5.5
$ ./configure-iphone
//error: -bash: -bash: ./configure-iphone: Permission denied
$ chmod +x configure-iphone //then i tried this
$ ./configure-iphone
//error:-bash: ./configure-iphone: /bin/bash^M: bad interpreter: No such file or directory.
Please give me proper guide line by steps to
run pjsip ios project.
To compile pjsip for iPhone
1. Download source code from one of the following link :
http://www.pjsip.org/download.htm
http://trac.pjsip.org/repos/wiki/Getting-Started/Download-Source
2. Create a new file config_site.h in the project folder /pjlib/include/pj/ with the following code:
#define PJ_CONFIG_IPHONE 1
#include <pjconfig_site_sample.h>
3. To Build PJSIP
Open terminal:
$ cd /path/to/your/pjsip/dir
$ ./configure-iphone
You may get the following problems:
a) Permission denied
Solution: preface the login with sudo
or login as super user using su command and the type following command
$ su
Password:
# chmod 777 configure-iphone
# exit
b) -bash: ./configure-iphone: /bin/bash^M: bad interpreter: No such file or directory
(This error may come because in the configure-iphone file every line may have been appended by a character $ or may be a carriage return symbol)
To check this do as:
$ vim configure-iphone
(It wil open the vim editor)
To see the last character press escape(ESC:)set list
To quit vim press Esc:q
Then Eliminate
$ tr -d '\r' <configure-iphone >FILE.new
(It will create new file with name FILE. Now after that delete the configure-iphone file and rename FILE to configure-iphone using the following commands:)
$ rm configure-iphone
$ mv FILE.new configure-iphone
(Again confirm that new created file has 777 permission if no then assign from su- super user)
$ ./configure-iphone
Again there may be error in ./configure-iphone:
Permission denied
Solution : Assign 777 permission to the whole folder.
- $ cd .. (Go to the parent folder in which the PJSIP folder lies)
- $ su (login as super user)
- # chmod 777 * (It will assign 777 permission to the whole folder and its content)
Alternatively:
- $ chmod u+x configure-iphone
Again run $ ./configure-iphone command. This time every thing should work fine.
4. To make
make dep && make clean && make
Source: http://gaurav-iphone.blogspot.com.au/2011/09/compiling-pjsip.html
To compile pjsip for iOS you need to execute following commands:
cd path_to_pjsip
./configure-iphone ( or sudo ./configure-iphone )
make dep && make clean && make ( or sudo make dep && make clean && make)
That's it, you now have pjsip compiled for armv7 architecture. You may also look in this tutorial for more details: http://www.xianwenchen.com/blog/2014/06/09/how-to-make-an-ios-voip-app-with-pjsip-part-1/
To integrate PJSIP with Xcode,follow these steps.
step 1: Download PJSIP project file(.tar.bz2 or .zip file) from this link http://pjsip.org/download.htm
step 2: Extract the files into your Required path of your MAC.
step 3: Open the project folder and you will see,there is pjlib folder is there. Go to the Path pjlib/include/pj/ and create config_site.h file and PASTE the following contents into the file.
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
step 4: Now save and close the file. And Open the Terminal Now.
step 5: Open your project path in the terminal by cd /your_pjsip_path/
For Example: cd /Desktop/pjsip_2.5.5/
step 6: Now build and configure project by following commands.
step 7: ./configure-iphone
step 8: make dep && make clean && make
step 9: Now you can oepn the project using xcode 7 by Go to the path /pjsip_folder/pjsip-apps/src/pjsua/ios/pjsua.xcodeproj and open with xcode.
(or)
To integrate PJSIP Library with Xcode 7, you must follow official PJSIP instructions from their official website.
Source:https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
I have download linphone open source VoIP project from git.
Follow steps that given in link but i have stuck on one steps
Link host strings to simulator SDK
$ sudo ln -s /usr/bin/strings /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings
->I have checked below path
"/usr/bin/strings" and found that 'strings' not found and also another path not work '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings'
->When command run at that time it fail with below reason
ln: failed to create symbolic link '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/strings': No such file or directory
-> On Build I have received below output.
*******************************************************************************
This makefile is deprecated. Please see README.md for compilation instructions. Here are some equivalents:
Equivalent of make is: cd ../../ && ./prepare.py && make
Equivalent of make enable_gpl_third_parties=no is: cd ../../ && ./prepare.py -DENABLE_GPL_THIRD_PARTIES=NO && make
Equivalent of make enable_debug=yes is: cd ../../ && ./prepare.py -d && make
Equivalent of make enable_i386=yes is: cd ../../ && ./prepare.py all && make
Equivalent of make enable_zrpt=yes enable_opus=yes enable_ffmpeg is: cd ../../ && ./prepare.py -DENABLE_ZRTP=YES -DENABLE_OPUS=YES -DENABLE_FFMPEG=YES && make
*******************************************************************************
Below Link I have referred
1) https://libraries.io/github/mfrager/linphone-iphone
2)
https://github.com/BelledonneCommunications/linphone/blob/master/README.macos.md
3) https://ohthehugemanatee.org/blog/2015/10/01/how-i-got-el-capitain-working-with-my-developer-tools/
->I have checked below path "/usr/bin/strings" and found that 'strings' not found and also another path not work
Firstly you have to generate strings file at this path anyhow.
After that please check that whether your Xcode in Applications have name as Xcode.app or Xcode7.3.app
This makefile is deprecated. Please see README.md for compilation instructions.
For this error, it may occur because you are trying
$ make all
this command
Instead try this:
./prepare.py && make
For more info, regarding home-brews, etc, follow correctly(as you mentioned you'r following it):
building linphone-sdk
Also give all the permissions(rwxrwxrwx) to linphone-sdk directory and all other related files
I've followed this for iOS project.
Hope this will help you!
For HomeBrew make sure run:
brew update then
brew doctor
to double check. Also refer to http://www.successmonkey.co.nz/blog/building-linphone-for-ios
After the dependencies are installed run ./prepare.py and make to compile everything (had a easy fix in submodules/linphone/mediastreamer2/src/basemsfactory.cs) then use Xcode the build the final application.
I'm trying to install openH264 for ios. Here are the steps I run from the openH264's current directory using terminal:
$ make OS=ios ARCH=armv7
The default location of openh264 installation was set /usr/local in the makefile. So, I just ran the following command
$make install
But I got this error:
nasm -DUNIX64 -DPREFIX -f macho64 -Icodec/common/x86/ -o codec/encoder/core/x86/coeff.o codec/encoder/core/x86/coeff.asm
nasm: fatal: unrecognised output format `macho64' - use -hf for a list
type `nasm -h' for help
make: *** [codec/encoder/core/x86/coeff.o] Error 1
I am following this instructions also to build the codec. Besides after successful installation I have to include it into pjsip for video support.
I don't know what is the problem with the command? Thanks in advance.
With help of this I solved it.
Just run :
$sudo make OS=ios ARCH=arm64 install
for arm64 architecture. Change the ARCH value to armv7, armv7s for devices and i386 and x86_64 for the simulator. By default it installed in /usr/local/lib directory. I used sudo to get admin privilege as at the end of complication it throwing error that permission denied to mkdir -p /usr/local/lib .
I am trying to install Rglpk using the install.packages command. I am getting this error :
/bin/sh: line 0: cd: GLPK: No such file or directory
make: *** [GLPK.ts] Error 1
The glpk-dev package is already installed :
rpm -qa| grep glpk-dev
glpk-devel-4.40-1.1.el6.x86_64
Thanks for your help,
Hi what I did was the following as a sudoer
cd usr local
wget http://ftp.gnu.org/gnu/glpk/glpk-4.54.tar.gz
tar xfzv glpk-4.54.tar.gz
mkdir GLPK
./configure
make
make install
then download the Rglpk_0.6-0.tar.gz and install.package the usual way. It is basically the same as what was done here, but as a sudoer:
I got this fixed by running 'sudo make' and 'sudo make install' instead of 'make' and 'make install'. Not sure if this is good practice, someone else be the judge.
cd $HOME
wget http://ftp.gnu.org/gnu/glpk/glpk-4.65.tar.gz
tar xfzv glpk-4.65.tar.gz
mkdir GLPK
./configure
sudo make
sudo make install
Then run install.packages('Rglpk') from within R.
My experience was the following as a sudoer:
install GLPK package: see https://en.wikibooks.org/wiki/GLPK/Linux_OS
install Rglpk:
# install devtools package beforehand. Or, you can download the Rglpk package manually, and then install in R.
# note that the latest version of Rglpk does not work on my Redhat system. Instead, the version 0.6-0 works perfectly.
devtools::install_url("https://cran.r-project.org/src/contrib/Archive/Rglpk/Rglpk_0.6-0.tar.gz")
Testing: in R, try require(Rgplk)