Tag Info

New answers tagged

0

OK, i have done it by myself. I downloaded the current NVidia-CUDA-Toolkit. Then i shut down the X-server with: sudo service gdm stop Then a blackscreen appeared where I pressed: Ctrl + Alt + F1 I just logged into my account, cd'd to the folder where the toolkit was and ran it: sudo sh "name of toolkit".run After the installation i ...


0

This is strange to me since I did not install libsdl2-image-dev. Also when I try to view /usr/include/SDL2/ the folder doesn't even appear to exist which just adds to my confusion. apt-file searches the contents of available packages using a database, so it is hardly a surprise that it showed a package which you hadn't installed. I then tried to ...


2

It is not surprising that there are difficulties. Authors haven't provided the install scripts. So, we have to specify header and library locations manually: g++ -o programma ggg.cpp -I/home/girts/pokerstove/src/lib -l{peval,penum} -L/home/girts/pokerstove/src/build/lib/pokerstove/{peval,penum} And there is an error in the code of ggg.cpp, I think: ...


1

Add the path for the include files: $ g++ -o programma ggg.cpp -I/home/<your_username>/pokerstove/src/lib $ ./programma Hello World! -I<path_to_pokersove_headers> - To specify a directory to search for header files eg: $ find -name combinations.h ./pokerstove/src/lib/pokerstove/util/combinations.h therefore use a relative path: ...


1

This is ok: git clone https://github.com/andrewprock/pokerstove.git mkdir pokerstove/src/build cd pokerstove/src/build cmake .. make The binaries are in: ~/pokerstove/src/build/bin Run the binary with ~/pokerstove/src/build/bin/ps-eval


3

Since your real goal seems to be to automate whatever needs to be done to run your program, I suggest a different approach. Instead of writing a shell script, you can use a makefile. If you like, you can write a rule in your makefile for running your executable once it is built. You will then have two files--your C++ source code file and your makefile--and ...


1

set(CMAKE_AUTORCC ON) add_executable(${PROJECT_NAME} ${SRC_LIST} modules/ProjectName/resources.qrc)


0

qt5_add_resources(RESOURCES modules/ProjectName/resources.qrc) That thing converts qrc files into C++ files. Names of C++ files are stored in the RESOURCES variable. Executables and libraries are compiled from C++ files by using add_executable and add_library in CMakeFiles.txt. In the "QML app with C++ plugin (cmake)" project template the "C++ plugin" ...


2

The fix to the problem was reasonably simple, and makes me feel a little dumb. All I had to do was go into the directory that contains the file (with the terminal) then I type sudo ldconfig and, hey presto! It works like a charm. Apparently the problem occurred because the executable couldn't find the libraries, but from double clicking in nautilus, I didn't ...



Top 50 recent answers are included