Resolving SBT, scala dependencies manually - build

I've just started using Rocket chip as a part of a new project in
my team. I've successfully downloaded Rocket chip generator, compiled
it as is and with some customized configurations, and it works fine.
However, the above listed works were done in my personal desktop where
it has no problem in accessing web proxies. However, at my work, there
are so many restrictions that makes things difficult, and one of them is
I am unable to build any of rocket projects since sbt fails to resolve build
dependencies. It always ends with the messages that it fails to access
some proxies and cannot download tool dependencies.
I tried to manually download and install sbt, scala or chisel and then retry
the build but it still fails.
Is there a way to manually download all the prerequisites for the rocket build, and then build them without any online accesses? (In other words, offline.)
Unresolved dependencies are as follows.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.typesafe.sbt#sbt-ghpages;0.5.3: not found
[error] unresolved dependency: com.eed3si9n#sbt-buildinfo;0.5.0: not found
[error] unresolved dependency: org.scala-lang#scala-library;2.10.6: not found
[error] unresolved dependency: org.scala-sbt#sbt;0.13.11: not found
[error] unresolved dependency: org.scala-lang#scala-compiler;2.10.6: not found

Related

Can not find some dependencies while building dremio-oss

https://github.com/dremio/dremio-oss/blob/master/pom.xml
After I clone the project,I try to build the project, but some dependencies are not found .How to find these dependencies,such as
the project accquire calicte:4.0.0-20210722102535-bda216e83f-dremio,which can not find in mavencenter
Any help?
I tried building dremio-oss on Windows the other day and there were no problems with resolving dependencies. You should include more information from the build log. You can also try using the "-U" option to force checking remote repositories which is useful if your local repository cache is out of date. Your error message also doesn't make sense since the correct version for Calcite is this one: https://github.com/dremio/dremio-oss/blob/master/pom.xml#L46

how do I test ng-add schematics

I decided to add an ng-add schematic to my library, since there are additional setup steps when installing it past running npm/yarn install. This way, users will be able to run ng add #myorg/mylib and the schematics will run
I am having difficulty test running the schematic. Angular Guide only mentions how to test generate schematics, not add ones. The problem is that the schematic is supposed to run when I install the library, however ng add command always seems to install the repository version, and not the local one even if I link my library with yarn link
Thanks for your help.
Ok, I got an answer before I submitted the question.
Do yarn link mylibrary, and then ng add mylibrary. ng add doesn't require the library not to be installed, it will try to install, but fail gracefully if the library is already installed with a warning
Skipping installation: Package already installed
Your ng-add script probably contains context.addTask(new NodePackageInstallTask());. Since link already "installed" the library in your node_modules, this will fail. The solution is to comment this line out while you're developing, and reenable it before publishing.

How to skip dependency with vcpkg?

I am trying to install cgal with vcpkg and getting an error that mpfr dependency can't be installed, because it's site is unavailable. Can I skip this dependency?
Additional packages (*) will be modified to complete this operation.
Starting package 1/88: mpfr:x86-windows
Building package mpfr[core]:x86-windows...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz...
-- Downloading http://www.mpfr.org/mpfr-4.0.2/mpfr-4.0.2.tar.xz... Failed. Status: 7;"Couldn't connect to server"
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:175 (message):
Failed to download file.
If you use a proxy, please set the HTTPS_PROXY and HTTP_PROXY environment
variables to "https://user:password#your-proxy-ip-address:port/".
Otherwise, please submit an issue at https://github.com/Microsoft/vcpkg/issues
One can control the dependencies with Build-Depends field in the CONTROL file. In your case ports\cgal\CONTROL
For more information; https://github.com/microsoft/vcpkg/blob/master/docs/maintainers/control-files.md#control-files
However you you remove this dependency most probable you won't manage to build cgal

How do I build Testcafe so that I can contribute to it?

My long term goal is to contribute functionality to Testcafe. Immediately, I'm trying to include it in my current node project so that I can see the changes. I've done the following so far.
Forked the Testcafe repo
npm linked the forked repo to my current project https://medium.com/#alexishevia/the-magic-behind-npm-link-d94dcb3a81af
changed the package.json file's main entry to src/index instead of lib/index
When I npm run dev in my project I hit this error (no problems including the actual npm installation of testcafe)
import { GeneralError } from './errors/runtime';
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:718:23)
My assumption (likely the impetus of my problem) based on this error is that I need the "built" version of testcafe (via npm run build). Unfortunately, npm run build isn't a script available in the testcafe repo, and I can't figure out how to do it otherwise.
What I've tried:
running the available npm scripts
reading gulp documentation, hoping it was gulp based
I'm in high friction scenario here, which is usually a sign that I've missed a crucial detail and I'm not even close to the right path.
To build TestCafe, execute the gulp build command from the fork root directory. It will build TestCafe into the lib folder.
UPD: In addition, refer to the Contributing to TestCafe page, which contains all information you may need to start contributing to TestCafe: Code of Conduct, build/test instructions, and more.

Error building tensorflow C++ shared library on windows

I am trying to build tensorflow as a standalone project and have been following this tutorial
http://www.stefanseibert.com/2017/10/tensorflow-as-dll-into-your-windows-c-project-with-gpu-support-and-cmake-v1-3/
but alternatively with cpu support
My environment setup versions
protobuf 3.6.1
tensorflow 1.10.0
tf.GIT_VERSION = b'v1.10.0-rc1-19-g656e7a2b34'
Here are the steps I used to generate the shared lib
Acquired source code from https://github.com/tensorflow/tensorflow.git
Have installed the dependencies since I do not use the python bindings, there is no need for SWIG, so I installed Git (version 2.15.1.windows.2) and cmake 3.11.1
I used the 64bit tools from Visual Studio 2015 since VS2015 is necessary to build the DLL. I should be able to open the “VS2015 x64 Native Tools Command Prompt”. This is needed so VS uses the 64 bit toolset.
Navigated in the commandline to the “tensorflow/contrib/cmake” subfolder of the source code and create a directory with “mkdir build”. Afterwards navigate to the fresh build folder with “cd build”.
Create a build solution: cmake .. -A x64 -DCMAKE_BUILD_TYPE=RelWithDebInfo -Dtensorflow_BUILD_CC_EXAMPLE=OFF -Dtensorflow_ENABLE_GRPC_SUPPORT=OFF -Dtensorflow_BUILD_CC_TESTS=OFF -Dtensorflow_BUILD_PYTHON_TESTS=OFF -Dtensorflow_ENABLE_GPU=OFF -Dtensorflow_WIN_CPU_SIMD_OPTIONS=/arch:AVX -Dtensorflow_BUILD_SHARED_LIB=ON
Everything went fine till this. To build the tensorflow.dll, I issued the following command: MSBuild /p:Configuration=RelWithDebInfo tensorflow.vcxproj
This throws an error: D:\work\tensorflow\tensorflow/core/lib/core/stringpiece.h(34): fatal error C1083: Cannot open include file: 'absl/strings/string_view.h': No such file or directory (
compiling source file D:\work\tensorflow\tensorflow\core\lib\core\coding.cc) [D:\work\tensorflow\tensorflow\contrib\cmake\build\tf_core_lib.vcxproj].
I fixed the above error with this: https://github.com/tensorflow/tensorflow/issues/22007#issuecomment-424553600.
Doing the above I ended up with this error: path.obj : error LNK2019: unresolved external symbol "void __cdecl absl::base_internal::ThrowStdOutOfRange(char const *)" (?ThrowStdOutOfRange#base_internal#absl##YA
XPEBD#Z) referenced in function "class std::basic_string,class std::allocator > __cdecl tensorflow::io::internal::JoinPathIm
I am not able to proceed further. Any workaround for this? Thanks!
lnk2019 error occurs when your directly you are using in your source code are not linked properly. Please add additional dependencies to your project.
Going to project properties
select C/C++ option
Add aditional dependencies
Go to Linker Option Below C/C++
Add additional Dependencies here.
It might be help full for you from getting out to LNK2019 problem
view this to understand LNK2019 error.
I met same issue, I think tensorflow new version doesn't support CMake, but we can solve the issues.
1. Seems the absl version in project folder is out dated, so I cloned the latest version of abseil-cpp from: https://github.com/abseil/abseil-cpp
2. Use cmake to build the abseil-cpp, it will be fast.
3. Add lib path to tensorflow dependency, the needed one will be D:\git\abseil-cpp\abseil-cpp\build\absl\base\Release\absl_absl_throw_delegate.lib
4. If you meet other linking error, you can find the function name in absl sources and find the library contain it.
Hope this can help you and people who may met this issue in future.