lasote / conan-sdl2_ttf Goto Github PK
View Code? Open in Web Editor NEWConan sdl2 ttf package
Conan sdl2 ttf package
running conan test_package
on Windows, with Visual Studio 14 (2015) gives linker errors.
The conan-generated SDL2_ttf.lib
appears to export the whole of SDL2 as well as the ttf symbols. (see SDL2_ttf_lib_exports.txt )
I think this is something with VS2015 changing behaviour wrt linking in library dependencies from previous versions, but not sure. Nor sure how to resolve.
The SDL2_ttf.lib
from libsdl's website (https://www.libsdl.org/projects/SDL_ttf/) doesn't have these extra symbols and works fine.
Hi lasote,
I am having a bit of trouble using the package on OSX. I have a project referencing it, and when I try to run conan build on my project I receive the following error:
ERROR: Can't find a 'SDL2_ttf/2.0.14@lasote/stable' package for the specified options and settings
- Try to build from sources with "--build SDL2_ttf" parameter
So I add the --build SDL2_ttf parameter as suggested and then I get:
configure: error: in `/Users/me/.conan/data/SDL2_ttf/2.0.14/lasote/stable/build/8043b559fbc2e5bc0ce68d86b7c4af38278c594c/SDL2_ttf-2.0.14':
configure: error: C compiler cannot create executables
See `config.log' for more details
SDL2_ttf/2.0.14@lasote/stable: ERROR: Package '8043b559fbc2e5bc0ce68d86b7c4af38278c594c' build failed
SDL2_ttf/2.0.14@lasote/stable: WARN: Build folder /Users/me/.conan/data/SDL2_ttf/2.0.14/lasote/stable/build/8043b559fbc2e5bc0ce68d86b7c4af38278c594c
ERROR: SDL2_ttf: Error 19712 while executing cd SDL2_ttf-2.0.14 && env LIBS="-lSDL2 -lGL -lSDL2main -lfreetype -lbz2 -lpng16 -lz" LDFLAGS="-L/Users/me/.conan/data/SDL2/2.0.4/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/lib -L/Users/me/.conan/data/freetype/2.6.3/lasote/stable/package/8c654513bebae3521882910d3e2cd88844c82b0b/lib -L/Users/me/.conan/data/bzip2/1.0.6/lasote/stable/package/19a77801894e2653b36aa2027b1b7c8609c33464/lib -L/Users/me/.conan/data/libpng/1.6.23/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/lib -L/Users/me/.conan/data/zlib/1.2.8/lasote/stable/package/fe14d39e36e6d4ce8aa676b2f74667ad8d1fac38/lib " CFLAGS="-fPIC -s -DNDEBUG" CPPFLAGS=" " C_INCLUDE_PATH="/Users/me/.conan/data/SDL2/2.0.4/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/include":"/Users/me/.conan/data/freetype/2.6.3/lasote/stable/package/8c654513bebae3521882910d3e2cd88844c82b0b/include":"/Users/me/.conan/data/bzip2/1.0.6/lasote/stable/package/19a77801894e2653b36aa2027b1b7c8609c33464/include":"/Users/me/.conan/data/libpng/1.6.23/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/include":"/Users/me/.conan/data/zlib/1.2.8/lasote/stable/package/fe14d39e36e6d4ce8aa676b2f74667ad8d1fac38/include" CPP_INCLUDE_PATH="/Users/me/.conan/data/SDL2/2.0.4/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/include":"/Users/me/.conan/data/freetype/2.6.3/lasote/stable/package/8c654513bebae3521882910d3e2cd88844c82b0b/include":"/Users/me/.conan/data/bzip2/1.0.6/lasote/stable/package/19a77801894e2653b36aa2027b1b7c8609c33464/include":"/Users/me/.conan/data/libpng/1.6.23/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/include":"/Users/me/.conan/data/zlib/1.2.8/lasote/stable/package/fe14d39e36e6d4ce8aa676b2f74667ad8d1fac38/include" SDL2_CONFIG=/Users/me/.conan/data/SDL2/2.0.4/lasote/stable/package/1afe255e6fdac3a5b5a743c28b8764193ff179b3/lib/sdl2-config ./configure --with-freetype-exec-prefix="/Users/me/.conan/data/freetype/2.6.3/lasote/stable/package/8c654513bebae3521882910d3e2cd88844c82b0b/lib" --enable-shared=no --enable-static=yes
Instead of checking the logs, I have cloned the package from GitHub and tried to conan build it myself, in order to see what's wrong. I then received the following error:
ERROR: Unable to build it successfully
File "/Users/me/Source/conan-sdl2_ttf/conanfile.py", line 33, in build
self.build_with_make()
File "/Users/me/Source/conan-sdl2_ttf/conanfile.py", line 46, in build_with_make
sdl2_config_path = os.path.join(self.deps_cpp_info["SDL"].lib_paths[0], "sdl2-config")
File "/Users/me/Source/conan/conans/model/build_info.py", line 84, in __getitem__
return self._dependencies[item]
KeyError: 'SDL'
So far, I have not been able to figure out how to correct this. Any ideas?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.