how to build mongodb-cxx-driver in win - windows

I followed instruction on https://mongodb.github.io/mongo-cxx-driver/mongocxx-v3/installation/, but I blocked at STEP4, it says:
CMake Error at CMakeLists.txt:135 (generate_export_header):
Unknown CMake command "generate_export_header".
I found this command exists for a long time. I tried cmake3.7rc1 and rc3, but error all the time.
How can I build bsoncxx?

just go to that CMakeLists.txt line 134 and add a new line with following code
include(GenerateExportHeader)
maybe it was included by some dependency in older versions

Related

bazel build failed after updated command line tool in Mac

Recently I updated command line tool in my Mac as required, but after that, my bazel build is not working, can you help advise how to fix it? thanks in advance
ERROR: /private/var/tmp/_bazel_me/57d181a2c7179aa428276012ffbf756a/external/com_google_protobuf/BUILD:135:1: undeclared inclusion(s) in rule '#com_google_protobuf//:protobuf':
this rule is missing dependency declarations for the following files included by 'external/com_google_protobuf/src/google/protobuf/stubs/mathlimits.cc':
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stddef.h'
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/__stddef_max_align_t.h'
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/float.h'
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stdint.h'
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/stdarg.h'
'/Library/Developer/CommandLineTools/usr/lib/clang/10.0.0/include/limits.h'
Target //java/com/myproject/target:build-deployment failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 5.268s, Critical Path: 2.42s
FAILED: Build did NOT complete successfully
Similar issue to: bazel "undeclared inclusion(s)" errors after updating gcc
(Resolved with bazel clean --expunge)

Error while installing Alien::XGBoost library

I'm unable to install the Alien::XGBoost library using the default installation of Strawberry Perl on Windows 10. I'm using the 64-bit version of Strawberry Perl.
When installing Alien::XGBoost, I receive an error on line 49 in the Alien/Build/CommandSequence.pm file as shown below.
gmake[1]: Leaving directory 'C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/_alien/build_wYwS'
Alien::Build::CommandSequence> + md "C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/dynamic"
Alien::Build::CommandSequence> + md "C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/bin"
Alien::Build::CommandSequence> + copy xgboost.exe C:/STRAWB~1/cpan/build/Alien-XGBoost-0.04-1/blib/lib/auto/share/dist/Alien-XGBoost/bin/
The syntax of the command is incorrect.
external command failed at C:/Strawberry/perl/site/lib/Alien/Build/CommandSequence.pm line 49.
gmake: *** [Makefile:2881: _alien/mm/build] Error 2
PABLROD/Alien-XGBoost-0.04.tar.gz
C:\STRAWB~1\c\bin\gmake.exe -- NOT OK
Stopping: 'install' failed for 'Alien::XGBoost'.
The author of the library just confirmed it was a bug. His statement is below. I installed the previous version and it worked perfectly.
Thanks for reporting this!!
It's a bug! I forgot to quote the path.
As you can see both md commands have the path double quoted (""), but not the copy command.
I'm working to fix it and also I'm going to get travis and appveyor integrations to avoid this in the future.
This weekend this will be fixed. Meanwhile please install the previous version:
cpanm PABLROD/Alien-XGBoost-0.03.tar.gz

"generate-pch command failed with exit code 1" when making a new Xcode scheme

I'm following the instruction here http://www.teratotech.com/blog/xcode-7-steps-to-easily-switch-between-multiple-environments/ to generate different schemes for different environments..
I created a testing configuration and created a new scheme to use that configuration. However, when I build and run, I'm getting this error:
<unknown>:0: error: generate-pch command failed with exit code 1 (use -v to see invocation)
error: 'AFNetworking/AFNetworking.h' file not found
#import <AFNetworking/AFNetworking.h>
1 error generated.
<unknown>:0: error: failed to emit precompiled header '/var/folders/f2/6j4b4kz54xy1vf_2gdlnrllc0000gn/T/My-Project-Header-47bffb.pch' for bridging header '/Users/me/Dev/my-project/My-Project-Header.h'
When I build with my original scheme, everything's fine... I only have 1 target. Am I missing anything?
EDIT: I'm using Cocoapods to manage my dependencies, if that makes any difference.
i solved this issue by running below commands
$ pod repo update
$ pod install
Usually such issue happens when project directory is changed or copied form some other machine.

Getting wrong when installing tensorflow from source

I had been trying to install tensorflow for a few day. However, cuda 7.5 is the version that tensorflow r0.10.0 supports default. So I can only install it from source. But I came after the following problem which bother me a lot.
.....
INFO: Reading options for 'clean' from /home/lhx/tensorflow-r0.10/tools/bazel.rc:
Inherited 'build' options: --force_python=py2 --host_force_python=py2 --python2_path=/usr/bin/python --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --define PYTHON_BIN_PATH=/usr/bin/python --spawn_strategy=standalone --genrule_strategy=standalone
Unrecognized option: --host_force_python=py2
ERROR: /home/lhx/tensorflow-r0.10/WORKSPACE:18:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/lhx/tensorflow-r0.10/WORKSPACE:22:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: WORKSPACE file could not be parsed.
ERROR: package contains errors: third_party/boringssl.
ERROR: no such package 'external': Package 'external' contains errors.
Configuration finished
I just can't figure out what is going wrong and I have been trying for so long.
I experienced similar errors when my bazel was too outdated. You can try newer bazel version.

Trying to build dia on Windows with MinGW

I'm trying to build dia on my windows system with the MinGW toolkit.
What I did:
Downloaded GTK all-in-one package and unpackged it to C:\gtk and did the setup described in the readme.
Downloaded intltool-0.50.2 and unpacked it into the C:\gtk dir
Added gtk's bin directory to PATH environment variable
Checked out dia into C:\dia\
Opened a command line with admin privileges
Opened a bash in /c/dia/ and typed autogen.sh
The Script is running until it tries to execute the macro IT_PROG_INTLTOOL(...)
./configure: line 15572: syntax error near unexpected token `0.35.0'
./configure: line 15572: `IT_PROG_INTLTOOL(0.35.0)'
When I go to configure.ac and comment the line (I know I shouldn't do so, just for test purposes) IT_PROG_INTLTOOL([0.35.0]) the next macro error comes up regarding PKG_CHECK_MODULES.
./configure: line 15577: syntax error near unexpected token `GMODULE,'
./configure: line 15577: `PKG_CHECK_MODULES(GMODULE, gmodule-2.0 gobject-2.0)'
As far as I can see, all these required libs (intltool, gmodule, pango, freetype, pkg-config, ...) are installed and can be found. But why do these macros not work?
It looks like the configure script was regenerated and there were some errors while it was generated.
You could try touch(1)'ing (however this is done on Windows...) files to avoid that the buildsystem tries to regenerate configure
Make sure your autotools are all installed and that autoreconf does not spit out any warnings
There are binary packages for dia on Windows available http://dia-installer.de/index.html.en

Resources