libuv / help

Need help with libuv? Post your question here.
28 stars 7 forks source link

How to generate a debug libuv.a if has not gyp_uv.py #171

Closed miser closed 4 years ago

miser commented 4 years ago

I generate a libuv.a file with the gyp_uv.py to debug the project, but the gyp_uv.py had been removed build remove support for gyp.

Now, how to generate a debug model libuv.a file ?

I try to build it, like below, and import into my hello world project, the debug pointer don't into libuv source, but before is ok.

$ sh autogen.sh
$ ./configure
$ make
$ make check
$ make install

or

$ mkdir -p build

$ (cd build && cmake .. -DBUILD_TESTING=ON) # generate project with tests
$ cmake --build build                       # add `-j <n>` with cmake >= 3.12

# Run tests:
$ (cd build && ctest -C Debug --output-on-failure)
bnoordhuis commented 4 years ago

I've moved this to libuv/help. I think cmake -DCMAKE_BUILD_TYPE=Debug .. is what you're looking for?

miser commented 4 years ago

@bnoordhuis Thank you, it's right.

 (cd build && cmake -DCMAKE_BUILD_TYPE=Debug ..)