I have a small GUI application created using Vala and Gtk. It was running very well till I added a FileChooserDialog. After this, the application (compiled and running on Windows) suddenly crashes without any error, when this code is reached.
The application (compiled on Linux) runs very well on Linux.
I ran the windows application in Linux using wine, and following error is reported:
(myappl.exe:44): Gtk-WARNING **: Could not find the icon 'user-home-symbolic-ltr'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
http://icon-theme.freedesktop.org/releases
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
002d:err:shell:SHGetFileInfoW pidl is null!
(myappl.exe:44): GLib-GIO-ERROR **: No GSettings schemas are installed on the system
This error has been reported and discussed but I could not find any clear solution for Windows. Where is the problem and how can it be solved? Specifically, is there any dll file that can be added to solve this error?
Related
I am trying to build libssh2 using cmake. I have downloaded current master commit cfe0bf64985fd6a5db3b45ffc31a2fe3b8fd9948. When I run the build command, I get this compile error:
extern/libssh2/src/libssh2_priv.h:907:38: error: array type has incomplete element type ‘struct iovec’
const struct iovec datavec[], void **abstract);
^~~~~~~
I am using a debian 10.6 machine and my gcc version is 8.3.0.
There was a colon in the path and removing it solved the problem.
Next question: Why it didn't make any problem to build C++ apps?
So I am trying to install FLTK on my mac OS X 10.10. I follow the README.OSX.txt file, but when I get to actually installing it on the make command, I get the following error and warning:
Fl_cocoa.mm:4080:5: error: unknown type name 'NSOperatingSystemVersion'
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
^
Fl_cocoa.mm:4080:69: warning: instance method '-operatingSystemVersion' not found (return type defaults to 'id') [-Wobjc-method-access]
NSOperatingSystemVersion version = [[NSProcessInfo processInfo] operatingSystemVersion];
^~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h:20:12: note:
receiver is instance of class declared here
#interface NSProcessInfo : NSObject {
Does anyone have any idea what is causing this error or anything that I could do to fix it? Thanks!
First go to the fltk-1.3.3 folder and type export CXX=c++. This will tell the compiler to use Clang++ to compile FLTK. Then type ./configure and sudo make install. That's it. After this, you might want to check if FLTK is properly installed by typing fltk-config --version and to if it gives 1.3.3.
I am trying out some cross platform GUI environments and have am evaluating wxWidgets using codelite, but have gotten stuck at the very beginning.
I am very new at this, if its a stupid question please say so.
prerequisites are,
Using OSX Mountain Lion
Installed wxmac via home brew
Downloaded Codelite, created a wxWidgets Executable
I make a GUI project and try to install but get a bunch of missing header errors.
make[1]: wx-config: Command not found
g++ -c "xxxx/helloworld/main.cpp" -g -O0 -Wall -o ./Debug/main.o -I. -I.
g++ -c "xxxx/helloworld/MainFrame.cpp" -g -O0 -Wall -o ./Debug/MainFrame.o -I. -I.
In file included from xxxx/helloworld/MainFrame.h:3,
from xxxx/helloworld/MainFrame.cpp:1:
xxxx/helloworld/wxcrafter.h:4:25: error: wx/settings.h: No such file or directory
xxxx/helloworld/wxcrafter.h:5:27: xxxx/helloworld/main.cpp:1:20: error: wx/app.h: No such file or directory
xxxx/helloworld/main.cpp:2:22: error: wx/event.h: No such file or directory
In file included from xxxx/helloworld/MainFrame.h:3,
from xxxx/helloworld/main.cpp:3:
xxxx/helloworld/wxcrafter.h:4:25: error: wx/settings.h: No such file or directory
xxxx/helloworld/wxcrafter.h:5:27: error: wx/xrc/xmlres.h: No such file or directory
xxxx/helloworld/wxcrafter.h:6:27: error: wx/xrc/xh_bmp.h: No such file or directory
xxxx/helloworld/wxcrafter.h:7:22: error: wx/frame.h: No such file or directory
xxxx/helloworld/wxcrafter.h:8:22: error: wx/sizer.h: No such file or directory
xxxx/helloworld/wxcrafter.h:9:22: error: wx/panel.h: No such file or directory
xxxx/helloworld/wxcrafter.h:10:21: error: wx/menu.h: No such file or directory
xxxx/helloworld/wxcrafter.h:11:24: error: wx/toolbar.h: No such file or directory
xxxx/helloworld/main.cpp:4:22: error: wx/image.h: No such file or directory
In file included from xxxx/helloworld/MainFrame.h:3,
from xxxx/helloworld/main.cpp:3:
xxxx/helloworld/wxcrafter.h:14: error: expected class-name before '{' token
xxxx/helloworld/wxcrafter.h:16: error: ISO C++ forbids declaration of 'wxPanel' with no type
xxxx/helloworld/wxcrafter.h:16: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:17: error: ISO C++ forbids declaration of 'wxMenuBar' with no type
xxxx/helloworld/wxcrafter.h:17: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:18: error: ISO C++ forbids declaration of 'wxMenu' with no type
xxxx/helloworld/wxcrafter.h:18: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:19: error: ISO C++ forbids declaration of 'wxMenuItem' with no type
xxxx/helloworld/wxcrafter.h:19: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:20: error: ISO C++ forbids declaration of 'wxMenu' with no type
xxxx/helloworld/wxcrafter.h:20: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:21: error: ISO C++ forbids declaration of 'wxMenuItem' with no type
xxxx/helloworld/wxcrafter.h:21: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:22: error: ISO C++ forbids declaration of 'wxToolBar' with no type
xxxx/helloworld/wxcrafter.h:22: error: expected ';' before '*' token
xxxx/helloworld/wxcrafter.h:25: error: 'wxCommandEvent' has not been declared
xxxx/helloworld/wxcrafter.h:26: error: 'wxCommandEvent' has not been declared
xxxx/helloworld/wxcrafter.h:29: error: expected `)' before '*' token
xxxx/helloworld/wxcrafter.h: In member function 'virtual void MainFrameBaseClass::OnExit(int&)':
xxxx/helloworld/wxcrafter.h:25: error: request for member 'Skip' in 'event', which is of non-class type 'int'
xxxx/helloworld/wxcrafter.h: In member function 'virtual void MainFrameBaseClass::OnAbout(int&)':
xxxx/helloworld/wxcrafter.h:26: error: request for member 'Skip' in 'event', which is of non-class type 'int'
my guess would be to specify the folder that includes all of these, but am not sure where to find them.
Well to be honest I'm not sure if thats the right action at all, maybe I need to install or set something up, perhaps I shouldn't use homebrew and install by source
Added
Thanks to VZ. I got it working, had to change some of the build settings, as bellow
Settings>BuildSettings>gnu g++>Tools>PATH Environment Variables set to
/usr/local/bin:/usr/bin:/bin
Set all the Compiler, Linker, Shared Object Linker settings to absolute path, so change
g++
to
/usr/bin/g++
and so forth.
This surely changes per setup of the machine so it probably shouldn't be followed to the letter, but should get you started.
hope this helps.
The error you need to fix is the very first one:
make[1]: wx-config: Command not found
Make sure wx-config is in your path. Do not specify the include paths manually, this is not the right way to do it, you must use wx-config.
You probably would need to download wxWidgets source code distribution (2.9.4 from this page or latest source code from SVN), unpack it, build libs from the source code
./configure && make && sudo make install
then reboot and after that try to build the Codellite.
I was using this library on Ubuntu 10.10 with OpenCV 2.2 and it worked really good. Much better than the 0.9.3 version! Now I am updating my system and I still want to use libdecodeqr 0.9.4, but I get a compile error:
galois.cpp: In member function ‘Galois::Polynomial* Galois::Polynomial::_lu(Galois::Polynomial)’:
galois.cpp:400:48: error: taking address of temporary [-fpermissive]
galois.cpp:403:65: error: taking address of temporary [-fpermissive]
galois.cpp: In member function ‘Galois::Polynomial Galois::Polynomial::solve(Galois::Polynomial)’:
galois.cpp:458:69: error: taking address of temporary [-fpermissive]
galois.cpp:464:56: error: taking address of temporary [-fpermissive]
galois.cpp:466:54: error: taking address of temporary [-fpermissive]
galois.cpp: In member function ‘int Galois::BCH::decode(int)’:
galois.cpp:565:56: error: taking address of temporary [-fpermissive]
galois.cpp:567:59: error: taking address of temporary [-fpermissive]
galois.cpp: In member function ‘Galois::Nomial Galois::BCH::_error_syndrome(int)’:
galois.cpp:592:44: error: taking address of temporary [-fpermissive]
make[1]: *** [galois.lo] Error 1
make[1]: Leaving directory `/home/xxx/Downloads/libdecodeqr-0.9.4/libdecodeqr'
make: *** [all-recursive] Error 1
I am on Ubuntu 12.04 and OpenCV 2.4. I did the src install like ./configure make make install. What can I do to make this compile?
Thank you
I figured it out. The problem is that the new gcc compiler "turns taking address of temporary" in an error instead of a warning.
Build libdecodeqr the following way to let it compile:
sudo make CXXFLAGS+=-fpermissive
After that, obviously:
sudo make install
sudo ldconfig
When I make a use of Qwebview in my application. and then build it I get an error of
:: error: collect2: ld returned 1 exit status
:: error: [debug\Browseweb.exe] Error 1
so it does not run I have seached Quit But didn't got the solution So what should I do to solve this error. if You have a Solution kindly help me.
That error is coming from the linker ld and, based on error: [debug\Browseweb.exe] Error 1, my first thought is that it's a problem creating the executable file.
If that error 1 matches what's in errno.h, then it's an EPERM error which is related to permissions. You should check whether the debug directory exists and, if it does, check to make sure you can create files in there.
However, given that you seem to be on a Windows platform (due to the backslash path separator and an exe extension), I'm not sure that's the actual case.
One other thing that may be causing the problem is if your executable is running when you try to rebuild it.
I've seen this problem before under Windows since the OS locks the executable while it's running.