I downloaded the zip file of this page: http://sourceforge.net/projects/boost/files/boost/1.55.0/ to install Boost 1.55.0 in my computer (I use Windows 7) and I unpacked it in C:\boost_1_55_0.
But, I didn't know how to install it, so I found this page: http://www.boost.org/doc/libs/1_55_0/doc/html/bbv2/installation.html
When I type in cmd .\bootstrap.bat it show this message:
Building Boost.Build engine
"cl" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable
Failed to build Boost.Build engine
Then i try with bootstrap.bat mingw in cmd, it showed me this message:
Building Boost.Build engine
"gcc" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable
Failed to build Boost.Build engine
I don't know what to do.
Additional info:
I use Code::Blocks 13
Mingw is in C:\Archivos de programa\CodeBlocks\mingw
You are attempting to build boost using the visual studio compiler. You need to use the G++ compiler under mingw.
Here are the instructions.
Related
i've been stuck on this problem for hours, without finding any solutions. I'm currently trying to compile lua 5.3.4 for Emscripten for use in my project. ive hit a roadblock thought, I need to compile it to a liblua.a file which ill later use when doing the emcc command line. but theres problems. heres the console output and what i do. ive gotten it to output .o files already. how do i put these in the .a (since i assume thats what its doing)
E:\code\liblua>make generic CC="emcc -s WASM=1"
cd src && make generic
make[1]: se ingresa al directorio `E:/code/liblua/src'
ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o 1lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o
process_begin: CreateProcess(NULL, ar rcu liblua.a lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o lbitlib.o lcorolib.o ldblib.o liolib.o lmathlib.o loslib.o lstrlib.o ltablib.o lutf8lib.o loadlib.o linit.o, ...) failed.
make (e=2): El sistema no puede encontrar el archivo especificado. (system cannot find the specified file)
make[1]: *** [liblua.a] Error 2
make[1]: se sale del directorio `E:/code/liblua/src'
make: *** [generic] Error 2
what it says is that it cant find ar rcu, how do i use it on my system?
for reference, the system im trying to use can be found here https://github.com/vvanders/wasm_lua if its required
It looks like the makefile requires Un*x tools so I suggest:
Install Windows Subsystem for Linux 2 (WSL2).
Install the Ubuntu 20.04 distribution in WSL2.
Start a bash shell by double clicking the Ubuntu 20.04 LTS icon.
From the bash shell, install the tools needed. A minimal set for this whould be:
sudo apt install g++ binutils make libc-bin
... or for a more complete set of packages:
sudo apt install build-essential
Unpack the lua distribution (as yourself, not the root user) somewhere in your home directory and try building.
I want to exclude nuget packages from the source control, because we use our own custom packages and they change often so it generates too many unnecessary changes in the source control. Also because it seems to be the recommended way to work with packages and source control.
I followed the steps given at the link below, using the instructions with TFS:
https://learn.microsoft.com/en-us/nuget/consume-packages/packages-and-source-control
Automatic package restoration is enabled, but when I generate the solution, restoration fail because it try to restore Microsoft packages from our custom source instead of the nuget.org source, I don't understand why.
For example (sorry its in french):
La restauration des packages NuGet a échoué pour le projet PointOfSaleWebsite :
La version '3.2.3' du package 'Microsoft.AspNet.Razor.fr' est introuvable.
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\: Le package 'Microsoft.AspNet.Razor.fr.3.2.3' est introuvable dans la source 'C:\Program Files (x86)\Microsoft SDKs\NuGetPackages\'.
http://srv-tfs:8080/tfs/.../_packaging/.../nuget/v3/index.json: Le package 'Microsoft.AspNet.Razor.fr.3.2.3' est introuvable dans la source 'http://srv-tfs:8080/tfs/.../_packaging/.../nuget/v3/index.json'.
I tried to add this to the NuGet.Config, but still have the same errors:
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="OurCustomSource" value="http://srv-tfs:8080/tfs/.../_packaging/.../nuget/v3/index.json" />
</packageSources>
I also tried to run this command in the package manager console:
Update-Package -Reinstall
It fails with this error:
Update-Package : Certains packages NuGet sont manquants dans la solution. Les packages doivent être restaurés pour générer le graphique de dépendance. Restaurez les packages avant d'effectuer des opé
rations.
Au niveau de ligne : 1 Caractère : 15
+ Update-Package <<<< -Reinstall
+ CategoryInfo : InvalidOperation: (:) [Update-Package], InvalidOperationException
+ FullyQualifiedErrorId : NuGetMissingPackages,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand
Any idea why it try to restore from the wrong source ? or is it something wrong i'm doing to exclude packages from the source control ?
I read this: https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore#build-time-restore-in-visual-studio
Step 4 especially pointed me in the right direction, it turned out that I only had by mistake uncheked the nuget.org source from the visual studio options !!
I apologize for not having seen it earlier ! I'm ashamed, such a waste of time :(
I downloaded the latest versions of opencv 3.3.0 and opencv_contrib, did the cmake with CUDA support and the make gives me:
....
[ 80%] Built target opencv_xfeatures2d_pch_dephelp
[ 80%] Built target pch_Generate_opencv_xfeatures2d
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o
/home/cesar/programas/instaladores/OpenCV/opencv_contrib-master/modules/xfeatures2d/src/sift.cpp: In member function ‘virtual void cv::xfeatures2d::SIFT_Impl::detectAndCompute(cv::InputArray, cv::InputArray, std::vector<cv::KeyPoint>&, cv::OutputArray, bool)’:
/home/cesar/programas/instaladores/OpenCV/opencv_contrib-master/modules/xfeatures2d/src/sift.cpp:1156:9: error: ‘removeDuplicatedSorted’ is not a member of ‘cv::KeyPointsFilter’
KeyPointsFilter::removeDuplicatedSorted( keypoints );
^
modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/build.make:670: fallo en las instrucciones para el objetivo 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o'
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/src/sift.cpp.o] Error 1
CMakeFiles/Makefile2:21949: fallo en las instrucciones para el objetivo 'modules/xfeatures2d/CMakeFiles/opencv_xfeatures2d.dir/all'
I'm lost here. I tried updating my cmake from 3.5 to 3.8 and the building stops at the same point.
Thanks for any help!
It seems you got downmodded, yet have not received any feedback.
Your question, I believe, doesn't really belong on stackoverflow. opencv_contrib Is explicitly unstable. The API's for the contained modules are under development and are subject to change at any point in time. Build errors may well arise when building it, too.
I think you'd be better off trying to file a bug report with the module's developers.
removeDuplicatedSorted is just added to opencv master branch 3 days ago and is not back ported to 3.3.0 yet. However sift is updated to it. opencv_contrib tend to sync with master branch. it doesn't have a matching version branch/tag
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.
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.