Can't build CSipSimple - java

I'm trying to build CSipSimple
I get such error:
# External sources fetched out from external repos/zip
/Users/Nikita.Leshchev/Library/Android/sdk/ndk-bundle/build/core/build-local.mk:151: *** Android NDK: Aborting . Stop.
/Users/Nikita.Leshchev/Library/Android/sdk/ndk-bundle/build/core/build-local.mk:151: *** Android NDK: Aborting . Stop.
Isources/modules/audio_processing/aecm/include -Isources/modules/audio_processing/aecm/../utility -Isources/modules/audio_processing/aecm/../../.. -Isources/modules/audio_processing/aecm/../../../common_audio/signal_processing/include -Isources/modules/audio_processing/aecm/../../../system_wrappers/interface -mfpu=neon -mfloat-abi=softfp -flax-vector-conversions -S -o sources/modules/audio_processing/aecm/aecm_core_neon_offsets.S sources/modules/audio_processing/aecm/aecm_core_neon_offsets.c
make[1]: Isources/modules/audio_processing/aecm/include: No such file or directory
make[1]: [sources/modules/audio_processing/aecm/aecm_core_neon_offsets.S] Error 1 (ignored)
Traceback (most recent call last):
File "sources/build/generate_asm_header.py", line 46, in <module>
main(sys.argv[1:])
File "sources/build/generate_asm_header.py", line 30, in main
infile = open(argv[0])
IOError: [Errno 2] No such file or directory: 'sources/modules/audio_processing/aecm/aecm_core_neon_offsets.S'
make[1]: *** [sources/modules/audio_processing/aecm/aecm_core_neon_offsets.h] Error 1
make: *** [webrtc-preprocess] Error 2
Here suggests to check variables and installed soft. But my variables is ok
echo $PATH output:
/opt/local/bin:/opt/local/sbin:/usr/local/php5/bin:/Users/Nikita.Leshchev/Downloads/pcre-8.39/bin:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/Nikita.Leshchev/Library/Android/sdk/tools:/Users/Nikita.Leshchev/Library/Android/sdk/platform-tools:/Users/Nikita.Leshchev/Library/Android/sdk/ndk-bundle/
Variables ANDROID_NDK and ANDROID_SDK defined. All required soft installed
which ndk-build output:
/Users/Nikita.Leshchev/Library/Android/sdk/ndk-bundle//ndk-build
I did everything like in documentation, but i have this error. Can anybody help?
NDK Version 13.11.3345770
SDK Version 25.2.2
OSX 10.11.6
UPD I coudn't build it, but i found this repository I could download and build it without any problems

I solved my problem, not on 100% for a while, but this error i have resolved.
This and some other files i found in this repository

Related

pip install import-java, PermissionError Windows 10

I tried to install the package "import-java" for python, first there was an error because of the missing path for JAVA-HOME, but now i added this path and i have another error, a permission error and don't know how to fix this.
That is the Command Output:
Collecting import-java
Using cached import-java-0.6.tar.gz (4.3 kB)
Collecting pyjnius
Using cached pyjnius-1.2.1.tar.gz (40 kB)
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files (x86)\Python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\JOSHUA~1\\AppData\\Local\\Temp\\pycharm-packaging\\pyjnius\\setup.py'"'"'; __file__='"'"'C:\\Users\\JOSHUA~1\\AppData\\Local\\Temp\\pycharm-packaging\\pyjnius\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\JOSHUA~1\AppData\Local\Temp\pycharm-packaging\pyjnius\pip-egg-info'
cwd: C:\Users\JOSHUA~1\AppData\Local\Temp\pycharm-packaging\pyjnius\
Complete output (16 lines):
C:\Program Files\Java\jdk-13.0.2\bin
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\JOSHUA~1\AppData\Local\Temp\pycharm-packaging\pyjnius\setup.py", line 92, in <module>
compile_native_invocation_handler(*get_possible_homes(PLATFORM))
File "C:\Users\JOSHUA~1\AppData\Local\Temp\pycharm-packaging\pyjnius\setup.py", line 82, in compile_native_invocation_handler
subprocess.check_call([
File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 359, in check_call
retcode = call(*popenargs, **kwargs)
File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files (x86)\Python38-32\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Zugriff verweigert
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I hope someone knows how to fix this, thanks.

I want to use a java project in python. On installing pip install pyjnius, it gives an error

pip install pyjnius
Collecting pyjnius
Using cached https://files.pythonhosted.org/packages/b6/57/c90acf31322e6417f06c90410dbfcb149633a6006b7efbf99dfebe177c1f/pyjnius-1.2.0.tar.gz
ERROR: Command errored out with exit status 1:
command: 'c:\users\dev1\appdata\local\programs\python\python37-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Dev1\\AppData\\Local\\Temp\\pip-install-uxkserni\\pyjnius\\setup.py'"'"'; __file__='"'"'C:\\Users\\Dev1\\AppData\\Local\\Temp\\pip-install-uxkserni\\pyjnius\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Dev1\AppData\Local\Temp\pip-install-uxkserni\pyjnius\pip-egg-info'
cwd: C:\Users\Dev1\AppData\Local\Temp\pip-install-uxkserni\pyjnius\
Complete output (18 lines):
warning: [options] bootstrap class path not set in conjunction with -source 6
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
WARNING: Not able to assign machine() = AMD64 to a cpu value!
Using cpu = 'i386' instead!
JDK_HOME: C:\Program Files\Java\jdk-13.0.1
JRE_HOME: None
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Dev1\AppData\Local\Temp\pip-install-uxkserni\pyjnius\setup.py", line 246, in <module>
compile_native_invocation_handler(JDK_HOME, JRE_HOME)
File "C:\Users\Dev1\AppData\Local\Temp\pip-install-uxkserni\pyjnius\setup.py", line 96, in compile_native_invocation_handler
join('jnius', 'src', 'org', 'jnius', 'NativeInvocationHandler.java')
File "c:\users\dev1\appdata\local\programs\python\python37-32\lib\subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Program Files\\Java\\jdk-13.0.1\\bin\\javac.exe', '-target', '1.6', '-source', '1.6', 'jnius\\src\\org\\jnius\\NativeInvocationHandler.java']' returned non-zero exit status 2.
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Build OpenCV from source on Ubuntu 16.04, but failed to generate Java bindings

I am trying to build OpenCV from source on Ubuntu to within a Java application, but when during processing make commanded, when it reaches to generate Java bindings it fails with the following error:
[ 90%] Generate files for Java bindings Traceback (most recent call
last): File
"/home/adil/Desktop/opencv/opencv/modules/java/generator/../generator/gen_java.py",
line 1093, in
copy_java_files(java_files_dir, target_path) File "/home/adil/Desktop/opencv/opencv/modules/java/generator/../generator/gen_java.py",
line 1042, in copy_java_files
package_path = 'org/opencv/' + module NameError: global name 'module' is not defined
modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/build.make:430:
recipe for target 'CMakeFiles/dephelper/gen_opencv_java_source' failed
make[2]: * [CMakeFiles/dephelper/gen_opencv_java_source] Error 1
CMakeFiles/Makefile2:2799: recipe for target
'modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all'
failed make[1]: *
[modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all]
Error 2 Makefile:160: recipe for target 'all' failed make: *** [all]
Error 2
I have installed every possible lib suggested on the Google and OpenCV website, nothing was solved the problem.
So what causes this error, and how solve?
Note: I have Java-9 installed on my machine.

Error trying to update cocos OpenSSL

I received a message about OpenSSL security. I did the following http://blog.cocos2d-x.org/2016/04/openssl-update/ and now there is an error i don't understand in my project.
15:56:54 **** Incremental Build of configuration Release for project app ****
python /Applications/cocos2d-x-3.10/projects/app/proj.android_v2/build_native.py -b release all
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 14 in ./AndroidManifest.xml
"mk start!!!!!!!!!"
LOCAL_C_INCLUDES is jni/../../Classes
CPP_FILES is jni/../../Classes/AppDelegate.cpp jni/../../Classes/BaseLayer.cpp jni/../../Classes/Character.cpp jni/../../Classes/DamageInfo.cpp jni/../../Classes/DotchiLayer.cpp jni/../../Classes/DotchiScrollView.cpp jni/../../Classes/DotchiSprite.cpp jni/../../Classes/DotchiStatus.cpp jni/../../Classes/Facility.cpp jni/../../Classes/FacilityLayer.cpp jni/../../Classes/GameLayer.cpp jni/../../Classes/GameStatus.cpp jni/../../Classes/HowToLayer.cpp jni/../../Classes/NumberSprite.cpp jni/../../Classes/OpeningLayer.cpp jni/../../Classes/SaveUtil.cpp jni/../../Classes/StatusLayer.cpp jni/../../Classes/TapInfo.cpp jni/../../Classes/TroubleLayer.cpp
Android NDK: jni/../../cocos2d/external/freetype2/prebuilt/android/Android.mk: Cannot find module with tag 'chipmunk' in import path
jni/../../cocos2d/cocos/./Android.mk:236: *** Android NDK: Aborting. . Stop.
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Traceback (most recent call last):
Android NDK: The following directories were searched:
Android NDK:
File "/Applications/cocos2d-x-3.10/projects/app/proj.android_v2/build_native.py", line 159, in
make: Entering directory /Applications/cocos2d-x-3.10/projects/app/proj.android_v2'
make: Leaving directory/Applications/cocos2d-x-3.10/projects/app/proj.android_v2'
The Selected NDK toolchain version was 4.8 !
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File "/Applications/cocos2d-x-3.10/projects/app/proj.android_v2/build_native.py", line 146, in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
File "/Applications/cocos2d-x-3.10/projects/app/proj.android_v2/build_native.py", line 82, in do_build
raise Exception("Build dynamic library for project [ " + app_android_root + " ] fails!")
Exception: Build dynamic library for project [ /Applications/cocos2d-x-3.10/projects/app/proj.android_v2 ] fails!
15:57:04 Build Finished (took 9s.912ms)
in the android.mk file in the ui folder.
LOCAL_ARM_MODE := arm
include $(BUILD_STATIC_LIBRARY)
$(call import-module,freetype2/prebuilt/android)
$(call import-module,chipmunk)
$(call import-module,platform/android)
I have cocos2dx 3.10 and ndk r9d when using r11c I get couldnt find gcc toolchain error
so the problem happens only when you use the NDK 11? I've had a similar problem, in which I couldn't build my project with the NDK 11 and I solved it by downgrading my NDK to the 10 version. I think Cocos2d-X may not be compatible with the NDK 11, since the RELEASE.txt file is missing from it.
Check this thread: Cocos2dx Android build error: "arm-linux-androideabi-g++: No such file or directory"
Add RELEASE.txt to your ndk path and add following
r11c (64 bit)
I have resolved this issue in Cocos2dxv3.0pre-alpha version.
Follow the below Link:-
http://www.bengigi.com/cocos2d-x-fix-for-openssl-problem/
You just need to download this curl library from here and replace the stuffs there in your existing cocos2dx folder.
For me it works with build the project option but it may create issue with clean build,may be works also for clean-build.Firstly suggest to build it only with updating curl lib.

Python3 Opencv3 Ubuntu 15 - make error

I ran into a quiet weird situation ...
Currently I try to build and install OpenCv3 for Python3 on Ubuntu 15
While compiling and installing opencv3 for python2.7 worked pretty well - doing the same for python3 (same downloaded opencv package) stops with make error 2 (actually with different errors) ...
So something's wrong with: [ 77%] Generating photo+CalibrateCRF.java, photo.cpp because afterwards I get different traceback's and errors:
Traceback (most recent call last):
File "/media/stefan/A050780B5077E706/_raspi/opencv/sources/modules/java/generator/gen_java.py", line 1559, in <module>
generator.gen(srcfiles, module, dstdir)
File "/media/stefan/A050780B5077E706/_raspi/opencv/sources/modules/java/generator/gen_java.py", line 1061, in gen
self.gen_class(ci)
File "/media/stefan/A050780B5077E706/_raspi/opencv/sources/modules/java/generator/gen_java.py", line 1460, in gen_class
for fi in ci.getAllMethods():
File "/media/stefan/A050780B5077E706/_raspi/opencv/sources/modules/java/generator/gen_java.py", line 824, in getAllMethods
result.extend([fi for fi in sorted(self.methods) if fi.isconstructor])
TypeError: unorderable types: FuncInfo() < FuncInfo()
modules/java/CMakeFiles/opencv_java.dir/build.make:86: recipe for target 'modules/java/photo+CalibrateCRF.java' failed
make[2]: *** [modules/java/photo+CalibrateCRF.java] Error 1
CMakeFiles/Makefile2:6282: recipe for target 'modules/java/CMakeFiles/opencv_java.dir/all' failed
make[1]: *** [modules/java/CMakeFiles/opencv_java.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2
Obviously there is something going on with the java part of OpenCV. I ran into exactly the same error but since I didn't want to use Java at all I excluded it from the build and everything worked just fine.
Here is what did the job for me:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_QT=ON -D WITH_OPENGL=ON -D WITH_TBB=ON -D CMAKE_INSTALL_PREFIX=$(python3 -c "import sys; print(sys.prefix)") -D BUILD_EXAMPLES=ON -D PYTHON_EXECUTABLE=$(which python3) -D BUILD_opencv_java=OFF BUILD_opencv_test_java=OFF ..

Categories