scons

Building Mesa for windows 7. Mesa 9.1

匿名 (未验证) 提交于 2019-12-03 02:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I went through all the steps on the compiling / installing page on Mesa's site, and read the FAQ. The final command that you send to scons for compilation throws errors within python scripts. This is my output. What am I doing wrong? Also if anyone has compiled dll's for mesa using up to date mesa and mingw, or VS2012, then please share! Here is my output, I haven't programmed python in a long time but it appears a map/dictionary doesn't contain the key/value pair. C:\Downloads\MesaLib-9.1.5\Mesa-9.1.5>scons platform=windows toolchain

SCons- *** No SConstruct file found

匿名 (未验证) 提交于 2019-12-03 02:30:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Installed SCons using # cd scons-2.3.0 # python setup.py install After Installation, when i try to run scons , got the below error. scons: * No SConstruct file found. File "/usr/local/lib/scons-2.3.0/SCons/Script/Main.py", line 905, in _main How to overcome this ??? 回答1: There are 3 ways to specify the SConstruct file when using SCons, as follows: Execute scons from the root of the project, where there should be a SConstruct file. This is the most standard way. From a subdirectory of the project, where there should be a SConsctruct file at

problem compiling libjingle

匿名 (未验证) 提交于 2019-12-03 01:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I downloaded and installed libjingle-0.5.2.zip, and according to the README also downloaded and installed swtoolkit.0.9.1.zip, scons-local-2.1.0.alpha.20101125.tar.gz, and expat-2.0.1.tar.gz, and got nrtp by cvs download. After overwriting my Makefile twice, attempting to follow the rather poorly-written README, I came up with the following Makefile that almost works: # First, make sure the SCONS_DIR environment variable is set correctly. SCONS_DIR ?= /usr/src/scons-local/scons-local-2.1.0.alpha.20101125/ #SCONS_DIR ?= /usr/src/scons-local/

Using scons to compile c++ file with -std=c++11 flag

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to compile a c++ file with -std=c=+11 option using scons. File : test.cc #include <unordered_map> int foo() { return 0; } File : SConstruct env = Environment() env.Append(CXXFLAGS = '-std=c++11') #print env['CXXFLAGS'] src_files = Split('test.cc') lib_name = 'test' Library(lib_name, src_files) I am getting the following error. It seems CXXFLAGS is not taking effect when g++ is invoked: g++ -o test.o -c test.cc In file included from /usr/include/c++/4.8.2/unordered_map:35:0, from test.cc:2: /usr/include/c++/4.8.2/bits/c++0x

SCons libraries and sub-libraries

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a hierarchical build system based on SCons. I have a root SConstruct that calls into a SConscript that builds a shared library and then into a different SConscript that builds an executable that depends on the shared library. So here's my question: my understanding of shared libraries on linux is that when you want to do the final ld link for the executable that will be using the shared lib, the shared lib has to be included on the executable's ld command line as a source to reference it (unless it's in a standard location in which

scons 中使用whole-archive

匿名 (未验证) 提交于 2019-12-03 00:22:01
http://scons.tigris.org/ds/viewMessage.do?dsForumId=1272&dsMessageId=717805 Gary Oberbrunner wrote: > Anyway, gotta get some real work done, hope that helps you get started. Yes, it did, thank you very much! Eventually, I found a very simple work- around that however is pretty specific to my case. I just use env.Append(LINKCOM= " -Wl,--allow-multiple-definition -Wl,--whole-archive -lcfsLib -Wl,--no-whole-archive" ) now, with the --allow-multiple-definition being required because I keep cfsLib listed in LIBS as usual ( for SCons's dependeny info), so that the linkers sees it twice, and

Scons入门简介

匿名 (未验证) 提交于 2019-12-02 23:43:01
Scons是什么 make 在Linux系统上做过c/c++开发的同学们都知道一个项目工程管理工具:make和Makefile。 make 这个工具自上个世纪 70 年代 Stuart Feldman 在贝尔实验室开发出以来,就一直是类 UNIX 程序员的最爱之一。 通过检查文件的修改时间,make 工具可以知道编译目标文件所要依赖的其他文件。在复杂的项目中,如果只有少数几个文件修改过,make 工具知道仅仅需要对哪些文件重新编译就可以确保目标程序被正确的编译链接。这样做的好处就是在编译中,不仅可以节省大量的重复输入,还可以确保程序可以被正确的链接,缩短编译的时间。 虽然如此,但是为 make 工具编写建造规则却不是一件容易的事。它复杂的配置规则,即使是有经验的开发者也望而生畏。 那么,今天介绍一个它的同类产品,也可以说是升级产品:Scons,它做的事情跟make一样,但更简单,更容易。 Scons Scons是一个开放源码、以Python语言编码的自动化构建工具,可用来替代make编写复杂的makefile。并且scons是跨平台的,只要scons脚本写的好,可以在Linux和Windows下随意编译。 SCons 的设计目标就是让开发人员更容易、更可靠和更快速的建造软件。 与传统的 make 工具比较,SCons 具有以下优点: 使用 Python 脚本做为配置文件 对于 C

ant+cpptasks vs. scons vs. make

偶尔善良 提交于 2019-12-02 19:07:08
I'm looking into scons and I just want to make sure I know what the alternatives are, before I invest a chunk of brain cells into something completely different. I've been using GNU make in the past but have never been particularly happy with it. Particularly: why isn't Ant used more often with C / C++ projects? (given that there's ant cpptasks ) I read a few posts that say that Ant is more oriented around Java (obviously), but what's the drawback to doing so? And why is scons so much better than make? I am working with a cross-compiler for TI DSPs, typically there are 20-50 cpp files in a

error: stray '\' in program in macro definition

↘锁芯ラ 提交于 2019-12-02 17:54:36
问题 while trying to compile this program with scons, we faced this error build/opt/zsim_harness.cpp:315:5: error: stray '\' in program build/opt/zsim_harness.cpp:315:5: error: stray '#' in program build/opt/zsim_harness.cpp: In function 'int main(int, char**)': build/opt/zsim_harness.cpp:310:24: error: 'ZSIM_BUILDVERSION' was not declared in this scope build/opt/zsim_harness.cpp:315:5: error: expected ')' before 'n' build/opt/zsim_harness.cpp:315:5: error: 'ZSIM_BUILDVERSION' was not declared in

How to build SCons projects with Eclipse CDT?

对着背影说爱祢 提交于 2019-12-02 17:12:54
We have a fairly large C/C++ project using scons for the building. I'd like to go at an attempt to build this through Eclipse-CDT. Anyone have any experience with this and can tell me the steps to set up scons as a builder. (NOT using the SConsBuilder plugin, it will not work with the Eclipse-CDT from Fedora-11). I've tried Waf in Eclipse CDT before now, SCons would be really similar. The solution was to create an empty Makefile project, then simply change "make" to "scons" in the options. On Windows that would probably need the scons.bat file in your path. That is not much better than