We use Eclipse to build our projects.
In Jenkins we have a build script which runs over the projects and imports them to eclipse for it to build.
The issue I have is that all build configurations are built on every build from the commandline.
(Release, release_shared, release_static, Debug, debug_shared, debug_static)
This not only takes a huge amount of time but for many projects some of these configurations are not needed to be monitored yet.
What I am asking is there a commandline switch of specifying the project and then the specific build configuration to use.
using msbuild I would do the following
msbuild test.vcxproj /property:Configuration=Release
this would build the test project with the Release configuration.
In the documentation it suggests incremental build, clean, all but this is confusing as these all do a similar thing when actioned. There is also a switch for architecture type but nothing I can find that would point to project configuration as a whole.
Does this ability exist in eclipse ?
After hours of searching and playing with Eclipse I seem to have come up with the solution offered up by this https://gnu-mcu-eclipse.github.io/advanced/headless-builds/
eclipse -nosplash
-application org.eclipse.cdt.managedbuilder.core.headlessbuild
-import {[uri:/]/path/to/project}
-build {project/configuration} or all
-cleanBuild {project/configuration} or all
I was looking for a command line switch but it's built into the build or cleanbuild switches.
Hope this helps others with the same issue.
Related
I am following this tutoriel to use C library in Kotlin (Android Studio) https://jonnyzzz.com/blog/2018/05/28/minimalistic-kn/ But I can’t find the how to install/download the cinterop tool both in Windows and Ubuntu I have the error “cinterop: command not found” ! Does anybody please knows how to install cinterop ? Thank you in advance
This tool is a part of the kotlin-native distribution, and it does not make any sense to use it without the Kotlin/Native compiler. So, in fact, you would like to get all the distribution here, and install it correctly.There are three main approaches to the Kotlin/Native installation. All of them are described in the documentation.
Installing it with the IntelliJ IDEA. You should just get an IDE and let it install everything on its own. It will download all tools and put them to the following location: ~/.konan/kotlin-native-prebuilt-<osName>-<kotlinVersion>/bin/. Then you will be able to add this folder to your PATH and call the tool from CLI.
Installing using the Gradle build system. Quite similar, but this one will require manual installation of the Gradle. The first run will also download all tools and pack them to the same location as in the IDE case.
Installing the CLI tool. This looks like the most appropriate way to follow the tutorial, but won't help a lot when you start working on more sophisticated projects. In general, you should just download the latest version of the Kotlin/Native, unpack it to some folder and add this folder to your PATH.
I installed Rcedit for changing my file icon after exporting my game with Godot 3.2.2 stable.
But it only works when I uncheck embed pck. Else, it says that it can't find pck.
I want to embed the pck file with exe.
I also to change the file icon from default.
What can I do?
Edit: I also noticed now that, Rcedit is not working. It shows the custom icon when I check it in the folder. But when I bring it to desktop, it shows the default icon and it doesn't depends on presence recedit!
I am confused. Can someone solve it.
This is now a document known issue: Export with embedded pck is broken when changing PE metadata with rcedit. It has not been solved at the moment of writing. However, it should be solved for the next release (if there is another tool, similar to rcedit, which actually works in this scenario, that would be the solution. For you, and for Godot. I'm unaware of any).
Godot is not coming today, but will come tomorrow
-- Waiting For Godot.
Meanwhile, you will have to build your own export templates for Windows. To do that, begin with downloading Godot source.
Go to the Godot repository, select the branch you want (e.g 3.2) or the tag you want (e.g. 3.2.3-stable), and download to zip.
You will need Python. You will need pip, make sure it is up to date (python -m pip install --upgrade pip) and install Scons using pip (python -m pip install scons). You will also need the C++ build tools. I recommend using the Visual Studio Community installer and select "Desktop development with C++" (you don't really need Visual Studio, however in my experience using the Visual Studio installer to get them is more reliable than the standalone installer). Finally you can run scons platform=windows from the Godot source folder to build Godot.
The build system and the build process is explained in more detail in Introduction to the buildsystem. And, of course, Compiling for Windows.
Yet, the goal is not to build Godot. The goal is to build the Windows export templates. For that you are going to run these:
C:\godot> scons platform=windows tools=no target=release_debug bits=32
C:\godot> scons platform=windows tools=no target=release bits=32
C:\godot> scons platform=windows tools=no target=release_debug bits=64
C:\godot> scons platform=windows tools=no target=release bits=64
Oh, but, wait, before you do that… You need to find platform/windows/godot.ico in the source and replace it with the icon you want. Then build the Windows export templates.
Once you have your custom built export templates, you need to put them in %APPDATA%\Godot\templates\<version>\, where version matches what about says in Godot, (e.g "3.2.3.stable.mono"). And then you can build your game.
As you know, your game will appear with the default icon. What I describe here changes the default icon.
As given in mega-manual,
4.2.2.2. Creating the Project
You can create two types of projects: Autotools-based, or
Makefile-based. This section describes how to create Autotools-based
projects from within the Eclipse IDE. For information on creating
Makefile-based projects in a terminal window, see the section "Using
the Command Line" in the Yocto Project Application Developer's Guide.
I want to deploy a separate binary package, I don't want to create an image including my package. Isn't it possible to build a binary package like .ipk .deb .rpm using poky?
Yes, packages are always created. Autotools and Makefiles are for configuring/building software, so not really related to the question.
Use the PACKAGE_CLASSES variable in your configuration to select the package types you want to build with Yocto/OpenEmbedded. When you "bitbake recipe-name" the packages are built in the deploy directories under recipe WORKDIR.
Please don't expect the packages to be compatible with some other operating system though: they will be tailored for your specific configuration. If you already have an image running exactly that configuration, then it should be fine.
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 inherited a project written in C, running on Linux, with Cmake files written by the previous person. The previous person did not use IDE for this project, so I found it a bit hard to maintain this fairly large sized project, and I'm new to Cmake unfortunately :(.
I want to use eclipse (my OS is Linux) for this project to help me understand the project faster, and be able to build and debug it in Eclipse, so I do not have to run the build scripts manually every time. The project was in Mercurial, hence I check it out into my repository using Eclipse, then I have some options:
Open the project, and somehow make it into a C project which I can compile
Convert the code into makefile project, use Cross GCC toolchian, try to add all the pathes to 'include', then try to build (I'm on this path, but it seems Eclipse Juno needs me to find the path to include files myself, which is a lot to add manually T_T)
Create a new makefile project, import the code gradually as I go, I'm not super familiar with the code yet...
Some other ways...
Any suggestions please?
Also, in my case, which of the 3 options mentioned in http://www.vtk.org/Wiki/CMake:Eclipse_UNIX_Tutorial would be a good choice?