Gstreamer custom plugin registration issue - c

I just started to use gstreamer and I want to know how to register a plugin that I wrote. Of course, I have followed the Plugin Writer's Guide and used the make_element command to build my plugin. Now, I want to test it in a basic pipe line using the gst-launch command.
The problem is that I don't know how to register my plugin.
I've tried the --gst-plugin-path option with the path of the .c and .h files, but I get this:
WARNING: erroneous pipeline
I am using gstreamer-0.10.
Does someone have an idea?

I'v solve my problem by upgrading to 1.0 but I also had to change the installation path in the "configure" folder.

Related

Is there a way to turn a way to transform .scala file to .class file?

I have some .scala files that I want to package up into a .jar how can I turn them into .class files?
Run scalac on them. If you're using a build manager like maven or sbt, use the appropriate compile command.
I'm assuming that you have a single .scala file and that you have no library dependencies that you need to add to the class path.
scalac Foo.scala
You should look into some beginner-level language tutorials, since this is very basic. sbt is the de-facto standard build manager for scala, and I recommend reading the quick start guide there if you want to do anything more complex than what I've described above. http://www.scala-sbt.org/release/tutorial/

How can one import the whole webDriver project in an executable form so that anybody else can run the suite by just a click.?

I am relatively new to Selenium WebDriver and a self learner. I have created a webDriver project which consists of different packages and have made use of Page Factory concepts extensively. I use TestNg framework to run the suite to generate my report. So my test cases are also following the TestNG framework concepts.
Now my team wants to use my script to be run at every build to test the sanity. The build team just wants to run my whole script by just a click. It can be shell script command or .exe or jar. Build team uses linux m/c and they dont have Ecplise , TestNg installed in their machine. Their intention is whenever build is given they want to run my script by just a click or a command in Command Prompt.( it has to be that simple for them) and a report should be generated in some location in hdfs
My script runs on FF version 32 and Selenium webDriver 2.44.0
Would really appreciate if someone could give me a solution that actually works for my requirement.
I found a similar query from someone but i am not sure if the answer still suits.
How to make Java executable Jar file of WebDriver project
Could somebody please give me a solution. Or the solution mentioned in the above link stil is the best?
Regards
There are few ways to do it:
Use CI tool (Jenkins): You can set up your project in Jenkins and it will allow you to run the project in single click. Jenkins also provides you an option to run the tests periodically so you can configure it in such a way that it will always get executed after certain time period.Jenkins is also capable to trigger the execution if there is any changes in source code of tests. I'd suggest to use this tool. https://jenkins-ci.org/
Use .bat or .sh file: I am not sure if you are using any build tool like ANT or Maven, if you are using any one of them then you can write a .bat or .sh file to run the tests. ANT
If you are not using any build tool then start using, it will help to run the tests in simplest way.For me to run entire suite, I just type below command in terminal from root directory of project
ant run -Dsuite=all
If you are more concerned about system configuration for e.g. the system which will be used by build team does not have a specific version of browser or specific required library. Then I'd suggest to keep all essentials like browser installation files, libraries in your project directory. This is not a good practice but yes it will help others to run the tests smoothly.
I would suggest just exporting a jar file for your project. All the libraries will be packaged together in the jar files(including TestNG) and you can simply double click on the jar file to start your tests.
External resources (if any), will have to be available for the jar file though. So, you can provide the jar file and the external resources together. The external resources might include your test data (if any) or Portable Firefox(if you are using the portable version).
Steps:
Right click on Project -> Export -> Runnable jar file
Give a name and file path for the jar file
Select option - Extract required libraries into generated JAR
And Finish
Troubleshooting:
Check the java version for the machines that you will be running your jar file on. Programs compiled with java 7 will mostly not run if the machine has java 6. Either compile with java 6 or update the jre on the target machines.
If the jar file does not launch, try using Jarfix.

I'm struggling with SDL2 installation on Xcode 6

I'm working on a little project and I'm trying to use SDL2 library! I installed the SDL2.framework successfully in my library/framework folder. Then when I tried to link my headers and my framework in Xcode by adding the Library/Framework path for the framework and /Library/Framework/SDL2.framework/Headers for the headers in my app settings! Then I include
. #include
Afterward when I run the program there is an error but not about the fact it doesn't find headers.
Do you guys have a few tips about this?
Thank you
PS : sorry for the eventual English mistake
edit: i finally manage to run the program (i forgot to link binary) but now Xcode shut down right after it
I finally could install it for those who are struggling with this !
1. Download SDL2 source code on the website.
2. Compile the framework and copy SDL2.framework in the Library/Framework directory.
3. Create a classic Xcode project in C. In build settings. Then in Build Phases add SDL2.framework in the "Link binary with libraries" Indicate for the headers search paths : Library/Frameworks/SDL2.framework/Headers and Library/Frameworks for the framework search paths.
Hope this can help some of you.
Thank you all for the help !
try the following tutorial to see if it helps - http://zamma.co.uk/setup-sdl2-in-xcode-osx/

Felix File Install OSGi: How to automatically load a bundle (Configuration and how it works)?

I was looking for a way to load and start OSGi Bundles on the fly during runtime into my system. However after finding Felix File Install, I thought this is problably the most elegant and easy working way.
Thing is: It's not working. ;-)
I downloaded the Felix File Install Jar and deployd it as an OSGi Bundle into my software.
It also starts with all my OSGi Bundles in Eclipse without any problems. However, I don't know where I should set the properties file (Tried to put them in the arguments box at eclipse's project properties. no success though).
Furthermore my Bundle isn't reacting when something in the directory is changing. Even when creating the default directory and manipulating its content, nothing happens. No Bundles get loaded. Somehow I have the feeling I have overseen something huge here, since it seems to work for most people just perfect with not that mch effort?
Would be really glad for your help.
Bye
NOTE: There is no Apache Felix installed. Only the felix file install jar. The OSGi is running on equinox...
They are system properties not program arguments for equinox. Use it like this :
-Dfelix.fileinstall.dir=/pickup
As per their documentation the default value for this is ./load.
NOTE: In eclipse add the above in the VM arguments

Integrating Tapku Library to XCode 4.6 project

Its been a long since I am struggling integrating the Tapku Library in my Xcode project. I want to implement the Day View component from Tapku into my project. I followed the instructions from read-me on github but had no success. I am getting following error, "Apple Compiler LLVM Error" when I add the files to my project. Anyone who has successfully integrated the same please help.
I solved this issue by using Finder (before opening xCode) copy the src folder to my projects directory.
So my project structure is MyProject/Frameworks/src
For the rest of the steps just follow the guide on Tapku's GitHub page.
Only add the 2 TapkuLibrary.xcodeproj and src/TapkuLibrary.bundle files
Select the Build Phases
Link Binary With Libraries
For the Header Search Path you can use $(SRCROOT)/Frameworks/src remember to use non-recursive option
And for Other Linker Flags add -ObjC
Hope this helps

Resources