Hudson cannot find cmake - c++

I have a problem to bluid my C++ project with Hudson and cmake. I use a slave machine to build my project and i have the error message.
MODULE: C:/Users/abenchaaben/Documents/Full/JCLib
Build dir : C:/Users/abenchaaben/Documents/Full/JCLib/cpp
Source dir : C:/Users/abenchaaben/Documents/Full/JCLib/cpp
Install dir :
[deploy_test] $ C:\Program Files (x86)\CMake 2.8\bin -version
The system cannot find the file specified
FATAL: Cannot run program "C:\Program" (in directory "C:\Users\abenchaaben\Documents\deploy_test"): CreateProcess error=2, Le fichier spécifié est introuvable
java.io.IOException: Cannot run program "C:\Program" (in directory "C:\Users\abenchaaben\Documents\deploy_test"): CreateProcess error=2, Le fichier spécifié est introuvable
what did i do wrong?

Probably you have to escape the string containing the path to the cmake executable. It tries to run C:\Program and treats the rest of the string as parameters.

Related

Error building C++ project in HaxeDevelop

I use HaxeDevelop 5.2 and Haxe 3.4.2. I tried to build simple Hello world app in HaxeDevelop. But failed.
Here is the log:
Running process: C:\Program Files (x86)\HaxeDevelop\Tools\fdbuild\fdbuild.exe "E:\temp\New Project14\New Project14.hxproj" -ipc 7de8e6ea-dcd6-4496-acea-c62337a09d79 -version "3.4.2" -compiler "C:\HaxeToolkit\haxe" -notrace -library "C:\Program Files (x86)\HaxeDevelop\Library"
Building New Project14
haxe -cp src -cpp "E:/temp/New Project14/bin" -main Main
Unix.Unix_error(21, "open_proc", "haxelib path hxcpp")
Build halted with errors (haxe.exe).
Done(1).
What is the possible reason for this error? When I used the build command directly in the cmd.exe, it didn't fail. I've asked about this issue on github, but nobody has given any answer. FlashDevelop also failed.

Error while installing ibm case manager 5.2.1 on windows server 2012

I’m using cmpit 5.2.1 on windows server 2012 to install ibm case manager 5.2.1, I’m having an error in step 34/38 in the installation.
In cpit_install_stdout:
Install-InvokeDescription: (34/38) configNexus.bat
invokeScript: C:\Program Files (x86)\IBM\cmpit\install-scripts\configNexus.bat
Cmd: "C:\Program Files (x86)\IBM\cmpit\install-scripts\configNexus.bat" "C:\Program Files (x86)\IBM\cmpit\install-scripts" "C:\Program Files (x86)\IBM\cmpit\decompressed" "C:\Users\Administrator\Desktop\IbmSoft" 64 "C:\Program Files (x86)\IBM\cmpit"
OUTPUT>====================
OUTPUT>Start configNexus.bat
OUTPUT>19:06
OUTPUT>setdirs running
OUTPUT>Start setdirs.bat
OUTPUT>"C:\Program Files (x86)\IBM\ECMClient\configure"
OUTPUT>Démarrage de l'exécution de toutes les tâches dans le profil NexusConfig.
OUTPUT>
OUTPUT>Update the FileNet P8 Client Connector Files *****
OUTPUT>
OUTPUT>Configure the Connection to Your LDAP Server
OUTPUT>Une erreur s'est produite lors de l'exécution de la tâche Configure the Connection to Your LDAP Server.
OUTPUT>L'exécution de la tâche a échoué avec les messages suivants :
OUTPUT>
OUTPUT>La configuration de l'authentification LDAP a échoué.La connexion au serveur LDAP a été établie.
OUTPUT>
OUTPUT>Pour obtenir des informations de connexion supplémentaires, voir le fichier journal :
OUTPUT>C:\Program Files (x86)\IBM\ECMClient\logs\nexus_configmgr_workspace\.metadata\.log
OUTPUT>Begin sleeping
ERROR>The system cannot find the path specified.
OUTPUT>End sleeping
OUTPUT>ERROR - configurejdbcecm.ok not found. configNexus failed. Refer to "C:\Program Files (x86)\IBM\cmpit\install-scripts\profiles\NexusConfig\status" for more details.
Process completed with exit code: -1
ERROR in InvokeScripts-function - Terminate the remaining scripts.
***Aborting InvokeScripts-Install function.
I do not read French, but Google Translate suggests that your LDAP configuration isn't properly configured.
If you look at the log you might get some more information:
C:\Program Files (x86)\IBM\ECMClient\logs\nexus_configmgr_workspace\.metadata\.log
The other error suggests that a file is missing:
The system cannot find the path specified.
ERROR - configurejdbcecm.ok not found.
Refer to "C:\Program Files (x86)\IBM\cmpit\install-scripts\profiles\NexusConfig\status"
You should fix the LDAP error before fixing the 'configurejdbcecm.ok' error; 'configurejdbcecm.ok' might be missing as a result of the LDAP problem.

Building via MSBuild fails when run as System User

We are using Visual Studio 2012 to build our C++ application
If I run from the commandline in my source folder:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release /p:Platform=Win32 Myproject2012.sln
it works fine. If it's run via the Buildscript of my buildserver (Atlassian bamboo) I get a lot of errors. The first two lines..
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: The "CL" task failed unexpectedly. [C:\data\bamboo-home\xml-data\build-dir\XXX-IMB-JOB1\XXX\common\common.vcxproj]
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(347,5): error MSB4018: System.TypeInitializationException: The type initializer for 'Microsoft.Build.Utilities.FileTracker' threw an exception. ---> System.IO.DirectoryNotFoundException: Das System kann den angegebenen Pfad nicht finden. (Exception from HRESULT: 0x80070003) [C:\data\bamboo-home\xml-data\build-dir\XXX-IMB-JOB1\XXX\common\common.vcxproj]
What can be the reason for this behaviour?
You can run the build outside of Bamboo as system if you use Sysinternals psexec.
psexec -i -s cmd.exe
Then try C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release /p:Platform=Win32 Myproject2012.sln
Then create a shell that have elevated permissions and retry.
Should help see if its a permissions thing or a path thing. Ive tried building C++ as system and it seems PK.
Or it could be this:
MSBUILD MSB4018 error
I found the problem
The System Account has a default temp directory which msbuild doesn't like
I changed it to "c:\temp" no it works!
If someone else has the problem, you can change it in the registry
HKEY_USERS\.DEFAULT\Environment

NDK Build for CoolReader

Im new to NDK, Installed cygwin and added to path folder too. From eclipse when tried to build by project contextmenu>build configuration>build selected got the below error in the console. What is lvstring.h . Im using windows 7, java 7, eclipse indigo
**** Build of configuration Default for project CoolReader ****
E:\exe\android-ndk-r8b\ndk-build.cmd all
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi-v7a/gdbserver
Gdbsetup : libs/armeabi-v7a/gdb.setup
Gdbserver : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
Gdbserver : [mipsel-linux-android-4.6] libs/mips/gdbserver
Gdbsetup : libs/mips/gdb.setup
Gdbserver : [x86-4.6] libs/x86/gdbserver
Gdbsetup : libs/x86/gdb.setup
"Compile++ thumb : cr3engine-3-1-0 <= cr3engine.cpp
In file included from jni/cr3engine.cpp:15:0:
jni/cr3java.h:18:22: fatal error: lvstring.h: No such file or directory
compilation terminated.
make: *** [obj/local/armeabi-v7a/objs/cr3engine-3-1-0/cr3engine.o] Error 1
**** Build Finished ****
the problem is fixed, seems to compile the native codes some lib from parent folder of project is required.
actually there are some lib files in repo which is not inside the project folder but outside it. so ndk build threw error, once it was changed it compiled by taking all dependency

Compiling source Qt 4.7.4 on windows 7 error qmake is not an internal or external command

Edit 2 -
I don't have the application file qmake in the /bin folder and this is the error I am getting.
Path environment variable : C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin\
Command Prompt - visual studio 2005
Source folder - C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4
Steps -
Downloaded src
Extracted the files to folder – qt-everywhere-opensource-src-4.7.4(C:\development\referencebuilds\qt\4.7.4)
configure.exe -opensource -fast -no-accessibility -no-qt3support -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-webkit -no-scripttools -platform win32-msvc2005 -D “_BIND_TO_CURRENT_VCLIBS_VERSION=1”
4.nmake
The error I get is
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7
.4\bin\qmake C:/development/referencebuilds/qt/4.7.4/qt-everywhere-opensource-sr
c-4.7.4/\projects.pro -o Makefile -spec win32-msvc2005
'C:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-src-4.7.4\bin\
qmake' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'C:\development\referencebuilds\qt\4.7.4\qt-everywher
e-opensource-src-4.7.4\bin\qmake' : return code '0x1'
Stop.
I know I dont have the app files for qmake and many other appfiles in my \bin folder. How do I get them?
Edit 1
Well, after trying out all the answers, the situation still remains the same. I think i should add more details to what I am doing.
I am copying bin files(.dll , Appplication, Application Extension, Incremental Linker File, Program Debug Database, ) from another machine and the version of Qt was 4.7.2
My questions are -
1. Do you see that as the cause for all the issues here? If yes, how do I get all the above files? If I just congigure as above and then run nmake I get
Microsoft (R) Program Maintenance Utility Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
C:\development\referencebuilds\qt\4.7.4\bin\qmake
C:/development/referen cebuilds/qt/4.7.4/\projects.pro -o Makefile
-spec win32-msvc2008
'C:\development\referencebuilds\qt\4.7.4\bin\qmake' is not recognized
as an inte rnal or external command, operable program or batch file.
NMAKE : fatal error U1077:
'C:\development\referencebuilds\qt\4.7.4\bin\qmake' : return code
'0x1' Stop.
1, Downloaded the source file named
qt-everywhere-opensource-4.7.4 and saved it in folder c:\development\referencebuilds\qt\4.7.4\
2, uncompressed the zip file and the files extracted into folder
c:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-4.7.4
3, Copied back all files from the folder
c:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-4.7.4 to c:\development\referencebuilds\qt\4.7.4\
4, ran
configure.exe -opensource -fast -no-acce ssibility -no-qt3support
-no-multimedia -no-audio-backend -no-phonon -no-phonon- backend
-no-webkit -no-scripttools -platform win32-msvc2008 -D
"_BIND_TO_CURRENT
_VCLIBS_VERSION=1"
5, nmake and now I get the following errors.
C:\development\referencebuilds\qt\4.7.4\bin\qmake
C:/development/referen cebuilds/qt/4.7.4/\projects.pro -o Makefile
-spec win32-msvc2008 Could not find mkspecs for your
QMAKESPEC(win32-msvc2008) after trying:
C:\Qt\4.7.2\mkspecs Error processing project file:
C:/development/referencebuilds/qt/4.7.4//projects .pro NMAKE : fatal
error U1077: 'C:\development\referencebuilds\qt\4.7.4\bin\qmake.EX E'
: return code '0x3' Stop.
I have no clue as to why it is refering to C:\Qt\4.7.2\mkspecs . How do I get over this error? what is exactly happening. How do I prevent such issues in future?
Your install directory is:
c:\development\referencebuilds\qt\4.7.4\qt-everywhere-opensource-4.7.4
Let's call it $(QTDIR). Now:
Extend your PATH variable to include $(QTDIR)\bin
Specify the QMAKESPEC environment variable to be win32-msvc2005
Open a Visual Studio command prompt to get the Visual Studio environment variables
Run configure
Run nmake
This procedure usually gets the Qt build to work for me.
Make sure that you don't have any existing QT directories in your path before you call configure and nmake.
It looks like you have a previous version of Qt installed. "C:\Qt\4.7.2\". And it would seem you have it setup in your system variables. Look for a variable called QTDIR in your system environment variables. Which is why you are getting an error, basically your 4.7.2 Qt is trying to build the new version.
Two options:
Un-install your old Qt via add/remove software in the control panel.
or
Remove your QTDIR system variable for the time being (will require a re-login) so that when you try to build from source it will use the correct binaries from the source folder.
Then just follow this guide:
http://en.wikibooks.org/wiki/Opticks_Developer_Guide/Getting_Started/Building_Qt_From_Source