Questions tagged [clion]
For questions related to JetBrains CLion IDE.
24
questions
4
votes
3
answers
4k
views
CLion doesn't pick up environment variables sourced in bashrc
Long Story (This is X)
TLDR / The Problem (This is Y)
Now, if running sh /opt/clion/bin/clion.sh from the Ubuntu terminal, CLion does pick up the environment variables sourced in the ~/.bashrc file, ...
3
votes
1
answer
6k
views
Fatal Python error: Py_Initialize: Unable to get the locale encoding
I'm trying to execute a python script from C++ by calling popen().
The important code looks like this:
ostringstream command;
command<<"cd ; python3 piap.py "<<u<<" "<<rho;
...
2
votes
1
answer
2k
views
Set GCC as Clion C++ compiler
I'm trying to set GCC as Clion c++ compiler from settings, but I found many gcc files like : gcc, gcc-8, gcc-ar, gcc-nm, and I don't know which one to attach in c++ compiler in Toolchain.
I'm totally ...
1
vote
1
answer
420
views
How can I fix my CLion installation?
I can successfully run /opt/clion-2017.2.1/bin/clion.sh from where I installed it but how do I update what is shown in the launcher? In the launcher it still links to the old 2017.1.1.
1
vote
1
answer
1k
views
clion ubuntu navigate back
I use Clion. How can I navigate back if I follow links by pressing ctrl+mouse click? If I press ctrl+mouse click on a function, I come to the declaration. But how to I navigate back? On Windows I ...
1
vote
1
answer
274
views
What is the difference between starting a program from an unity icon and the command line?
I have a weird bug that only happens when I start clion from the icon. Clicking on the icon I get: ImportError: No module named catkin.environment_cache in the cmake window. When I start clion from ...
1
vote
0
answers
767
views
CLion with WSL try to run QT application (xcb can not be loaded)
I am trying to run the code from here https://github.com/vt4a2h/uml-tool and I found myself stuck with this error message:
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the ...
1
vote
0
answers
252
views
Ctrl-Shift-F doesn't work in CLion in KDE
Ctrl-Shift-F (find in files) doesn't work in CLion in KDE. How to fix?
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
...
1
vote
0
answers
2k
views
CLion CMake: arm-none-eabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
I've been struggling with this for ~2 days now and I can't seem to find the solution. I recently switched to a new laptop and installed Ubuntu 19.04, and now something with my c++ compiler is not ...
1
vote
0
answers
117
views
Installation of CliPP on Ubuntu 18.04
I am working on a C++ project and I want to include a JavaScript function (call JavaScript functions from C++) in my CLion project. I found the CliPP library that can do that, but the installation ...
1
vote
0
answers
38
views
Will Ubuntu-SDK as module for other frameworks
I use CLion. For me (and for most people, I suppose) QT Creator is not good choice for working. Will it be possible in the future to install Ubuntu-SDK to other programs (for example CLion)? Because ...
1
vote
0
answers
422
views
CLion ugly fonts
I have a problem with Clion fonts. They look really ugly. I tried different methods to fix that:
Urshulyak solution
JetBrains forum solution
AskUbuntu solution
I even installed infinality and ...
0
votes
2
answers
911
views
Compiling in JetBrains don't work
I used Eclipse CDT for college lectures, but today I found the solution for C/C++ by JetBrains.
But I can't compile because I don't know how to set the compiler.
0
votes
1
answer
4k
views
how to install the cmake with specific version on WSL ubuntu 20.04
I am currently trying to link my CLion to WSL, but CLion only supported the Cmake of version 3.20.x, not the latest version, so I wonder how to downgrade my Cmake (version 3.21.3) to 3.20.x on Ubuntu
...
0
votes
1
answer
7k
views
Internet through proxy in Ubuntu VirtualBox: works for apt and Firefox but not for other softwares
I installed a Ubuntu 16.04 VirtualBox and wrote the apt.conf file to access Internet via my proxy:
Acquire::http::proxy "http://userID:pwd@host:port";
And now I can update & install packets.
I ...
0
votes
0
answers
59
views
Snap CLion IDE exits on run
I installed snap package of CLion IDE, when I launch it from ULauncher it exits upon clicking run, however when I run it from the terminal it seems to work just fine, what could be the cause of this?
...
0
votes
1
answer
1k
views
Trying to run Clion but get "No JDK found. Please validate either CLION_JDK, JDK_HOME or JAVA_HOME environment variable points to valid
I'm trying to run Clion IDE on Ubuntu 22.04.
I installed JRE and I think I installed JDK by running:
sudo apt install -y openjdk-18-jdk
but when I run ./clion.sh I get:
No JDK found. Please validate ...
0
votes
1
answer
3k
views
Where did QT install to?
I am trying to set up a qt project in CLION. I installed qt using these commands
sudo apt-get install qtcreator
and
sudo apt-get install qtdeclarative5-dev
When you create a qt application in clion ...
0
votes
1
answer
83
views
The Window of CLion/NetBeans freezes as soon as I click any button
When installing clion, when I do ./bin/clion.sh, a window for installation would appear, but as soon as I click continue button the window freezes, but then I still can use other sofwares.
For ...
0
votes
1
answer
2k
views
Having troubles using Valgrind with WSL on CLion
Working on Windows 10, enabled WSL and installed Ubuntu.
WSL toolchain configured, I can build and run stuff on CLion, everything works perfectly except for Valgrind.
I used the path:
\\wsl$\Ubuntu\...
0
votes
0
answers
125
views
Ubuntu Clion CMake Error
I installed Clion but I am still now able to run my main hello world file.
Screenshot of error
Here is the whole error, hope an experienced can recognize give and give a solution.
0
votes
0
answers
368
views
CLion won't track compiler via WSL
downloaded compiler and everything. Tho for some reason it downloads only cmake 3.10 and I need 3.15. I updated it following this guide How do I install the latest version of cmake from the command ...
0
votes
0
answers
2k
views
problem when compiling c++ files with GCC compiler in clion Ubuntu
When I change the clion compiler in toolchain to gcc-7 or gcc, it gives me undefined reference to every thing in a simple hello world program.
this is my code :
#include <bits/stdtr1c++.h>
using ...
-1
votes
1
answer
707
views
Can't see volume when I run `ls` in teminal
this is my first problem in Ubuntu 16.04:
when I run ls in terminal as you can see
I can't see my volume. I have 315 GB and 104GB volumes
and when I want to make a project in C Lion I can't see my ...