openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

Error compiling nightly on VS2022 cairolib missing?

Open sebleedelisle opened this issue 1 year ago • 13 comments

I'm getting the error : Cannot open input file libcairo.lib When I try to compile anything, even an empty project.

VS 17.7 Windows 11 (I'm terrible at windows so not sure if I'm doing something wrong)

cheers!

Seb

sebleedelisle avatar Feb 09 '24 20:02 sebleedelisle

Ah yes the nightly for VS still pointing to old libs

image

danoli3 avatar Feb 09 '24 22:02 danoli3

You can fix this yourself in the nightly checkout by running the

scripts/vs/download_latest_libs.sh

it will just download the latest libraries and extract them

danoli3 avatar Feb 09 '24 22:02 danoli3

Okay so Nightly:

cd $OUTPUT_FOLDER

$ROOT/scripts/dev/create_package.sh linux64 $lastversion master gcc6
$ROOT/scripts/dev/create_package.sh linuxarmv6l $lastversion master
$ROOT/scripts/dev/create_package.sh linuxaarch64 $lastversion master
$ROOT/scripts/dev/create_package.sh osx $lastversion master
$ROOT/scripts/dev/create_package.sh ios $lastversion master
$ROOT/scripts/dev/create_package.sh msys2 $lastversion master mingw64
$ROOT/scripts/dev/create_package.sh vs $lastversion master

ls -la
cd $ROOT

scripts/ci/package_builds.sh does this

Then create_package.sh

 #download external dependencies
    cd $pkg_ofroot/
    if [ "$pkg_platform" = "osx" ]; then
        scripts/osx/download_libs.sh
        scripts/emscripten/download_libs.sh -n
    elif [ "$pkg_platform" = "linux64" ]; then
        scripts/linux/download_libs.sh -a 64$libs_abi
        scripts/emscripten/download_libs.sh -n
    elif [ "$pkg_platform" = "linuxarmv6l" ]; then
        scripts/linux/download_libs.sh -a armv6l
    elif [ "$pkg_platform" = "linuxarmv7l" ]; then
        scripts/linux/download_libs.sh -a armv7l
    elif [ "$pkg_platform" = "linuxaarch64" ]; then
        scripts/linux/download_libs.sh -a aarch64
    elif [ "$pkg_platform" = "msys2" ]; then
        scripts/msys2/download_libs.sh -a $libs_abi
        scripts/emscripten/download_libs.sh -n
    elif [ "$pkg_platform" = "vs" ]; then
        scripts/dev/download_libs.sh -p vs
        scripts/emscripten/download_libs.sh -n
    elif [ "$pkg_platform" = "android" ]; then
        scripts/android/download_libs.sh
    elif [ "$pkg_platform" = "ios" ]; then
        scripts/ios/download_libs.sh
    fi

Does ^

I've fixed by fixing vs to use latest libs. Train of conciseness as this likely happen again need to remember to update this code

I can see an issue in nightly with emscripten on vs now though. Will need to get that fixed after this

danoli3 avatar Feb 09 '24 22:02 danoli3

Should be fixed now @sebleedelisle sebleedelisle

danoli3 avatar Feb 12 '24 02:02 danoli3

I'm having issues with windows also: win11 here, vs 2022, latest libs installed. and Screenshot 2024-02-12 at 11 49 13

dimitre avatar Feb 12 '24 14:02 dimitre

How latest did you install the libs?

Okay really need to start packaging the version numbers, build times, with binaries. I had a branch somewhere with version export into lib dir with JSON file so we can track these issues.

Try to delete the libs/ and redownload avian.

I’ll try again as well later today.

Also try debug / release And also make sure to clean both project and openframeworks protect now you have the error.

On Tue, 13 Feb 2024 at 1:55 am, Dimitre @.***> wrote:

I'm having issues with windows also: win11 here, vs 2022, latest libs installed. and Screenshot.2024-02-12.at.11.49.13.png (view on web) https://github.com/openframeworks/openFrameworks/assets/58289/d3aaa879-e523-415e-93c9-f899b8cc2810

— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/7892#issuecomment-1938833284, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGK2HAOGDBTPJZOHF5I25DYTIUPTAVCNFSM6AAAAABDCBGVNOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZYHAZTGMRYGQ . You are receiving this because you were assigned.Message ID: @.***>

danoli3 avatar Feb 12 '24 18:02 danoli3

Yes good idea. I started to use a simple version in projectGenerator and it is great when trying to debug something. it even gets recorded inside an xcode generated project or visual studio, something like:

"openFrameworksProjectGeneratorVersion": "34",

dimitre avatar Feb 12 '24 18:02 dimitre

cleaned up everything, project and core and libs folder, and installed again. not sure if it is relevant but it complains in third zip. is each zip a complete zip file?

libs

dimitre avatar Feb 12 '24 19:02 dimitre

Oh okay I think maybe @dimitre that branch was not at latest master when you ran the script!

You can see bleeding libs which means latest, however there should only be 2 zip files now

danoli3 avatar Feb 12 '24 21:02 danoli3

ok, are the scripts updated accordingly? ok that is kinda strange. I've pulled latest master into my PR before. I'll be testing again in master to see how it goes

dimitre avatar Feb 12 '24 22:02 dimitre

Yeah semi concerning, probably just the gremlins

danoli3 avatar Feb 12 '24 23:02 danoli3

image

3rd zip?

danoli3 avatar Feb 15 '24 16:02 danoli3

This worked for me last time I checked the nightly a couple days ago. Ok to close?

sebleedelisle avatar Feb 16 '24 02:02 sebleedelisle