HaxeUI library not working with Lime/openFL/Haxe - haxe

I'm trying to run the HelloWorld sample provided by HaxeUI in my linux machine.
when I test using Lime or OpenFL like
lime test neko
it gives the following error:
/usr/lib/haxe/std/neko/_std/sys/FileSystem.hx:59: characters 21-90 : Error stat
/usr/lib/haxe/std/neko/_std/sys/ssl/Key.hx
/usr/lib/haxe/std/neko/_std/sys/FileSystem.hx:68: characters 9-19 : Called from
/home/ahmadz/openfl/haxeui/1,8,20/haxe/ui/toolkit/core/Macros.hx:225: characters 10-44 : Called from
/home/ahmadz/openfl/haxeui/1,8,20/haxe/ui/toolkit/core/Macros.hx:57: characters 2-18 : Called from
/home/ahmadz/openfl/haxeui/1,8,20/haxe/ui/toolkit/core/Toolkit.hx:50: characters 2-26 : Called from
Aborted
however, when I try to test using sudo like sudo lime test neko, this error shows up:
Called from openfl/_legacy/utils/ByteArray.hx line 760
Called from openfl/_legacy/Lib.hx line 284
Called from openfl/_legacy/Lib.hx line 427 Called from openfl/_legacy/Lib.hx line 219
Called from /usr/lib/haxe/std/neko/Lib.hx line 30 Uncaught exception - load.c(237) : Failed to load library : lime-legacy.ndll (lime-legacy.ndll: cannot open shared object file: No such file or directory)
Here is my haxelib list result:
actuate: [1.8.7]
box2d: [1.2.3]
haxeui: [1.8.20]
hscript: [2.0.7]
hxcpp: [3.3.49]
layout: [1.2.1]
lime-samples: [2.6.0]
lime: 2.9.1 [3.0.3]
openfl-samples: [4.0.0]
openfl: 4.0.3 [3.6.1]
swf: [2.2.3]
Am I doing something wrong?, I'm an OpenFL beginner and I need HaxeUI for a project I'm working on.
Thanks in advance.

For the future record and anyone facing the same problem.
I had to switch to Lime 2.9.1 using haxelib set lime 2.9.1 and now it works!

Related

Error compiling Fortran code with eclipse... it is OK when using Gfortran via Linux terminal

I am trying to compile a .f Fortran code with Eclipse. I have tried both of the below methods from the Eclipse help site:
Starting a Project with an Auto-Generated Makefile
Starting a Project with a Hand-Written Makefile
However, Eclipse gives multiple different errors... Here are some of the errors:
DIMENSION DDDJ(0:IG,-1:JG)
1
Error: Non-numeric character in statement label at (1)
../Main1.f:16.5:
DIMENSION DDDJ(0:IG,-1:JG)
1
Error: Unclassifiable statement at (1)
../Main1.f:19.5:
DIMENSION MSN(1:NPP) ! S(x,t)
1
Error: Non-numeric character in statement label at (1)
Fatal Error: Error count reached limit of 25.
make: *** [Main1.o] Error 1
14:51:55 Build Finished (took 1s.244ms)
I have compiled the code in the terminal using Gfortran simply and i have obtained the executable file an obtained the results. But Eclipse did not work for me at all.
I want to debug my code. it is 1236 raws. Can someone help me with Eclipse or any other suggestion?
It is related with the form of Fortran file. I was copying the code into a new Fortran source file. I decided to import the file that I have into the project.

How to include SimpleAudioEngine to Linux build in cocos2d-x v3.3 project?

I'm trying use SimpleAudioEngine in my project. I include the SimpleAudiEngine header to AppDelegate.
#include "SimpleAudioEngine.h"
When I build my project for Android everything compiles and build is fine. SimpleAudioEngine working is correct.
If run build for Linux, I get an error message:
fatal error: SimpleAudioEngine.h: No such file or directory
#include "SimpleAudioEngine.h"
I tried include SimpleAudioEngine to CMake file - result remains the previous.
I solved the problem by adding this line of code to CMakeLists.txt (in cocos2D version 3.4 project):
${COCOS2D_ROOT}/cocos/audio/include
So CMakeLists.txt is somthing like this now:
...
include_directories(
/usr/local/include/GLFW
...
${COCOS2D_ROOT}/cocos/audio/include
)
hope this help.

Monotouch Facebook Binding - "make" results in errors

I'm trying to create the Facebook DLL with following bindings: https://github.com/mono/monotouch-bindings/tree/master/facebook
When I use "make", I'm getting following errors:
error: invalid deployment target '5.0.0' for architecture 'arm64' (requires
'7.0.0' or later)
And
** BUILD FAILED **
The following build commands failed: ProcessPCH
/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/com.apple.DeveloperTools/5.0-5A1413/Xcode/SharedPrecompiledHeaders/facebook_ios_sdk_Prefix-eeghlwplbbpvmudycetfsuytcqmf/facebook_ios_sdk_Prefix.pch.pch
facebook_ios_sdk_Prefix.pch normal arm64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler (1 failure) make[1]: *
[libFacebook-arm64.a] Error 65 make: * [build-binding] Error 2
Any ideas?
Ok, finally found the answer myself and posting it here in case others have the same problem.
The make file downloads the Facebook Obj C project automatically
The "BASE SDK" of this project is set to iOS7, the 64bit deployment targets are also set to iOS7, the 32bit deployment targets are set to iOS5
It then builds the Monotouch DLL with the binding project
This targets 64bit, which is not supported on iOS5
So basically, the "make" will not work. You first need to change all deployments targets in the project to iOS7. See screenshot below.
Probably there is a better solution that also supports earlier versions then iOS7, because the Obj C project is using different targets for 32bit (iOS5) and 64bit (iOS7) and my solution now only targets iOS7.

java.lang.IllegalArgumentException: Not a valid class name: ANDROID NDK javah

Im learning to code Android in NDK on WINDOWS Eclipse.... been following a Tutorial Book by Sylvain Ratabouil. So im in Run | External Tools | External Tools Configurations…
creating a new program configuration.
Name: MyProject javah
Location : ${env_var:JAVA_HOME}\bin\javah.exe
Working directory: ${workspace_loc:/MyProject/bin}
The problem comes In arguments...
when i try
Arguments: –d ${workspace_loc:/MyProject/jni} com.myproject.MyActivity
as it says in the book
i get when i click run
Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class name: –d
when i try ${workspace_loc:/MyProject/jni} com.myproject.MyActivity}
i get
Exception in thread "main" java.lang.IllegalArgumentException: Not a valid class name: C:\Paul\Workspace\MyProject\jni
UPDATE:
i put -classpath first and it's running but can not find the class file for com.myproject
after further research....
i did it.
i set arguments to
-d ${workspace_loc:/MyProject/jni} -classpath C:\Paul\android-sdk-windows\platforms\android-17\android.jar;${workspace_loc:/MyProject/bin/classes} com.myproject.MainActivity
I also spend some long time on this problem when working with the the mentioned book about Android NDK.
Please note the following:
The java classname is NOT written in { }, just write something like com.myproject.MyActivity
The -classpath parameter can receive several paths devided by semicolon.
In my case this parameters worked:
Location:
${env_var:JAVA_HOME}\bin\javah.exe
Working Directory:
${workspace_loc:/myproject/bin}
Arguments:
-d ${workspace_loc:/myproject/jni} -classpath ${workspace_loc:/myproject/bin/classes};"C:\Eclipse\sdk\platforms\android-18\android.jar" com.myproject.MyActivity
(BTW.: The correct Adroid.jar file is referenced inside the Eclipse project.)
Me also facing the same problem tonight, i found a less tedious way as following...
as "Location" set the javah from your system
as "Working directory" set the project's bin/classes directory (${workspace_loc:/HelloWorld/bin/classes})
as "Argument" set the jni folder as the output directory and point out the class on which you want to run the javah (-d "${workspace_loc:/HelloWorld/jni}" com.example.helloworld.MainActivity)
NB :: Dont forget the double qoute (") around the output in the third step ("${workspace_loc:/HelloWorld/jni}")
A full picture is also attached following
well in case ...
1-> Goto ( cd C:\Program Files\Java\jdk1.7.0_60\bin)
2-> C:\Program Files\Java\jdk1.7.0_60\bin>javah -jni -classpath
F:\Android_OpenGLES\FibonacciNative\bin\classes
-d F:\Android_OpenGLES\FibonacciNative\jni\ com.example.fibonaccinative.FibLib
without creating/using environment variable ...
Following I tried successfully
javah com.sense.kios.Calculation
Note: Include package name.
In case if javah not found as an command and you getting
The program 'javah' can be found in the following packages:
* gcj-4.6-jdk
* gcj-4.7-jdk
* openjdk-7-jdk
* openjdk-6-jdk
Try: sudo apt-get install <selected package>
use direct path of jdk path, in my case it's /usr/lib/jvm/jdk1.8.0/bin/javah.
YES THAT'S CORRECT
more abstract would be
-d ${workspace_loc:/MyProject/jni} -classpath ${env_var:ANDROID_SDK_HOME}\platforms\android-16\android.jar;${workspace_loc:/MyProject/bin/classes} com.myproject.MyActivity

gstreamer plugin development issue, gst-inspect says: undefined symbol: gst_video_format_new_caps

I need to develop a gstreamer source element, so after running a script to generate plug-in sources and adding some basic boilerplate code, I got my plug-in to build, however when trying to load it from gst-inspect tool, I get:
(gst-plugin-scanner:10260): GStreamer-WARNING **: Failed to load plugin '/usr/lib64/gstreamer-0.10/libgstbcmdec.so': /usr/lib64/gstreamer-0.10/libgstbcmdec.so: undefined symbol: gst_video_format_new_caps
I found that this symbol should be in gstreamer-plugins-base so I double-checked that its already installed. Also added -lgstvideo-0.10 to the Makefile.am (so added to GST_LIBS) however this doesnt help. Any ideas what I am doing wrong?
I am working on Fedora core 14, 64 bit, and have the latest gstreamer-* packages (used yum).
What is your exact Makefile.am? Is it looking like this?
libgstbcmdec_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_MAJORMINOR) \
...

Resources