ffmpeg.a: No such file or directory while running ccViewer iOS Swift [closed] - ffmpeg

This post was returned to Super User. It is not currently accepting new answers or interactions. Learn more
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 28 days ago.
I am running a build which is available in in GitHub (https://github.com/lithium0003/ccViewer/tree/v1.4.3) to connect direct storages through RCLONE (Google Drive, OneDrive etc.)
I am following steps to compile which provided GitHub ccViewer readme
how to compile:
if you did not set up, run these commands.
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
brew install nasm
brew install yasm
prepare depencency
./chromecast.sh
cd work
./clone.sh
./build.sh
open with Xcode and compile
open workspace "ccViewer.xcworkspace"
select scheme "CryptCloudViewer" and build
but I am getting ffmpeg.a not found. Please check attached images of Xcode and Command prompt.
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: lib/*.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: lib/*.a (No such file or directory)
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't open file: lib/*.a (No such file or directory)
cp: ../output/ios/include/*: No such file or directory
cp: ../output/ios/ffmpeg.a: No such file or directory
cp: ../output/simulator/include/*: No such file or directory
cp: ../output/simulator/ffmpeg.a: No such file or directory
cp: ../output/macos/include/*: No such file or directory
cp: ../output/macos/ffmpeg.a: No such file or directory

Related

How to include unofficial parts library in LeoCAD on Ubuntu?

I want to include the unofficial parts library on LeoCAD. I'm on Ubuntu 20.04 and the path to "library.bin" is /snap/leocad/2/usr/share/leocad/. So, I must copy 'ldrawunf.zip' to /snap/leocad/2/usr/share/leocad/ (see the LeoCAD docs) and I run the following command on terminal:
sudo cp ~/Downloads/ldrawunf.zip /snap/leocad/2/usr/share/leocad/
but it returns me this error:
cp: cannot create regular file '/snap/leocad/2/usr/share/leocad/ldrawunf.zip': Read-only file system
Can someone help me?

Trouble installing and running elasticsearch

Yes, I have thoroughly searched for another answer to this question but have yet to find one.
I tried installing first by following the instructions on this page: http://www.elastic.co/guide/en/elasticsearch/reference/current/setup-repositories.html
I am not sure what to do after this step. It seems that is has installed correctly, but I don't know how to run it. (I am using PuTTY.) Can I import it into my module now and being using it, or is there something else I should do?
Here are some attempts I've made:
deloacha#azdev-deloacha:~$ bin/elasticsearch.bat
-bash: bin/elasticsearch.bat: No such file or directory
deloacha#azdev-deloacha:~$ cd elasticsearch-1.5.1/bin
-bash: cd: elasticsearch-1.5.1/bin: No such file or directory
deloacha#azdev-deloacha:~$ cd elasticsearch-1.5.1
-bash: cd: elasticsearch-1.5.1: No such file or directory
deloacha#azdev-deloacha:~$ cd ..
deloacha#azdev-deloacha:/home$ cd elasticsearch-1.5.1
-bash: cd: elasticsearch-1.5.1: No such file or directory
Installing the way as provided in the document can sometimes leads to confusion. You need to find the directory containing the elasticsearch files. most probably it'll be at "/etc/elast...."
Another easy way of installation follow the steps:
make a directory where you want to install
go to that directory and download elasticsearch there using
wget https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.1.tar.gz or curl
extract files: tar -zxvf elasticsearch-1.5.1.tar.gz
cd elasticsearch-1.5.1
You need to have java 7 on your system. you can start elasticsearch using "bin/elasticsearch -d" . "-d" is to run in detached mode.
Logs are by default in the location elasticsearch-1.5.1/logs. Check logs for any error during start up.
check status at: http://localhost:9200 or http://{system ip}:9200

zeroMQ: cannot open libzmq.so.4

I am trying to install the zeroMQ for my server(redhat 7). Here is what I did:
1) download the zeroMQ and unpack it.
2) navigate to the file where I put the zeroMQ and run the commands below:
./configure
make
make install
Now I can find two head files in /usr/local/include: zmq.h and zmq_utils.h and five files in /usr/local/lib: libzmq.a libzmq.la libzmq.so libzmq.so.4 libzmq.so.4.0.0.
Then I try to code like this:
#include <zmq.h>
...
void * context = zmq_init(1);
But I get this error message: undefined reference to `zmq_init'
I find that the include works well but it cant find 'zmq_init', so maybe it's the problem of lib files. But all of the lib files have been in /usr/local/lib, right?
What should I do?
Problem solved:
I got that error message because the lib files are in the directory: /usr/local/lib
What we need to do is to create a file named local-lib.conf under the directory /etc/ld.so.conf.d/ and write /usr/local/lib in it. The name of the file is not important but its extension must be .conf.
Then, we must navigate to /etc/ld.so.conf.d/ and type this command: sudo ldconfig
I tried the fix provided by #Yves above, but that didn't work out for me so here's another way for Debian/Git installations.
Alternative fix:
I have faced this issue on a Docker container which was occuring due to the libzmq/czmq which was installed by cloning the git repo.
The problem is that the shared libraries when installed using git are located in the /usr/local/lib folder instead of /usr/lib/ where usually, in my case a C/C++ program looks for shared library files.
I fixed it by copying all files from /usr/local/lib folder to/usr/lib/ using the command
$ sudo cp -R /usr/local/lib/* /usr/lib
This was for a RPi/ Ubuntu-16.04 docker, the command or location of the files may vary depending on your OS.

Xcode script build-step, copying frameworks fails

CONTENTS_PATH="${TARGET_BUILD_DIR}/${CONTENTS_FOLDER_PATH}"
mkdir -p $CONTENTS_PATH/Frameworks
cp -R /Library/Frameworks/Cg.Framework $CONTENTS_PATH/Frameworks
cp -R /$OGRE_PATH/lib/$CONFIGURATION/Ogre.Framework $CONTENTS_PATH/Frameworks
I use this in an XCode 3.2.6 script (sh) build-phase to copy the framework into the app bundle. It works great the first time, but on subsequent builds I get permission/unlink/can't overwrite errors - it doesn't seem to like copying the framework on top of itself. Other copy operations do work as expected.
Is cp the wrong tool to be using or is there something else I should be doing?
Errors:
cp: unlink:
build/Release/Mac1.7to1.8Test.app/Contents/Frameworks/Cg.Framework/Cg:
Permission denied
cp:
build/Release/Mac1.7to1.8Test.app/Contents/Frameworks/Cg.Framework/Versions/1.0/Headers/cg.h:
Permission denied
cp:
build/Release/Mac1.7to1.8Test.app/Contents/Frameworks/Cg.Framework/Versions/1.0/Headers/cgGL.h:
Permission denied
cp:
build/Release/Mac1.7to1.8Test.app/Contents/Frameworks/Cg.Framework/Versions/1.0/Resources/Info.plist:
Permission denied
cp: cannot overwrite directory
build/Release/Mac1.7to1.8Test.app/Contents/Frameworks/Ogre.Framework/Headers
with non-directory //usr/local/Ogre.Framework/Headers
Just ran into this same issue. What worked for me was to manually delete the build folder. Tried cleaning the build folder from Xcode (hold option while in the Product menu), but it wouldn't let me because it said I didn't have the right file permissions. Manually deleting the folder in Finder fixed the problem.

Issue in Cappuccino framework in Xcode

I have following error in XCode
mkdir: /CappuccinoSample/test6/build/Debug: File exists
cp: /Developer/Cappuccino/Tools/cxhelper/cxhelper: No such file or directory
/CappuccinoSample/test6/build/test6.build/Debug/test6.build/Script-643C0D440E7F85EC00F64609.sh: line 4: /CappuccinoSample/test6/build/Debug/test6: No such file or directory
I try to solve it but still I do all stuff which mention here http://cappuccino.org/discuss/2008/10/01/using-xcode-to-develop-in-cappuccino/
But still I get an error
Please anyone help me
Most likely your install has messed up, or has incorrect or older files. Here is what I would do to fix it:
Clean up the old files (trash the /Developer/Cappuccino folder).
Download/extract fresh tarball from:
https://github.com/rbartolome/xcode-cappuccino
Copy the following folders to location:
/Library/Application Support/Developer/Shared/Xcode/File Templates
Project Templates
Specifications
Target Templates
Restart xcode, and everything should be working smoothly.

Resources