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 :(
Related
I'm trying to build the compute cpp sdk of codeplay under Windows 10 with Visual Studio 2019 to target some NVidia card. So far I have generate the solution throw cmake precising ptx64 as the COMPUTECPP_BITCODE.
My issue is that after opening the solution with VS2019 I launch the build but it "never" ended, after several hours.
Here is the build log where it kept stuck
1>------ Début de la génération : Projet : accessors, Configuration : Release x64 ------
2>------ Début de la génération : Projet : async-handler, Configuration : Release x64 ------
3>------ Début de la génération : Projet : builtin-kernel-example, Configuration : Release x64 ------
4>------ Début de la génération : Projet : custom-device-selector, Configuration : Release x64 ------
5>------ Début de la génération : Projet : example-sycl-application, Configuration : Release x64 ------
6>------ Début de la génération : Projet : gaussian-blur, Configuration : Release x64 ------
7>------ Début de la génération : Projet : images, Configuration : Release x64 ------
8>------ Début de la génération : Projet : ivka, Configuration : Release x64 ------
1>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/accessors_accessors.cpp.sycl
3>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/builtin-kernel-example_builtin-kernel-example.cpp.sycl
4>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/custom-device-selector_custom-device-selector.cpp.sycl
7>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/images_images.cpp.sycl
5>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/example-sycl-application_example-sycl-application.cpp.sycl
6>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/gaussian-blur_gaussian-blur.cpp.sycl
8>Building ComputeCpp integration header file [...]/computecpp-sdk/build/samples/ivka_ivka.cpp.sycl
If anyone has any idea or suggestion it would be amazing for me. If you need any additional info do not hesitate to ask.
Thanks you in advance for your help
There is an abi mis-match when using ComputeCpp with VS 2019 since ComputeCpp is on Clang 7
You can work around this by setting the toolset to v140 and then setting a flag in the compiler
main.cpp ->Properties->Configuration Properties -> ComputeCpp SYCL Cpp->Device->Additional Options -D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH
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.
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.