All Questions
Tagged with ubuntu-22.04 c++
16
questions
0
votes
0
answers
58
views
Program using framebuffer killed on Ubuntu 18.04 but works on Ubuntu 22.04
I'm currently developing a program that interacts with the framebuffer. The program works perfectly on Ubuntu 22.04, but it gets killed with the message "killed" on Ubuntu 18.04.
Here is the ...
0
votes
0
answers
216
views
Cross-compile Qt6 on Ubuntu 22.04
I'm having some troubles cross compiling Qt6 on Ubuntu 22.04 using mingw64 and CMake. The compilation process starts fine and all source files get compiled, but when I start looking for Qt components ...
1
vote
1
answer
377
views
gcc-12/13: std::stacktrace is still not found
I have this code:
#include <stacktrace>
#include <iostream>
int nested_func(int c)
{
std::cout << std::stacktrace::current() << '\n';
return c + 1;
}
int func(int b)
{...
0
votes
0
answers
172
views
How to compile multiple C++ files without specifying each file name using the tasks.json file in VSCode on Linux
According to the VScode docs, you can create a tasks.json file in the .vscode folder with the args field set to "${workspaceFolder}/*.cpp" instead of ${file} and it will compile all your C++ ...
3
votes
0
answers
161
views
OpenCV 4.8.1 Segmentation Fault using findContours()
I'm trying to find and draw contours on frames from the webcam. I'm getting this error:
segmentation fault
The error occurs when calling the findContours() function. Everything before that call works ...
0
votes
0
answers
158
views
Is there a way to enable debug mode in a prebuilt libc++ 15 on either macOS or Ubuntu?
Optional context
Consider the following code with a clearly incorrect comparator:
#include <algorithm>
#include <vector>
int main() {
std::vector<int> a{3, 1, 2, 4};
sort(a....
-1
votes
1
answer
423
views
ns3 running failure due to CMakeLists.txt
I have begun to make a network simulation using ns-3.39.
However, after installation, I met a problem to run a simulation.
When I try to run first.cc in the tutorial folder, the terminal displays:
./...
1
vote
0
answers
161
views
cannot install C++ on Netbeans 18 on Ubuntu 22.04. needs unpack200
The C++ plugin starts installing then gets hung up needing something called unpack200. I cannot find that. How do I get past this?
tried going to /usr/lib/jvm and search the tree for unpack200*; I don'...
6
votes
1
answer
4k
views
How to manually upgrade Boost to latest version on Ubuntu 22.04
A few months ago I installed boost on Ubuntu 22.04 using:
sudo apt-get install libboost-all-dev
This installed version 1.74. However, I need 1.82 and the 22.04 repositories do not contain 1.82.
I am ...
0
votes
0
answers
169
views
Error building KIdleTime with kdesrc-build
I followed this tutorial of KDE and I got a problem when building KDE Frameworks with kdesrc-build (I'm building it on Linux Ubuntu):
kdesrc-build frameworks --ignore-modules kdewebkit
But when It's ...
1
vote
0
answers
97
views
Error: optional file(_GLIBCXX_THROW_OR_ABORT) Porting error 32bit to 64 bit
When I compiled the code in ubuntu 14.04 of 32 bit , I didn't get any error, but when I ported the code and tried to compile in Ubuntu 22.04 64bit.So I am getting error in standard header libraries. ...
0
votes
2
answers
375
views
Overloading new/delete operators on ubuntu 22.04, libc 2.35 and calling SDL2 SDL_CreateRenderer causes segmentation fault
I have my own memory manager in linux (ubuntu) in order to detect memory leaks or memory corruption in my c/c++ code.
To use my own memory manager just I've overloaded new/delete global operators like ...
0
votes
1
answer
962
views
Build Fails Using GCC-11 Due to Some Missing Standard Library Headers
After upgrading to gcc-11, which is shipped with Ubuntu 22.04, I started to get new compiler errors due to some missing Standard Library header files. Whereas previous gcc versions don't.
When I ...
0
votes
2
answers
412
views
wxWidgets wxGetKeyState() and Wayland issue
I have run into a wxGetKeyState() issue with Wayland. Let me explain: In some of my apps, I add a test for the Shift key being pressed in the ctor of my app’s top wxFrame window. If the Shift key is ...
0
votes
0
answers
167
views
How to debug C++ DLL(or .so) file in C# .NET project in visual-studio-code (UBUNTU)?
When enable native debugging was activated in visual studio on windows, I could do debug if the DLL file was also compiled as debug. I have successfully migrated the project to Ubuntu, C++ DLL ...