Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I'm in the process of porting all of our code to Apple M1 (ARM), and some of our products use FFmpeg.
Are there any library packages by FFmpeg that are built for the Apple Silicon M1, and where can I find them?
You can compile ffmpeg for Apple Silicon by yourself.
For this you will need Xcode, which comes with all the necessary tools.
You can download Xcode from the App Store, from Apple's website, or install the Xcode command line tools running xcode-select --install on the Terminal app.
After getting Xcode, you need to open it once to accept the terms and set up everything. You will be asked for your computer password.
After setting up Xcode, execute the following commands in that order, on the Terminal app, as a normal user (root is not necessary and not recommended). Lines beginning with # are comments and you should not execute them on the terminal.
# Create and go to a folder where you'll save the ffmpeg source code
mkdir -p /opt/local/src
cd /opt/local/src
# get the ffmpeg source code from the official source
git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
# set up build and begin to compile
./configure --prefix=/opt/local
make
make install
# check that your compiled version of ffmpeg has arm64 (Apple Silicon) architecture
/opt/local/bin/ffmpeg -version
Looks like there's a working script and a built version now available at https://www.osxexperts.net
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I want to install hyperion 2.2 on kali linux. This version of hyperion is different than previous: there is no .cpp files (now hyperion is C). So command
'i686-w64-mingw32-c++ Hyperion-1.2/Src/Crypter/*.cpp -o hyperion.exe'
doesn't work.
I've also tried:
mingw32-make
bash: mingw32-make: command not found
Please, help.
The following command worked for me to compile with no warnings or errors. Although I have not fully tested the resulting executable yet:
i686-w64-mingw32-gcc -ISrc/Payloads/Aes/c Src/Crypter/*.c Src/Payloads/Aes/c/*.c -o hyperion.exe
Running the file command on the resulting hyperion.exe gives:
hyperion.exe: PE32 executable (console) Intel 80386, for MS Windows
i686-w64-mingw32-gcc -I Hyperion-2.3.1/Src/Payloads/Aes/c Hyperion-2.3.1/Src/Crypter/.c Hyperion-2.3.1/Src/Payloads/Aes/c/.c -o hyperion.exe
this command works for kali 2020.3 mingw-w64 V.8 and Hyperion-2.3.1
make sure to separate -I from Hyperion-2.3.1 and make sure to include full file path i.e. Hyperion-2.3.1/Src/Payloads/Aes/c/
I am the author of Hyperion. Hyperion is a Windows application and I am not very familiar with cross compiling issues on Kali Linux. Nevertheless, I can give you two hints to point you into the right direction:
If you want to use the makefile: mingw32-make: command not found means, mingw32-make is not installed. You have to use apt to install it. Something like sudo apt-get install gcc-mingw-w64 or apt install mingw-w64 should solve the issue. You can also use apt search mingw to find the corresponding package.
If you want to build it by calling the compiler yourself: The AES dll was replaced by TinyAES. It can be found here: Src/Payloads/Aes/c/aes.c. So you have to add it to your source path as well.
Kind regards,
Christian
hyperion 2.2 and 2.3 has a makefile, I change compiler gcc to i686-w64-ming32-gcc, and modify CFLAGS, it can compile.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am developing a tool using the clang library on Linux and I would like to port this tool to Windows.
On Linux, I can install Clang from the LLVM repositories using apt-get clang-6.0-dev and simply link my tool with -lclang. I do not need to compile LLVM and Clang myself.
Is there a way to do something similar on Windows, or do I need to compile the Clang library myself?
All of the Clang-related posts I could find are about using clang as a tool, not as a library.
I have installed the pre-build executables for Clang and LLVM from the LLVM website, and these work nicely in combination with mingw. However, the download for Windows does not seem to include the Clang library as a separate file (DLL), and linking with -lclang results in a linker error.
If there is no pre-built library for Windows, what is the best way to proceed, preferably using mingw and not MSVC?
There are pre-built LLVM/clang binaries on Zig's github page:
https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows
You can find libclang.dll in the bin folder.
The currently available versions are:
llvm+clang-6.0.0-win64-msvc-release.tar.xz
llvm+clang-7.0.0-win64-msvc-release.tar.xz
llvm+clang-8.0.0-win64-msvc-release.tar.xz
llvm+clang-9.0.0-win64-msvc-release.tar.xz
llvm+clang+lld-10.0.0-x86_64-windows-msvc-release-mt.tar.xz
There are also detailed build instructions, here.
For anyone coming to this question that's just looking to install libclang on their system, the choco llvm package appears to install libclang correctly. I can't speak to whether this is adequate for actually linking against this library for C/C++, but it worked for my case.
Just run this in an elevated command prompt or powershell:
choco install llvm
You may need to run refreshenv or open a new console for tools to pick this up.
In my case, and to help with future googlers (since I couldn't find a simple answer elsewhere) my issue was specifically while trying to compile a Rust project that made use of the onig_sys crate:
Compiling onig_sys v69.2.0
error: failed to run custom build command for `onig_sys v69.2.0`
Caused by:
process didn't exit successfully: `[redacted]\target\debug\build\onig_sys-b53394f57ee5e2c5\build-script-build` (exit code: 101)
--- stdout
cargo:warning=couldn't execute `llvm-config --prefix` (error: The system cannot find the file specified. (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable
--- stderr
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'clang.dll\', \'libclang.dll\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', src\libcore\result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
After installing llvm, the cargo build finished successfully
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I was trying to follow this video on youtube "How to create nuget packages" - I went to nuget.org and found all the downloads are .exe - How do I do this for mac?? Any idea??
The Mono framework include a shell script that wraps nuget.exe and it is already included in your path:
>which nuget
/Library/Frameworks/Mono.framework/Commands/nuget
>cat `which nuget`
#!/bin/sh
exec /Library/Frameworks/Mono.framework/Versions/5.4.1/bin/mono $MONO_OPTIONS /Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/nuget/nuget.exe "$#"
So at a shell prompt, you can just type nuget:
>nuget
NuGet Version: 4.3.0.4406
usage: NuGet <command> [args] [options]
Type 'NuGet help <command>' for help on a specific command.
~~~
Since nuget itself is written in C#, you run nuget using Mono on Mono platforms. e.g:
$ mono nuget.exe
When running nuget, you may encounter errors. You may need to copy Microsoft.Build.dll from a .NET installation to the same path as nuget. For example, copy both nuget.exe and Microsoft.Build.dll to /usr/local/bin
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
So that I can compile and test my code using gradle, I am trying to install gradle.
I want to unpack the Gradle distribution which comes packaged as a ZIP. However, there is a warning that says Mac OS X users should get a GNU compatible unzipper.
See http://www.gradle.org/docs/current/userguide/installation.html
"..need a GNU compatible tool to unzip Gradle...some zip front ends for Mac OS X don't restore the file permissions properly."
Where can I get a GNU compatible tool to unzip Gradle?
I recall using gzip (gunzip to unzip) on other systems which is a gnu thing. My MacOSX has gzip / gunzip on it.
So, I tried the following:
gunzip gradle-1.4-bin.zip
It gave me this error:
gradle-1.4-bin.zip: unknown suffix -- ignored
I have followed several google posts and tried several different things. Listing those attempts would probably not serve at this point.
What does a person do to properly un-zip gradle on the Mac OS X so the file permissions are correct?
gunzip is used for unzipping .gz files, typically created using the gzip command. .zip files should be unzipped using the unzip command, using an invocation like unzip gradle-1.4-bin.zip.
Their note makes no sense. There is no GNU unzip, nor anything about any unzipper that could be called "GNU compatible". The zip format has nothing to do with GNU, and there are no GNU utilities that I'm aware of that process zip files. Perhaps they are thinking that gzip, which is GNU, processes .zip files, which it doesn't (as you discovered). gzip only works with .gz files, which are entirely different. That page needs to be corrected.
As for the front ends, I don't know which ones they're referring to. The command line unzip that comes with Mac OS X has always properly restored permissions and other attributes.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have downloaded Websphere Application Server Network Deployment trial version as a http download in 3 parts. After unzipping those files I am clueless about its installation.
What are steps to install it on Windows 7 64bit machine?
If there is any link which explains these steps, please let me know. I am tired of googling it but unable to find any clean explanation of installation steps.
Starting with WAS 8.0, WAS is installed with another program called IBM Installation Manager. The three files you downloaded are collectively a WAS ND "repository". The high level steps are the following.
Download WAS ND (you've done this).
Unzip the three files, creating disk1, disk2, etc. This is your repository.
Download IM.
Install IM.
Run IM.
Add your WAS ND repository to IM's set of repositories.
Install ND.
You can re-use the IM to apply fix packs, install other WebSphere related products, and remove these products.
The product documentation (infocenter) will tell you how to install it. - http://pic.dhe.ibm.com/infocenter/wasinfo/v8r5/topic/com.ibm.websphere.nd.multiplatform.doc/ae/welc6productov.html
Though its an old thread but sometimes the IM gives lot of troubles for installing fix packs. So here is an alternative solution using command line that's pretty simple and to the point
Download the fix packs [eg: part1, part2].
Extract the packs in a single folder fix_packXX.
Go to <%WEBSHERE_HOME%>/AppServer/bin and check the version details of the WAS by running following command in CMD:
versionInfo.bat
Mark the following details[Especially the Package of WAS]:
Build Date 5/14/13
Package com.ibm.websphere.DEVELOPERS.v85_8.5.5000.20130514_1044
Go to
Windows: C:\Program Files\IBM\Installation Manager\eclipse\tools
Linux: opt/IBM/InstallationManager/eclipse/tools/
Run below command in CMD/BASH [Change the directory as per your path]:
Windows: imcl listAvailablePackages -repositories "C:/fix_packXX/repository.config"
Linux: ./imcl listAvailablePackages -repositories /fix_packXX/repository.config
Choose the suitable Package [eg: DEVELOPERS in this case] to install by checking the type we noted in steps above. Run the command below with the new Package and let the package installation complete
imcl install com.ibm.websphere.DEVELOPERS.v85_8.5.5012.20170627_1018 -repositories "C:/fix_packXX/repository.config" -installationDirectory "<%WEBSHERE_HOME%>/AppServer" -acceptLicense -sP
Done.
Hope that helps someone who is struggling with IBM Installation Manager.