I am trying to compile and run a "Hello World" GtkD application on Linux. I followed this guide:
https://forum.gtkd.org/groups/GtkD/thread/1122/
Installed dmd compiler and gtkd3 with:
sudo snap install --classic dmd
sudo apt-get install libgtkd-3-dev
Compiled with:
rdmd -I/usr/include/d/gtkd-3/ -L-lgtkd-3 -L-ldl hello.d
I can compile (and link) successfully, however, when I run the application, I am getting a Segmentation fault error and no window shows.
I tried both on Ubuntu Mate 22.04 and on Linux Fossa Dog (based on Ubuntu 20.04).
What am I doing wrong?
Related
I am using Ubuntu 14.04 docker in Ubuntu 18.04. From inside Ubuntu 14.04 docker if I run "uname -r" command then it is showing same output, when I ran the same command in Ubuntu 18.04.
I want to use Ubuntu 14.04 to cross compile package for the target, but at the beginning of configuration, it is checking for confiuration and it is failing with the following error.
checking for the kernel version... unsupported (5.4.0-generic)
configure: error: Valgrind works on kernel 2.4, 2.6
I am trying to install oprofile on my ubuntu 15.04 by following the link:
Getting started with oprofile on Ubuntu
On my the other laptop whcih is running on ubuntu 14.04, it works well.
I can find the binary under /usb/bin directory.
However, I dont know why after typing the apt-get command
sudo apt-get update && sudo apt-get install oprofile
My ubuntu 15.04 still doesn't have oprofiled & opcontrol binary in /usr/bin.
Is there anyway I could check with?
Thanks
===================post updated =======================
Ubuntu 15.04 comes with oprofile 1.0.0, which no longer uses the opcontrol and oprofiled commands. If you want to follow that tutorial, install 0.9.9 from source code. oprofile download page on SourceForge.
I'm trying to install Quartus 13.1 on my Xubuntu 14.04 64-bit edition. The downloaded file is a .run installer, which I make executable by executing:
sudo chmod +x installer.run
./installer
Which gives a segmentation fault (core dumped) message.
I'm posting here because the Altera forums are useless, unfortunately.
Have you try to install these packages ?
sudo apt-get install libstdc++5 libmotif4 libxp6 libcurl3
And lauching it with bash command directly :
$ bash installer
when I configure VTK with ccmake command on Ubuntu 14.04,
the following error message happens after I press c button.
how to install that stuff?
CMake Error at Rendering/OpenGL/CMakeLists.txt:304 (message):
X11_Xt_LIB could not be found. Required for VTK X lib.
Try to install libxt-dev using:
sudo apt-get install libxt-dev
This is from http://vtk.1045678.n5.nabble.com/cmake-error-when-building-vtk-6-0-0-on-ubuntu-12-04-td5722859.html.
And at least it works for me, and my OS version is Ubuntu 14.04 LTS.
I have a new installation of dmd on Ubuntu Server 12.04.4 LTS x64. When I try to compile a simple "Hello, world!" program, I get the following error:
dmd: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Well... I'll just say it... I have no idea what that means, so what is it and how do I fix it?
This should be able to fix it:
sudo apt-get install build-essential