Mercurial support in QtCreator 2.5.0 in Linux - mercurial

There seems to be Mercurial support build into QtCreator 2.5.0 in Linux, I can run commands like hg status, annotate, whatnot directly from QtCreator.
How can I, however, make QtCreator display status of a file in the Project tree (like all the Java IDE's used to do with Subversion when I used them a few years ago)?

QtCreator currently have no such feature in any VCS plugin. You can fire feature request to https://bugreports.qt-project.org/

Related

Build Java JDK for LibGDX packing

I want to build my own java JDK so I can package my LibGDX game through launch4j or packr. This page suggests to use these prebuilt jdks, but that project has been discontinued. That page redirects to another github where I can get prebuilt jdks for Windows 64bit, however I need more builds for Mac and Linux (at least mac, because that's what I'm on).
I know there are other places to obtain built jdks for packing java applets and LibGDX games, but I rather just skip that hassle and build my own binaries with the jdk I'm using on my own computer.
If there are better ways to easily package my LibGDX game, I would love to know.
tl;dr: I want to build my own binary jdks so I can use packr or launch4j to package my LibGDX game for distribution across multiple platforms.
Building OpenJDK 8 yourself is not that hard. It's a bit tricky, but manageable once you figure out the important things.
First, you need to find the right version/tag of OpenJDK 8 to build. The current latest release appears to be u112-b16. You should clone the main 8-update repository and the subrepositories (corba jaxp jaxws langtools jdk hotspot nashorn):
hg clone https://hg.openjdk.java.net/jdk8u/jdk8u -u jdk8u112-b16 -r jdk8u112-b16
cd jdk8u
for repo in corba jaxp jaxws langtools jdk hotspot nashorn; do
hg clone https://hg.openjdk.java.net/jdk8u/jdk8u/$repo -u jdk8u112-b16 -r jdk8u112-b16
done
Then, take a look at the README-builds.html file that covers things like how to get all the dependencies you need for your platforms.
Once you have all the dependencies and everything you need to build, building itself looks like this:
cd jdk8u
mkdir build
cd build
bash ../configure \
--with-milestone="fcs" \
--with-update-version=112 \
--with-build-number=b16 \
# your other configure flags go here
make all
Once the build completes, the JDK is available under jdk8u/build/images/j2sdk-image/ and the JRE is available under jdk8u/build/images/j2re-image.
The AdoptOpenJDK folks have some fairly extensive docs that you might find useful: https://adoptopenjdk.gitbooks.io/adoptopenjdk-getting-started-kit/content/en/binaries/build_openjdk_8.html
If you run into issues, feel free to drop by #openjdk on irc.oft.net.

Applying patches to Octave on Windows

I want to fix the Octave breakpoint bug on windows. I found the patch in the bug tracker [bug #46451] but I can't seem to find a way to apply it on windows. I can see the diff files to be changed, but even then i can't seem to find the files within octave folder to apply the changes.
Since the patch changes C++ source code you have to build GNU Octave yourself. The windows build are nowadays done with MXE octave http://wiki.octave.org/MXE which is a crosscompile environment.
In a nutshell you have to
Install a GNU/Linux distribution
Install built dependencies, mercurial and so on
Clone the mxe octave repo
Perhaps adapt the patch to the current sourceode and apply it
Built MXE Octave which takes some hours

Missing dependencies for dev branch

I'm trying to get minko dev branch to work on linux Mint 17.1 using gcc 4.9.2. While compiling the project created with the master branch I got some missing dependencies.
I had to install glm 0.9.6.3-1 because the version in my repositories didn't have matrix_decompose.hpp.
Now, Provider.hpp includes sparsehash/forward.h. I couln't find any version of sparsehash with this file.
I find minko to be an incredibly good and practical library but it lacks documentation.
Also, the informations in the README and other files in the dev branch are wrong or outdated.
Two questions:
Where do I get the right sparsehash?
Is there a dependencies list somewhere?
Thank you for your efforts and help.
I'm trying to get minko dev branch to work on linux Mint 17.1 using
gcc 4.9.2. While compiling the project created with the master branch
I got some missing dependencies.
I had to install glm 0.9.6.3-1 because the version in my repositories
didn't have matrix_decompose.hpp.
The 'master' branch does not use GLM (nor sparsehashmap). So you're probably on the 'dev' branch. Or worse, a mix of both. Try re-cloning the repo from scratch and properly checkout the 'dev' branch.
Also make sure you're following the documentation to build Minko:
Compiling the SDK for Windows
Compiling the SDK for OS X
Compiling the SDK for Linux
Compiling the SDK for HTML5
Compiling the SDK for iOS
Compiling the SDK for Android
You should not have to download/setup any extra dependency (except some very specific stuff for Linux and the html-overlay plugin).

Make TortoiseHG use my Python installation

I created some python hooks for Mercurial that use some external libraries (namely jira-python). In Linux, I install the packages using pip. In Windows, however, Mercurial comes with a bundled version of Python. My hooks fail when I run them because the external packages are not installed.
I want to make Mercurial / TortoiseHG use my Python installation so I can control its environment. How can I do that?
You can install Mercurial package for Python:
Mercurial 2.4 Python 2.7 package - x86 Windows
Mercurial 2.4 Python 2.7 package - x64 Windows
For TortoiseHG-specific details I can suggest to inspect %TortoiseHg%\library.zip - it contains (some? all?) needed for TortoiseHG|Mercurial Python's modules, which list you can (try) to extend: "in Where is the Python path for TortoiseHG?" topic Steve Borho wrote:
TortoiseHg's entire python environment is contained within the library.zip that comes packaged
with it.
What I suspect you can do is add a line or two to the top of your reviewboard extension file to add your installed python path to sys.path before trying to import simplejson
Hint for adding python path to sys.path is applicable for you too
Recommendation from Convert Extension page
you'll need to use a Mercurial installed on top of a stand-alone Python, and you may also need to do something like
set HG=python c:\Python25\Scripts\hg
to override the default Win32 binaries if you have those installed also
I have Mercurial installed through pip, and I also have TortoiseHg. My system path selects the Python version first.
I renamed C:\Program Files\TortoiseHg\hg.exe to something else, and then ran TortoiseHg. Everything still worked, but I haven't got a good way of verifying it does what you want. You can give it a shot.

What are the requirements for using Mercurial with Netbeans?

Background:
I want to check-out the source code from Cliche, which is stored in a Mercurial repository. I use NetBeans 7 with JDK 1.7 on Windows, but have no experience with Mercurial. I only want to get the source code, further usage of Mercurial is not required.
Question: What software / plug-in, etc. do I need to install, if any, to perform the above task?
You will find the installation process and first checkout in: "Mercurial User Guide".
(You need to install Mercurial itself first)
And more on Mercurial used from Netbeans on "NetBeans + Mercurial Training".