I am on a Windows machine and trying to compile the QGLViewer with Qt 5.3. Therefore I use the GQLViewer.pro file to compile the lib with the Qt Creator. Unfortunately it always prompts:
\libQGLViewer-2.5.2\QGLViewer\saveSnapshot.cpp:545: Error: operands to ?: have different types 'QFileDialog::Option' and 'QFlag' overwrite?QFileDialog::DontConfirmOverwrite:QFlag(0));
Anyone an idea how to solve this problem?
This is an error in the QGLViewer library.
Upgrading to a version >= 2.53 should fix it.
2.53 changelog:
Fix QFlag error with recent compilers in saveSnapshot.cpp (thanks xiaoyi).
Related
I'm using OCaml on my Windows device via Cygwin. I installed Opam as well, and also ran the command
opam pin add merlin --dev-repo
because after installing the most recent OCaml for Windows the compiler ocamlc wouldn't work and some Google searching offered this solution.
The error that I got when I first tried to run ocamlc was:
Error: C:\OCaml\lib/pervasives.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
However, now whenever I type "ocaml" in the terminal, rather than getting the interactive editor I get the fatal error message:
Fatal error: exception Cmi_format.Error(_)
Does anybody know what the problem might be? Thank you.
Installed two different versions of OCaml that weren't compatible.
I following this guide:
valgrind installation guide
After I have downloading the package, and I have run the sh script, but when I launch the make install command, it couldn't create the folder because it don't have the permission (even though I have used the sudo command).
Furthermore I tried with brew but I have this error:
valgrind: This formula either does not compile or function as expected on macOS
versions newer than El Capitan due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
You can download Valgrind's latest version from their website. Then, you can just ./autogen.sh to install Valgrind. I personally did not encounter anything needed to make.
However, the sad news is, even the most recent version of Valgrind is not very usable on Mac OS Sierra. The reason is that Apple has not released the part of the source code that makes Valgrind crash, without which, the Valgrind maintainers can hardly do anything. You can read more about the discussion around the issue here .
Because Mac OS kernel is under Apple Public Source License, it has to be open-sourced someday. Thus, a Sierra-complitable version of Valgrind is only a matter of time.
Currently, I use Valgrind under Linux. This is all I can suggest now.
Latest Valgrind (git version 3.13.0) now works on MacOS Sierra but needs Xcode command line tools installed (installs needed headers).
Run this before building Valgrind:
xcode-select --install
Thanks goes to this post.
If you get an error similar to
valgrind: This formula either does not compile or function as expected
on macOS versions newer than Sierra due to an upstream
incompatibility.
you can try the workaround brew install --HEAD valgrind I found this information here https://www.gungorbudak.com/blog/2018/04/28/how-to-install-valgrind-on-macos-high-sierra/
If you happen to be on Sierra still, this works (but not on High Sierra), just do
$ brew install valgrind
valgrind: This formula either does not compile or function as expected on macOS
versions newer than Sierra due to an upstream incompatibility.
Error: An unsatisfied requirement failed this build.
Update: seems it works on "High Sierra" OOTB now too, it now says:
...versions newer than High Sierra due to an upstream incompatibility...
The easy alternative to valgrind on mac is called 'leaks'. It is a command-line tool, so if you don't already have xcode command-line tools installed, do so with
'xcode-select --install'.
Then, to test for leaks, just compile your prog then run
'leaks -atExit -- ./your_prog'
For everyone’s information, I was getting compile errors when trying to compile the latest Berkeley DB (--enable-java was an option) with the latest jdk from oracle (JDK 1.8.0) and I was getting deprecation errors from "make".
I switched the jdk to open JDK 1.7.0 by setting the PATH variable to point to open JDK's bin (export PATH=path to jdk/bin:$PATH) and I was able to compile without errors.
Another way to fix the issue was to ignore deprecation error through -Xlint:deprecation, but I couldn't get it to work.
Jesse
I want to use iReport on ubuntu 12.04. When I try to start it, it stands still and just gives me this error:
Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/jna4023560596826437553.tmp which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
How can I solve this problem ?
Edit: I tried: execstack -c /tmp/jna4023560596826437553.tmp but that didn't help.
This error seems more related to a JVM problem instead of jasper. Indeed, Java 7 on linux has a feature which blocks code written in C (or other languages like Ruby etc) and linked into Java (the so-called Java Native Interface - JNI) from halting the whole VM if it’s written badly or maliciously.
So, if you're using java version 1.7, getting back to 1.6 should do the trick. But if you want to keep this version, then try a clean uninstall and re-install of java:
Uninstall,
Install
Notice that if you're not running on 1.7 , it could be a compatibility problem. Try to match the right jars required for iReport to get it work on linux.
I'm using ubuntu and I did below,
Opened the ireport.conf
and uncomment jdkhome
and added java 7 paths (since my default is java 8)
jdkhome=/home/bhanuka/Apps/jdk-7u80-linux-x64/jdk1.7.0_80
When I compile a simple web application on my machine it works without problems.
However when I publish to the server always gives me the following error:
Could not load type 'System.Collections.Generic.Dictionary `2' from assembly 'mscorlib, Version = 4.0.0.0,
In my local machine I have the following directory that does not exist on the server:
/usr/lib/mono/4.0/
I've tried to install gtk-sharp-2.12.11 but in the end gives the following error:
Requested 'gtk + -2.0> = 2.12.0' but version of GTK + is 2.10.4
Please help me
Thanks
Paulo Santos
The gtk# binding, in its version 2.12, simply depends on gtk+ version 2.12.
You need to upgrade your Fedora if you want to use that version.
However, take in account that the gtk platform is only useful for desktop development, not web development, so I think you're mixing things up.
Try installing the "dmcs" compiler in Fedora. (You may have a very old version of Mono that doesn't include this 4.0-profile compiler, what version of Mono do you have installed?)