Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Win32 VS2013 "libopencc" Project error #131

Closed
SONIC3D opened this issue Sep 8, 2015 · 1 comment
Closed

Win32 VS2013 "libopencc" Project error #131

SONIC3D opened this issue Sep 8, 2015 · 1 comment

Comments

@SONIC3D
Copy link

SONIC3D commented Sep 8, 2015

After running CMake with the parameters provided in readme file,the generated project of "libopencc" contains the following errors in all build profiles:

1.In Project Properties->General,the TargetName is started with install prefix string which is expected to be "opencc" only.

2.In Project Properties->Linker->Debugging,the "Generate Program Database File" constains wrong file path that combined two absolute dirs in one path.That will cause build error for the directory cannot be created.

3.The install process will copy .lib file of this project only.If it is built in dynamic library form(which is default option after running CMake).The .dll file will not be copied to /bin dir.

@EchterAgo
Copy link

I think the first two problems are caused by these lines in the main CMakeLists.txt:

if (WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX ${CMAKE_INSTALL_PREFIX})
set(CMAKE_STATIC_LIBRARY_PREFIX ${CMAKE_INSTALL_PREFIX})
endif (WIN32)

AFAIK this is the wrong way to do it and you should be copying the libraries separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants