We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v2.9.3+HEAD.a5da06f37,
window 11
bimg::imageParse(struct bx::AllocatorI *,void const *,unsigned int,enum bimg::TextureFormat::Enum,class bx::Error *) 无法连接问题,查了下cmakelist.txt
希望能附加上decode库
add_requires("bgfx")
bx::DefaultAllocator Texture::allocator; void* data = nullptr; uint32_t size = 0;
bx::FileReader reader; bx::Error err; if(bx::open(&reader, file, &err)) { size = (uint32_t)bx::getSize(&reader); data = bx::alloc(entry::getAllocator(),size); bx::read(&reader, data, size, &err); bx::close(&reader); } if(!err.isOk()) { bx::free(&allocator, data); throw std::runtime_error(err.getMessage().getPtr()); } bimg::ImageContainer* image = bimg::imageParse(&allocator, (const void*)data, size,bimg::TextureFormat::Count,&err);
Texture.cpp.obj : error LNK2019: ���������ⲿ���� "struct bimg::ImageContainer * __cdecl bimg::imageParse(struct bx::AllocatorI *,void const *,unsigned int,enum bimg::TextureFormat::Enum,class bx::Error *)" (?imageParse@bimg@@YAPEAUImageContainer@1@PEAUAllocatorI@bx@@PEBXIW4Enum@TextureFormat@1@PEAVError@4@@z)������ "public: static struct bgfx::TextureHandle __cdecl Texture::loadTexture(char const *,enum bimg::TextureFormat::Enum,bool)" (?loadTexture@Texture@@sa?AUTextureHandle@bgfx@@PEBDW4Enum@TextureFormat@bimg@@_N@Z) �������˸÷��� build\windows\x64\debug\MyEngine.exe : fatal error LNK1120: 1 �����������ⲿ����
The text was updated successfully, but these errors were encountered:
Bot detected the issue body's language is not English, translate it automatically.
Title: bgfx compilation problem
Sorry, something went wrong.
可以来个 pr 改下
I can do a PR to change it.
No branches or pull requests
Xmake 版本
v2.9.3+HEAD.a5da06f37,
操作系统版本和架构
window 11
描述问题
bimg::imageParse(struct bx::AllocatorI *,void const *,unsigned int,enum bimg::TextureFormat::Enum,class bx::Error *) 无法连接问题,查了下cmakelist.txt
![2024 07 01_郑捷 f17b4d583f0ff8b9e5e8e6643a5a2c08](https://private-user-images.githubusercontent.com/3435706/344631274-9cc2de31-7e3f-4486-a934-dccc246dc35a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDEzNjYsIm5iZiI6MTcyMDU0MTA2NiwicGF0aCI6Ii8zNDM1NzA2LzM0NDYzMTI3NC05Y2MyZGUzMS03ZTNmLTQ0ODYtYTkzNC1kY2NjMjQ2ZGMzNWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTYwNDI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTlhYzgzY2MyMzgyOTYwZGRkYzMwYmNjMjZjOTU5NTE5OTQyYTcwOGVjZGY3Mzc1NDgyZjE3MWRkZjI2Yzk2NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.wgYmfWDWx8i7t4_To_fp34BUsRT9ArSrAnXIWIiww3c)
![2024 07 01_郑捷 3793dd019aa06efcedb767d026c9777c](https://private-user-images.githubusercontent.com/3435706/344631395-054ddb57-1d55-4a1e-9cd7-9c4039024b25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1NDEzNjYsIm5iZiI6MTcyMDU0MTA2NiwicGF0aCI6Ii8zNDM1NzA2LzM0NDYzMTM5NS0wNTRkZGI1Ny0xZDU1LTRhMWUtOWNkNy05YzQwMzkwMjRiMjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDlUMTYwNDI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWZjNTg2Y2U2YTU5Mjg2MGJlYjA1ZmI3YjM3ZDhkOTRhMmQ3NzU4YTgwNTQzZTA3NjBmZWRlYzE4ZmZkYjY0YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.oR577hb5Xjwi95xq5yms8WnzWv7ypTDmfT_nruBKWE8)
期待的结果
希望能附加上decode库
工程配置
add_requires("bgfx")
bx::DefaultAllocator Texture::allocator;
void* data = nullptr;
uint32_t size = 0;
附加信息和错误日志
Texture.cpp.obj : error LNK2019: ���������ⲿ���� "struct bimg::ImageContainer * __cdecl bimg::imageParse(struct bx::AllocatorI *,void const *,unsigned int,enum bimg::TextureFormat::Enum,class bx::Error *)" (?imageParse@bimg@@YAPEAUImageContainer@1@PEAUAllocatorI@bx@@PEBXIW4Enum@TextureFormat@1@PEAVError@4@@z)������ "public: static struct bgfx::TextureHandle __cdecl Texture::loadTexture(char const *,enum bimg::TextureFormat::Enum,bool)" (?loadTexture@Texture@@sa?AUTextureHandle@bgfx@@PEBDW4Enum@TextureFormat@bimg@@_N@Z) �������˸÷���
build\windows\x64\debug\MyEngine.exe : fatal error LNK1120: 1 �����������ⲿ����
The text was updated successfully, but these errors were encountered: