nmake

How to speed up Compile Time of my CMake enabled C++ Project?

浪子不回头ぞ 提交于 2019-12-28 00:50:21
问题 I came across several SO questions regarding specific aspects of improving the turn-around time of CMake enabled C++ projects lately (like "At what level should I distribute my build process?" or "cmake rebuild_cache for just a subdirectory?"), I was wondering if there is a more general guidance utilizing the specific possibilities CMake offers. If there is probably no cross-platform compile time optimization, I'm mainly interested in Visual Studio or GNU toochain based approaches. And I'm

Compiling WWW::Curl on ActivePerl

狂风中的少年 提交于 2019-12-25 15:23:09
问题 I'm trying (desperately) to build / install the newest version of WWW::Curl onto my activeperl box (I'll explain in a moment why I don't use the PPM) I had to make some modifications as per the instructions found here: http://cpansearch.perl.org/src/SZBALINT/WWW-Curl-4.15/README.Win32 I also had to change the following line: From: open(H_IN, "-|" "gcc", "$curl_h") and $has_cpp++; To: open(H_IN, "gcc $curl_h") and $has_cpp++; I finally got perl Makefile.PL to work but now, when I run nmake, I

What am I missing from my environment variables for my linker to fail with LNK1181?

拈花ヽ惹草 提交于 2019-12-24 21:23:10
问题 I have a Qt project which I have had a debug console displayed whilst I am developing, I am about to ship the product to I removed the qmake console command: CONFIG += console However when I do that I get the following error: link /LIBPATH:"c:\Qt\4.5.0\lib" /NOLOGO /INCREMENTAL:NO /LTCG /MANIFEST /MANIFESTFILE:"./_obj/win32\Lynx.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken=

PyQt built on Windows: DLL load failed: The specified procedure could not be found

≯℡__Kan透↙ 提交于 2019-12-24 10:53:57
问题 I've tried to build PyQt from sources (with binary Qt 5.8.0 downloaded) on my Windows 7x64. I did it by this tutorial: https://stackoverflow.com/a/40779370/2726900 I've entered Visual Studio 2015 Command Prompt, activated vcvarsall.bat amd64 , activated qtenv2.bat . Than I configured, built and installed SIP (no errors). Than I configured PyQt (just added --sip C:/Python35/sip.exe ) and successfully built and installed PyQt. The filed like QtCore.pyi , QtCore.pyd , QtGui.pyi , QtGui.pyd and

Computed macro names

久未见 提交于 2019-12-24 08:31:54
问题 The GNU Make program proves the feature of computed names. I have to use Microsoft nmake program and need to check if either a macro has a specified value or is at least defined. The makefile defines a macro FOO with the value DEVICE . Further it can be that the macro PLAT_DEVICE is defined with the value 1 . In GNU make syntax you could use FOO=DEVICE PLAT_DEVICE=1 !if "$(PLAT_$(FOO))" == "1" !message I am here. !endif The value of the macro FOO defines what other macro is checked here.

Why does nmake ignore my implicit rule?

时光怂恿深爱的人放手 提交于 2019-12-24 03:22:08
问题 I need a little nmake makefile for my build process. The file types are TXT and PDF. Therefore I added a inference rule to my makfile. But nmake ignores it completely. What's wrong? Number=123 Targets=A-$(Number).pdf B-$(Number).pdf Sources=$(Targets:pdf=txt) .txt.pdf: copy $*.txt $*.pdf all: test build #this rule creates sample source files setup: echo hungry > A-$(Number).txt echo thursty > B-$(Number).txt #this rule checks the generated macros test: @echo Sources: $(Sources) @echo Targets:

How to escape white space in nmake

拜拜、爱过 提交于 2019-12-24 01:49:20
问题 I´m trying to use nmake call MSTest TEST="%VS90COMNTOOLS%..\IDE\MSTest.exe" test: $(TEST) /testcontainer:Test.dll When i run nmake i got: $ nmake test 'C:\Program' is not recognized as an internal or external command, Double quote doesn´t work right EDIT: Thanks "Eric Melski". I created something like: TEST_="%VS90COMNTOOLS%..\IDE\MSTest.exe" TEST="$(TEST_)" /nologo /noresults test: $(TEST) /testcontainer:Test.dll 回答1: Put double quotes around the usage of $(TEST) as well: TEST="

Passing preprocessor variable to nmake build environment

爱⌒轻易说出口 提交于 2019-12-23 14:49:48
问题 I am having issues with building driver using nmake on Win7 x64 build environment. I am defining a preprocessor variable and passing it over the command line using - build /nmake "USER_C_FLAGS=/DMyVersion=3" And the build log is - ... /DMyVersion=3 /typedil- /wd4603 /wd4627 .... So, I clearly see the variable as part of the compiler options. Now in a header fie, I do #define otherVersion 10 #ifdef MyVersion #undef otherVersion #define otherVersion MyVersion #endif #define FileVersion

Qt moc.exe not generating *.moc file

独自空忆成欢 提交于 2019-12-23 09:47:40
问题 I'm trying to build the qtestlib/tutorial1 example , but the testqstring.moc file isn't being generated when I run nmake (I'm running Qt 4.5.2 on Windows XP SP3). I copied testqstring.cpp from the tutorial directory to my build directory ( C:\sandboxes\testqstring ) and from the Qt command prompt ran vsvars32.bat file from my MS Visual Studio 8 installation to add the VS environment variables. According to the tutorial, I should run: > qmake -project "CONFIG += qtestlib" > qmake > nmake When

getting Cygwin to know about microsoft cl and nmake?

和自甴很熟 提交于 2019-12-23 05:16:33
问题 I am trying to compile the Fortran runtime library ( f2c ) in Cygwin using this command: nmake -f makefile.vc all Per instruction given in the package, first I have to let Cygwin know about Microsoft cl compiler and nmake . How can I do this in Cygwin? I already added vcvarsall.bat to the Cygwin.bat file but I don't know what I can do for nmake . At this moment, I get this error: -bash nmake: command not found 回答1: nmake executable path should be present in your $PATH environment variable.