You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I got a problem with building python egg file with --cpp_implementation
I've tried to build it with protobuf 3.15.0 on Windows 10
I got an error that the linker cannot find 16 symbols
My steps to reproduce :
git clone https://github.com/google/protobuf.git
cd protobuf
git checkout v3.15.0
cd cmake
mkdir -p build\solution
cmake -G "Visual Studio 16 2019" ../.. --config Release
In Visual Studio I set up a properties for libprotobuf and libprotobuf-lite as Runtime Library (Multi-thread DLL (/MD))
Add path to the PATH env: set PATH=%PATH%;C:\Path\to\protobuf\cmake\build\solution\Release
cd C:\Path\to\protobuf\python
Change line in setup.py from: libraries = ['protobuf'] to libraries = ['libprotobuf', 'libprotobuf-lite']
Change line in setup.py from: extra_objects = ['../src/.libs/libprotobuf.a', '../src/.libs/libprotobuf-lite.a'] to extra_objects = ['../cmake/build/solution/Release/libprotobuf.lib', '../cmake/build/solution/Release/libprotobuf-lite.lib']
Change line in setup.py from: library_dirs=['../src/.libs'], to: library_dirs=['../src/.libs', '../cmake/build/solution/Release'],
Hi,
I got a problem with building python egg file with --cpp_implementation
I've tried to build it with protobuf 3.15.0 on Windows 10
I got an error that the linker cannot find 16 symbols
My steps to reproduce :
git clone https://github.com/google/protobuf.git
cd protobuf
git checkout v3.15.0
cd cmake
mkdir -p build\solution
cmake -G "Visual Studio 16 2019" ../.. --config Release
set PATH=%PATH%;C:\Path\to\protobuf\cmake\build\solution\Release
cd C:\Path\to\protobuf\python
libraries = ['protobuf']
tolibraries = ['libprotobuf', 'libprotobuf-lite']
extra_objects = ['../src/.libs/libprotobuf.a', '../src/.libs/libprotobuf-lite.a']
toextra_objects = ['../cmake/build/solution/Release/libprotobuf.lib', '../cmake/build/solution/Release/libprotobuf-lite.lib']
library_dirs=['../src/.libs'],
to:library_dirs=['../src/.libs', '../cmake/build/solution/Release'],
python setup.py build –cpp_implementation
On the last step I got an error:
When I run directly the linker with these parameters in verbose mode I see as a result:
It looks like a searched symbols are not in the libraries. Do you have idea what is going on?
The text was updated successfully, but these errors were encountered: