I am trying to build SDK for linphone-iphone.
But, unable to do so. It is giving me an error:
"You need at least CMake version 3.3.20150815 but you are currently using
3.2.3. There is no Cmake release available for it yet, so you must either
compile it manually or revert to XCode6 temporary."
I am using Xcode 7.1.
Even I don't know how to compile it manually or revert to XCode6 temporary. So, if anybody knows, please help me.
Note: I am building it by command "./prepare.py -c && ./prepare.py && make" in linphone-iphone project directory from terminal in Mac OS as per instructions given on https://github.com/BelledonneCommunications/linphone-iphone.
You should install cmake version >= 3.2.3
install them like this:
brew install cmake
this will install cmake to /usr/local/bin You can check version like this:
/usr/local/bin/cmake --version
then you need to reorder your PATH variable:
export PATH=/usr/local/bin:$PATH
after that, you can continue:
./prepare.py -c
./prepare.py
make
Solved by updating linphone submodule:
git pull && git submodule update --init --recursive && ./prepare.py -c && make
Related
I want to install MongoDB C++ Driver, so first is mongocxx
I follow this installation:
http://mongocxx.org/mongocxx-v3/installation/
but I can not pass step 4
when I run this in mongo-cxx-driver/build
sudo cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
it shows
-- Auto-configuring bsoncxx to use MNMLSTC for polyfills since C++17 is inactive
CMake Error at src/mongocxx/CMakeLists.txt:37 (find_package):
By not providing "Findlibmongoc-1.0.cmake" in CMAKE_MODULE_PATH this
project has asked CMake to find a package configuration file provided by
"libmongoc-1.0", but CMake did not find one.
Could not find a package configuration file provided by "libmongoc-1.0"
(requested version 1.13.0) with any of the following names:
[![enter image description here][1]][1]
libmongoc-1.0Config.cmake
libmongoc-1.0-config.cmake
Add the installation prefix of "libmongoc-1.0" to CMAKE_PREFIX_PATH or set
"libmongoc-1.0_DIR" to a directory containing one of the above files. If
"libmongoc-1.0" provides a separate development package or SDK, be sure it
has been installed.
second question,
Step 2: Choose a C++17 polyfill how can I set MNMLSTC/core?
does anyone can help me,I already trap here for a long time ?
my env:
mongo-c-driver 1.15.1
libmongoc-1.0
mongocxx-3.4.x
Cmake is complaining about not finding a package configuration file (xxx.cmake), probably because you didn't build libmongoc/libbson.
I've tried to reproduce your issue and hit the same problem when I only installed them (apt-get install), so my suggestion is that you get the sources and build them as described at: http://mongoc.org/libmongoc/current/installing.html
Here's the list of commands (with the latest version of mongo-c-driver=1.15.1) which I just tried and worked fine:
wget https://github.com/mongodb/mongo-c-driver/releases/download/1.15.1/mongo-c-driver-1.15.1.tar.gz
tar xzf mongo-c-driver-1.15.1.tar.gz
cd mongo-c-driver-1.15.1
mkdir cmake-build
cd cmake-build
cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
make
sudo make install
At this point you can go back into mongocxx/build and run again the command you were stuck at:
cd ../../mongo-cxx-driver/build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
I don't know exactly why but all my react-native projects cannot build anymore today and I'm stuck with a the Bundling of index.ios.js at 0.0%.
I tried a couple of things but all my projects got the same issue.
NOTE: This workaround is for macOS.
Found out that the culprit was watchman 4.7.0.
My issues started after having upgraded to watchman 4.7.0 using brew.
Looks like there's an issue in this new version of watchman:
watchman issues 358.
At the end I solved my issue removing the content of the /usr/local/var/run/watchman/ folder.
I tried several things: the above answer, launchctl unload, restart, reinstall... You name it. Here's how I fixed it on MacOS:
TL;DR: Remove brew version and follow official documentation to compile from source. Use flags on configure: --enable-statedir=$HOME/.watchman --without-python --without-pcre
Reasoning: I don't need python bindings. I also suspect some permission issues and thought using my home would be safer than default path.
steps:
brew rm watchman
(just to be safe) launchctl unload -F ~/Library/LaunchAgents/com.github.facebook.watchman.plist
(just to be safe) restart mac
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.9.0 // Prefer lastest version here.
brew install autoconf automake libtool // Compilation tools
./autogen.sh
./configure --enable-statedir="$HOME/.watchman" --without-python --without-pcre
make // Wait... It'll compile the .o files
make install // If it fails try with sudo but it shouldn't.
After make install it should be in your path here: /usr/local/bin/watchman
Try to watchman version or something. Try to see if it fixed your problem.
Keep in mind most people have their stuff in /usr/local/var/run/watchman/. Our equivalent is now ~/.watchman/
Let me know if this helps you. :)
run the following command
echo fs.inotify.max_user_watches=582222 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
This also may happen in case your node dependencies are not installed, e.g. node-modules/ in .gitignore and repo is freshly-pulled.
In this case, your should do npm install of yarn (in case you are using yarn).
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 download the linphone SDK, installed MacPorts and then when writing following command in terminal, i got 'Xcode not installed properly....' and then I follow their rules to install left XCode's software, that are also done on my terminal screen.
sudo port install automake autoconf libtool pkgconfig intltool wget cunit \
antlr3 speex readline sqlite3 openldap libupnp \
ffmpeg-devel -gpl2
But here problem persists...
Please help me to get out from this problem.
Thanks in advance
Actually there's few Steps of compiling the Linphone SDK.
Install dependencies
Install Antlr 3
Install gas-preprosessor.pl
Symlink libtoolize to glibtoolize
Link host strings to simulator SDK
Link /opt/local/bin to /usr/local/bin
Then Build
git clone git://git.linphone.org/linphone-iphone.git --recursive
Set the SDK version
./prepare.py && make(The link below use "make" instead which is deprecated)
Detailed steps as:Building linphone SDK using Homebrew
I currently have to do the same thing and you don't have to get through this steps.....been there done that...
Instead you can download instead this the SDK by searching this on google liblinphone-iphone-sdk-2.2.5.zip
And, of course check the latest news from Linphone, to be updated.
Best Approach would be to clone and start this:
https://github.com/BelledonneCommunications/linphone-iphone
And very important use a Xcode 6 version. Xcode 7 gives you some errors as they introduced some new features and depracated old stuff.
If you don't know how to use git, please pause what you are doing and dedicate some time to do it because will have to do it multiple time during your career.
Hope this helps! Good luck
We are getting this error while installing ImageMagick PECL:
checking ImageMagick MagickWand API configuration program... found in
/usr/local/bin/MagickWand-config checking if ImageMagick version is at
least 6.2.4... found version 6.8.6 Q16 checking for MagickWand.h
header file... configure: error: Cannot locate header file
MagickWand.h ERROR: `/root/tmp/pear/imagick/configure --with-imagick'
failed extension imagick.so installed in /usr/local/lib/php.ini
/usr/local/bin/php does not have a php.ini Tidying
/usr/local/cpanel/3rdparty/php/53/etc/php.ini... No changes
Any idea how to fix this ?
This thread is old, but I solved this issue today on a Centos 7 by installing ImageMagick-devel package:
yum install ImageMagick-devel
Hope this helps.
Steps:
apt-get install libmagickwand-dev
/opt/lampp/bin/pecl install imagick
gedit /opt/lampp/etc/php.ini
add "extension=imagick.so" to php.ini
Probably its looking for the file MagickWand.h and unable to see that file in the defined location. Try these steps
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar zxf imagick-3.1.0RC2.tgz
Edit the file imagick-3.1.0RC2/config.m4 line number 55.
Make changes like this, from
if test -r $WAND_DIR/include/ImageMagick/wand/MagickWand.h;
to
if test -r $WAND_DIR/include/ImageMagick-6/wand/MagickWand.h;
Note this difference made in the imagick version number. After that try the conventional installation procedures
cd imagick-3.1.0RC2
phpize
./configure
make
make install
Perhaps this http://thomas.bindzus.me/2013/08/11/building-pecl-imagick-for-php-5-5-1-on-centos-6-4/ can be of some help to others.
The solution described by Leo Prince almost worked for me, just had to set PKG_CONFIG_PATH, and perhaps that's just my server setup which isn't as perfect as it should be.
Here is what I did step-by-step (I'm running CentOS 6.4, Apache 2.4.6, and PHP 5.5.1):
wget http://pecl.php.net/get/imagick-3.1.0RC2.tgz
tar zxf imagick-3.1.0RC2.tgz
cd imagick-3.1.0RC
phpize
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure –with-imagick
make
make install
echo extension=imagick.so > /etc/php.d/imagick.ini
service httpd restart
php -m | grep imagick
First run following commands
1. "WHM Home » Software » Rebuild RPM Database"
2. yum install ImageMagick ImageMagick-devel
3. yum install pcre-devel
Then go to
Go to WHM -> Software -> Module Installers -> PHP Pecl (manage). On the
box below “Install a PHP Pecl” enter “imagick” and click “Install Now”
button – that’s all. Restart Apache.
Above steps worked for me.