silverqx / TinyORM

Modern C++ ORM library
https://www.tinyorm.org
MIT License
242 stars 25 forks source link

vcpkg ports error #10

Closed kunpen closed 1 year ago

kunpen commented 1 year ago

PS H:\Proglib\c\vcpkg\vcpkg> .\vcpkg.exe install tinyorm --overlay-ports="H:\Proglib\c\vcpkg\TinyORM\cmake\vcpkg\ports\tinyorm" Computing installation plan... libmysql[core]:x86-windows is only supported on '!(windows & x86) & !uwp'

kunpen commented 1 year ago

how to add existed port into vcpkg?

silverqx commented 1 year ago

Hi, this is really old code, I created it a year ago and didn't touch it since then. I didn't even remember why I also committed the libevent and libmysql ports 🫤, I think libevent and libmysql had some bugs and didn't work correctly.

The tinyorm port should work, there is not to much that can fail, the problem is if the qt5-base is going to build correctly with MySQL plugin, also Qt6 is already out, and would be much better to use it instead of Qt5.

I'm suggesting to remove the libevent and libmysql ports and change the Qt5 to Qt6 and it should work.

silverqx commented 1 year ago

how to add existed port into vcpkg?

When I played with it a year ago, then I copied it manually to the vcpkg/ports/ folder.

silverqx commented 1 year ago

I have updated the tinyorm port to the Qt6 version, also renamed old port to the tinyorm-qt5, and merged it to the main branch.

But I'm not able to build qt5-base or qtbase[sql], the harfbuzz:x64-windows package build fails 🫤 (to be exact, it builds ok, but fails during the installation step).

Currently, I'm only able to build qtbase[core], but can't qtbase[sql] and tinyorm depends on this sql module.

silverqx commented 1 year ago

So the harfbuzz problem was on my side, the problem was in the junction folder E:\vcpkg\ vs O:\vcpkg\, it can not be built if I was in the junction folder.

Now, I'm able to correctly build the tinyorm port, eg. all of these works:

vcpkg install tinyorm[core] qtbase[core] --recurse
vcpkg install tinyorm[core,sql-psql] qtbase[core] --recurse --dry-run
vcpkg install tinyorm[core,sql-psql] --recurse --dry-run