Release build does not work - error with Eigen library?

It can be available at http://stackoverflow.com/questions/23856967/release-build-does-not-work-error-with-eigen-library

When I build my program in debug mode, everything works fine. However, when I switch to release build, I get the following errors. It seems that there is a problem with Eigen. Could anyone please help?

1>------ Build started: Project: qtdemo, Configuration: Release Win32 ------
1>  moc_qtdemo.cpp
1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\generatedfiles\release\../../qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory
1>  main.cpp
1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory
1>  qtdemo.cpp
1>c:\users\documents\visual studio 2012\projects\qtdemo\qtdemo\qtdemo.h(6): fatal error C1083: Cannot open include file: ‘Eigen/Dense‘: No such file or directory
1>  Generating Code...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

The include directories need to be set for both debug and release mode. (And, more generally, for whichever configuration you support).

This is because you may want different settings for a specific configuration mode. For example, you‘d want to link to a debug library for a debug build, or turn optimizations on for a release build, and so on.

This can be done under Visual Studio through Project --> "name of project" properties --> VC++ directories, and selecting in the top bar the configuration you want to change the settings of.

Also note that setting can be changed for all the configurations at the same time by selecting "All configurations", like shown in the following picture:

时间: 2024-11-10 00:17:24

Release build does not work - error with Eigen library?的相关文章

could not build module 'XXXXXXXX'或者error: expected identifier or '(' 。一堆奇怪的错误————错误根源

一堆奇怪的错误:1??could not build module 'XXXXXXXX' 2??error: expected identifier or '(' 3??EDIT Setting Precompile prefix header = No results in a bunch of syntax errors instead, in stuff like NSObject.h (and other 4??Foundation framework header) 5??EDIT U

fedota 20编译php checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. 错误

php-5.5.15 + mysql-5.5.27,编译php的时候报错,checking for mysql_set_server_option in -lmysqlclient... no configure: error: wrong mysql library version or lib not found. Check config.log for more information. 解决方法重新编译mysql,并把-DENABLE_DTRACE=0这项加进mysql的编译cmake

error $GOPATH: no library found in $GOPATH: rdkafka

安装confluent-kafka-go出错时,请使用brew安装pkg-config,手动go get安装的pkg-config还不行... 错误提示: go get -u github.com/confluentinc/confluent-kafka-go/kafka # pkg-config --cflags -- rdkafka error $GOPATH: no library found in $GOPATH: rdkafka error github.com: PKG_CONDIF

linux非root用户安装ncurses-devel依赖,解决configure: error: No curses library functions found

很明显,如果我们通过yum或rpm下载安装,始终无法绕开root用户,除非我们不用yum或rpm.是的,我们直接下载源码包,到ftp.gnu.org/pub/gnu/ncurses/我们可以下到最新的源码包ncurses-6.1.tar.gz,通过rz上传至非root用户wlf的soft目录下,回到根目录,我们把源码包解压: $ tar xzvf soft/ncurses-6.1.tar.gz 进入解压后目录,执行软件配置: $ cd ncurses-6.1 $ ./configure --pr

ANT build.xml 编译出错Error running javac.exe compiler

在运行ant脚本时,出现build.xml:97: Unable to find a javac compiler,意思是说java编译时出现了错误,但是我明明我eclipse都能运行啊,后来发现这个eclipse是google自己的eclipse,因此检查系统环境配置时并没有配置jdk的环境,因此首先配置jdk的环境配置,这个不多说,还有就是需要看看javac的路径,Window-->Preferences-->Java-->Installed JRES,如下图 发现只有jre环境,而

调用opencv时,使用Egien工具出现“error C2061: 语法错误: 标识符“Matrix””和“error C2653: “Eigen”:不是类或命名空间名称”该如何解决?

这个问题主要是由于头文件的编译问题引起的. 1.如果没有Eigen工具的,先下载Egien工具并配置. Egien可以去主页下载.配置时,打开你的c++工程属性页:配置属性->C/C++->常规->附加包含目录,然后添加你下载的Eigen的文件夹的路径即可.我的配置是: 2.配置好的,在编译时出现这种问题,主要是由于头文件的编译顺序问题. 如果按照下面这种顺序: #include <opencv2/core/eigen.hpp> #include <Eigen>

eigen library的添加

xcode里面,找到build settings 搜索search paths 在header search paths后面添加eigen这个文件夹(就是下层包含cmake,blas,Eigen的一个文件夹)的位置 VS http://stackoverflow.com/questions/15841991/installing-the-eigen-library-in-visual-c-2010

【转】Debug 运行正常,Release版本不能正常运行

http://blog.csdn.net/ruifangcui7758/archive/2010/10/18/5948611.aspx引言 如果在您的开发过程中遇到了常见的错误,或许您的Release版本不能正常运行而Debug版本运行无误,那么我推荐您阅读本文:因为并非如您想象的那样,Release版本可以保证您的应用程序可以象Debug版本一样运行. 如果您在开发阶段完成之后或者在开发进行一段时间之内从来没有进行过Release版本测试,然而当您测试的时候却发现问题,那么请看我们的调试规则1

xcode ERROR ITMS

1.ERROR ITMS-90046 /90085: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value '*' for key 'com.apple. 原因 : 生成的API 分析文件过大,系统不能在提交前,完成API使用信息的校验.