Comments (9)
thanks for the report. i need some more information in order to help you.
- what OS/distro?
- what CMake version?
- commands (and their outputs) you've executed after
git clone
?
from bear.
Here you go (OS X 10.9):
bashprompt:~>git clone https://github.com/rizsotto/Bear.git
Cloning into 'Bear'...
remote: Counting objects: 1552, done.
remote: Compressing objects: 100% (815/815), done.
remote: Total 1552 (delta 802), reused 1454 (delta 721)
Receiving objects: 100% (1552/1552), 291.05 KiB | 307.00 KiB/s, done.
Resolving deltas: 100% (802/802), done.
Checking connectivity... done
bashprompt:~>cd Bear/
bashprompt:Bear>mkdir build
bashprompt:Bear>cd build/
bashprompt:build>cmake ../src/
-- The C compiler identification is Clang 5.0.0
-- The CXX compiler identification is Clang 5.0.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for vfork
-- Looking for vfork - found
-- Looking for execve
-- Looking for execve - found
-- Looking for execv
-- Looking for execv - found
-- Looking for execvpe
-- Looking for execvpe - not found
-- Looking for execvp
-- Looking for execvp - found
-- Looking for execvP
-- Looking for execvP - found
-- Looking for execl
-- Looking for execl - found
-- Looking for execlp
-- Looking for execlp - found
-- Looking for execle
-- Looking for execle - found
-- Looking for _NSGetEnviron
-- Looking for _NSGetEnviron - found
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.8)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Username/Bear/build
bashprompt:build>make
Scanning dependencies of target bear
[ 10%] Building C object CMakeFiles/bear.dir/stringarray.o
[ 20%] Building C object CMakeFiles/bear.dir/protocol.o
[ 30%] Building C object CMakeFiles/bear.dir/main.o
/Users/Username/Bear/src/main.c:69:24: error: use of undeclared identifier 'DEFAULT_CONFIG_FILE'
.config_file = DEFAULT_CONFIG_FILE,
^
/Users/Username/Bear/src/main.c:70:24: error: use of undeclared identifier 'DEFAULT_OUTPUT_FILE'
.output_file = DEFAULT_OUTPUT_FILE,
^
/Users/Username/Bear/src/main.c:71:24: error: use of undeclared identifier 'DEFAULT_PRELOAD_FILE'
.libear_file = DEFAULT_PRELOAD_FILE,
^
/Users/Username/Bear/src/main.c:347:13: error: use of undeclared identifier 'BEAR_VERSION'
BEAR_VERSION);
^
/Users/Username/Bear/src/main.c:368:13: error: use of undeclared identifier 'DEFAULT_CONFIG_FILE'
DEFAULT_CONFIG_FILE,
^
5 errors generated.
make[2]: *** [CMakeFiles/bear.dir/main.o] Error 1
make[1]: *** [CMakeFiles/bear.dir/all] Error 2
make: *** [all] Error 2
bashprompt:build>which cmake
/usr/local/bin/cmake
bashprompt:build>cmake --version
cmake version 2.8.12.1
bashprompt:build>uname -a
Darwin bashprompt 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
bashprompt:build>brew --version
0.9.5
from bear.
thanks!
unfortunately i don't have any access to OSX systems.
and i do build this code in a separate build directory since i started this project.
so, can't really reproduce the issue.
from bear.
I'll take a look at it.
from bear.
Ben, that would be wonderful! :)
from bear.
Your cmake command should be:
cmake ..
from bear.
I am however seeing a different problem on OS X.
from bear.
I can build with cmake ..
. Sorry for the noise.
from bear.
thanks guys! i'm closing this ticket then...
Ben, you got a good eyes, i did not catch the '../src' :)
and please report the problem what you see (there is another open ticket for OSX already. ;))
from bear.
Related Issues (20)
- compile asan, but the content of compile_commands.json is empty HOT 4
- makeopts ignored HOT 3
- can't install bear without sudo HOT 2
- has no member named ‘always_print_primitive_fields’ HOT 7
- How can I create the compile_commands.json for the Bear project? HOT 3
- Combining compile & link with Clang results in erroneous entry HOT 3
- Empty compilation database when compiling OpenBSD kernel HOT 2
- bear::func_test failed 7 tests (3.1.4) HOT 8
- [Build failed] ld cannot find stdc++fs: ld: undefined reference to std::filesystem HOT 4
- Question - how to capture built in compiler options HOT 1
- How to support emcc compiler? HOT 1
- bear 3.1.4 hangs when proxy is enabled in ubuntu 24.04 HOT 3
- I get the error: "ERROR: ld.so: object '/usr/$LIB/bear/libexec.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored." HOT 3
- Build2 compatibility HOT 5
- Cannot open /usr/local/bin/bear: No such file HOT 1
- Bear does not preserve single quotes in command line macro definitions HOT 2
- Build problem with fmtlib 11
- Bear doesn't seem to detect MinGW calls on macOS HOT 2
- LSP: Unsupported option '-m68000' for target x86_64-pc-linux-gnu HOT 3
- bear in WSL2 failed: wrapper: failed with: gRPC call failed: failed to connect to all addresses (solved) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bear.