Admiral-Fish / PokeFinder

Cross platform Pokémon RNG tool
GNU General Public License v3.0
300 stars 73 forks source link

Errors when building from on macos (qt = 6.7, cmake = 3.29.2) #389

Closed DJVonrhein closed 3 weeks ago

DJVonrhein commented 2 months ago

My error reads:

PokeFinder/Source/Core/Gen5/Keypresses.cpp:77:30: Error: no member named 'popcount' in namespace 'std'; did you mean '__popcount'?

It looks like a problem of c++11 being used instead of c++20, even though the CMakeLists.txt in Source/Core sets it to c++20 and requires it.

Setting the root CMakeLists.txt to c++20 causes other errors. Any advice?

Admiral-Fish commented 2 months ago

What compiler version of clang you are using?

DJVonrhein commented 2 months ago

Thanks for the help. I was only on 11.0.3, and updating it let me finish building.

One last thing, after the macdeployqt command, I get:

Error: Could not find app bundle "PokeFinder.app"

changing the arg PokeFinder.app gives me a dmg but after some errors. I'm also unclear on how to go about mounting the dmg, unless this dmg is just broken

DJVonrhein commented 2 months ago

If you have any ideas they would be appreciated! I'm trying to test my script that searches for valid PIDs through brute force, and sadly I'm not experienced with building/bundling Qt projects

Admiral-Fish commented 2 months ago

Were you in the same folder that PokeFinder.app was created in?

DJVonrhein commented 2 months ago

When I executed the macdeployqt command from the root of the project directory, it said error: could not find Pokefinder.app

Admiral-Fish commented 2 months ago

Did you look for where PokeFinder.app was created after the build

DJVonrhein commented 2 months ago

Screenshot 2024-05-10 at 5 51 04 PM Afterwards, the whole project directory contains no PokeFinder.app (In screenshot, that's my second time running "cmake --build .")

Real96 commented 2 months ago

When I executed the macdeployqt command from the root of the project directory, it said error: could not find Pokefinder.app

You have to run the command inside Pokefinder.app folder, not on the root of the project

Admiral-Fish commented 2 months ago

I believe the PokeFinder.app file will end up in build/Source

Admiral-Fish commented 3 weeks ago

Closing for inactivity. Feel free to reopen if my last comment doesn't solve the problem