Tag: c ++

如何在Geany Ubuntu 12.10中运行C ++

我想在Geany中运行C ++,但是我遇到了问题。 在我运行Pascal但无法运行之前。 然后我安装fpc成功运行正常。 我运行C ++,在终端出现错误: ./geany_run_script.sh: 5: ./geany_run_script.sh: ./untitled: not found —————— (program exited with code: 127) Press return to continue 我想问一下,如何在Geany中运行C ++? 我的问题还有其他插件吗? 请帮我。

如何在VS2017 VC ++ for Linux项目中链接libgattlib.so

我尝试使用驻留在Raspberry Pi 3板中的libgattlib.so静态库在VS2017(来自我的PC)中构建VC ++ for Linux(Raspbian)项目。 编译没有错误。 我可以使用例如\\ usr \ include可靠地包含在项目.h文件中。 我还需要一个libgattlib.so库文件的引用。 它位于Raspberry Pi 3上的/ usr / lib中,并且在VS2017 项目 – >配置属性 – > VC ++目录 – >库目录中设置了正确的链接( \\ usr \ lib ),并在项目 – >配置属性中设置了-lgattlib- > Linker-> Input-> Library Dependencies但链接器报告错误: 目标链接: 1> Linking objects 1> Invoking ‘ld’ 1> g++ -o “/home/pi/projects/Id2Monitor_For_Linux/bin/ARM/Debug/Id2Monitor_For_Linux.out” -Wl,–no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack /home/pi/projects/Id2Monitor_For_Linux/obj/ARM/Debug/main.o […]

如何将graphics.h添加到ubuntu中的代码块?

我已经安装了ubuntu软件中心的代码块,并且使用时间不错,没问题,但是当我尝试从graphics.h库访问函数时,我遇到错误,所以请帮我添加来自http://winbgim.codecutter的graphics.h .org /代码:: blocks。 伙计们,感谢你们!

无法在ubuntu 14.04中使用包含库 – > pokerstove

伙计们! 我刚刚在这个网站及其用户的帮助下,通过良好的指示包括了这个pokerstove库 我在我的主目录中运行了所有命令 围梁@围梁-的ThinkPad-E520:〜$ 安装所有必要的工具后,命令就是这些 git clone https://github.com/andrewprock/pokerstove.git mkdir pokerstove/src/build cd pokerstove/src/build cmake .. make 如你所见,我最终进入了这个目录 围梁@围梁-的ThinkPad-E520:〜/ pokerstove / src目录/编译$ 我成功运行了这个库的创建者建议运行的命令 girts @ girts-ThinkPad-E520:〜/ pokerstove / src / build $ bin / ps-eval 之前我还安装了boost库并测试它们工作得很好现在我尝试编译这个简单的ggg.cpp文件,其中也包含这些新的pokerstove库这里是代码 #include #include #include #include #include #include #include #include #include int main(){ std::cout << "Hello World!" << std::endl; } 当我尝试使用编译时 girts @ […]

Dlib 19.4不会在ubuntu 16.04上使用cmake构建

这是我在构建时遇到的错误: cmake –build . –config Release [ 23%] Built target dlib [ 23%] Linking CXX executable sqlite_ex CMakeFiles/sqlite_ex.dir/sqlite_ex.cpp.o: In function `std::__cxx11::basic_string<char, std::char_traits, std::allocator >::basic_string(char const*, std::allocator const&) [clone .isra.60]’: sqlite_ex.cpp:(.text+0x83): undefined reference to `std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_create(unsigned long&, unsigned long)’ CMakeFiles/sqlite_ex.dir/sqlite_ex.cpp.o: In function `table_exists(dlib::database&, std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)’: sqlite_ex.cpp:(.text+0x10a): undefined reference to `std::__cxx11::basic_string<char, std::char_traits, […]

找不到任何软件包由regex libstdc ++。so.5 libexpat.so.0在32位ubuntu 12.04

在安装软件时,我找不到stdc ++和lib expat包。 prayag@prayag:~/wink$ ./installer.sh Wink requires that the following packages be installed to run properly. Please install them and try again. libstdc++.so.5 libexpat.so.0 然后我尝试通过apt-get安装上面的软件包,但是我得到了 prayag@prayag:~/wink$ sudo apt-get install libstdc++.so.5 Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package libstdc++.so.5 E: Couldn’t find any package by regex ‘libstdc++.so.5’ […]

什么是包装期间的changelog.Debian.gz文件?

包装我遇到以下错误 dh_builddeb dpkg-deb: building package `remotedevicecontroller’ in `../remotedevicecontroller_1.0-1_i386.deb’. dpkg-source -b remotedevicecontroller-1.0 dpkg-source: info: using source format `3.0 (quilt)’ dpkg-source: error: unwanted binary file: debian/remotedevicecontroller/usr/share/doc/remotedevicecontroller/changelog.Debian.gz dpkg-source: error: detected 1 unwanted binary file (add it in debian/source/include-binaries to allow its inclusion). dpkg-buildpackage: error: dpkg-source -b remotedevicecontroller-1.0 gave error exit status 29 为什么文件是由debian-helper创建的,为什么它又要求将它包含在其他目录中呢?

带简单UI的Ubuntu Touch App(QMake) – 如何将C ++连接到QML

我注意到Ubuntu SDK现在有一个“带有简单UI的应用程序(QMake)”的模板。 这将创建一个C ++ Ubuntu应用程序项目,其中包含一个包含Label和Button的示例UI(需要一个15.04 Kit)。 我不明白的是如何让QML用户界面与C ++代码进行通信。 据我所知,main.qml文件没有连接到C ++代码。 我正在尝试将MythMote应用程序移植到Ubuntu Touch(另请参阅我之前的文章如何使用C ++后端和QML接口创建Ubuntu Touch应用程序 )并拥有一个可用作桌面应用程序的C ++应用程序(下面的代码)。 对于Ubuntu Touch应用程序,我需要一个QML接口来与C ++代码进行交互。 简而言之:用户单击QML接口上的一个按钮,该接口连接到C ++插槽,该插槽将文本消息发送到MythMote端口(例如:socket-> write(key up \ r \ n“))。 有人可以给我一个如何实现这个的提示吗? 我找不到Ubuntu Touch的工作示例。 以下是代码(未赢得选美比赛): main.cpp中 #include “mainwindow.h” #include int main(int argc, char *argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } mainwindow.h #ifndef MAINWINDOW_H #define MAINWINDOW_H […]

如何从启动板编译程序

我试着查看文档,但我无法弄清楚。 make和./configure不起作用所以我想我会问这里。 我正试图在13.10上安装这个( https://launchpad.net/livewallpaper )。 我把它解压缩到/ usr / local / src。 我已经安装了build essentials,checkinstall,cvs,mercurial,git-core和subversion。 我需要运行哪些终端命令来安装它? colton@Persistence:/usr/local/src/livewallpaper-0.4.1$ make make: *** No targets specified and no makefile found. Stop. colton@Persistence:/usr/local/src/livewallpaper-0.4.1$ ./configure bash: ./configure: No such file or directory colton@Persistence:/usr/local/src/livewallpaper-0.4.1$

make file error,试图安装intel power gadget

我希望另一个Ubuntu用户尝试运行英特尔电源小工具并知道我遇到了什么问题。 我正在尝试安装电源小工具,运行make文件我收到一条错误消息: /usr/lib/power_gadget/rapl.c:516: undefined reference to `log’ 此行指的是.c文件中的行: return (log((double)(time / RAPL_TIME_UNIT)) – A_LNF[F]) / LN2; 是否正确调用了此日志function? 我错过了对Ubuntu设置的依赖吗? 我的下载中是否可能缺少库文件? 在此先感谢您的帮助 问候 罗兹 编辑,make文件如下: CFLAGS=-g all: rapl_lib_shared rapl_lib_static power_gadget_static rapl_lib_shared: gcc $(CFLAGS) -fpic -c msr.c cpuid.c rapl.c gcc $(CFLAGS) -shared -o librapl.so msr.o cpuid.o rapl.o rapl_lib_static: gcc $(CFLAGS) -c msr.c cpuid.c rapl.c ar rcs librapl.a msr.o […]