Comments (5)
Just to add, if you get an abort with an invalid token (if you manage to figure it out or whatnot) when running the .exe, that's normal. Put a try catch around the bot.start()
if you would rather not get an abort.
from conan.
Another note to add, Conan does generate release versions of all the requirements too.
So it's even more confusing why Debug works here.
If you flip Release for Debug and Debug for Release as you follow the steps, you'll get the same outcome (but ofc flipped so binaries will be in Release).
from conan.
Hi @Jaskowicz1
Thanks for your report, I am having a look.
I also have some feedback about the branch and the conanfile.py
inside the library-conan
, where should I report it?
Quick feedback about:
Re-run cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release
VS is a multi-config generator, and as such CMAKE_BUILD_TYPE
shouldn't be neither defined nor used. This might be related to the issue, I am building the project, but if you can try to drop it and try again to see if it helps, that would be great too.
from conan.
Thank you for taking a look, @memsharded !
I also have some feedback about the branch and the conanfile.py inside the library-conan, where should I report it?
https://github.com/brainboxdotcc/DPP/pull/1066 would be the best place! That way the feedback is directly on the PR!
VS is a multi-config generator, and as such CMAKE_BUILD_TYPE shouldn't be neither defined nor used. This might be related to the issue, I am building the project, but if you can try to drop it and try again to see if it helps, that would be great too.
I'll certainly give another run without to see what happens!
from conan.
Some issues that I am seeing:
- The package is storing headers in the
dpp-10.0
folder:
Installing: C:/Users/..../.conan2/p/b/dpp2166487df2998/p/include/dpp-10.0/dpp/timer.h
-- Installing: C:/Users/.../.conan2/p/b/dpp2166487df2998/p/include/dpp-10.0/dpp/unicode_emoji.h
But the recipe is using the default package_info()
which defaults to include
folder.
The recipe should do something like:
def package_info(self):
self.cpp_info.includedirs = ["include/dpp-10.0"]
Likewise:
-- Installing: C:/Users/.../.conan2/p/b/dpp2166487df2998/p/lib/dpp-10.0/dpp.lib
So something like:
def package_info(self):
self.cpp_info.includedirs = ["include/dpp-10.0"]
self.cpp_info.libdirs= ["lib/dpp-10.0"]
I'd suggest to have a look to https://docs.conan.io/2/tutorial/creating_packages/define_package_information.html
Also, Conan has a built-in functionality, the test_package
that automatically runs this check without having to have another separate project to test that it has been correctly packaged. Please check https://docs.conan.io/2/tutorial/creating_packages/test_conan_packages.html. You can start from the conan new cmake_lib -d name=mypkg -d version=0.1
to have a fully working package and test_package
.
from conan.
Related Issues (20)
- [question] Is it possible to upload a package without adding it to the local cache first? HOT 2
- [question] Cross-compiling with arm toolchain and unit tests HOT 9
- [question] Prevent installation of Static dependencies if binary exists HOT 10
- [bug] unable to consume zlib while creating a package HOT 4
- [bug] Cannot build v2.2.2 with Python 3.12 HOT 1
- [feature] CMakeToolchain cacheVariables should have a type
- [question] CMAKE cannot find libraries added to cmakelists, except for zlib HOT 6
- [question] Interactions between cmake cache and find_package for config.cmake files provided by the package itself. HOT 1
- [question] how conan resolves shared library dependencies HOT 2
- [bug] TypeError: sequence item 0: expected str instance, NoneType found HOT 4
- [question] Failure on corrupted (empty) remotes.json HOT 1
- [bug] Failed to fetch correct commit HOT 3
- [bug] Conan config install fails HOT 3
- [bug] conan v2 package hash calculation is different from conan v1? HOT 2
- [question] conan 2 output to file HOT 2
- [bug] Cannot set requirements through extended class HOT 2
- [bug] ConanFile.run() expects command to be a string (not a list of strings), even when shell=False HOT 1
- [question] How to dynamically set channel attribute ? HOT 1
- [bug] Bad UX when trying to fetch deactivated Artifactory
- [feature] Use `pluggy` to take plugin-managemant to the next level HOT 2
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 conan.