Skip to content
New issue

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

Add additional libraries needed to link heimdall #293

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

baerrach
Copy link

I needed to add jasper and libwebp as I was getting linker errors:

$ make
[...]
../x86_64-w64-mingw32/bin/ld.exe: cannot find -ljasper
../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp

I needed to add jasper and libwebp as I was getting linker errors:

$ make
[...]
../x86_64-w64-mingw32/bin/ld.exe: cannot find -ljasper
../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp
@Benjamin-Dobell
Copy link
Owner

This seems very peculiar. Heimdall definitely doesn't depend on video or image codecs - at least not directly.

The only way they could be getting pulled in is if Qt5 has those dependencies, in which case Pacman should be resolving Qt5's dependencies.

@realchrisolin
Copy link

Likely, that is exactly what is requiring those dependencies. A viable workaround is installing the following packages:

pacman -S mingw-w64-x86_64-jasper mingw-w64-x86_64-libwebp

I summarized the changes here in case less experienced people come across this pull request.

@realchrisolin
Copy link

Also, for posterity:

$ make
[  6%] Built target pit
[ 53%] Built target heimdall
[ 56%] Automatic moc for target heimdall-frontend
[ 56%] Built target heimdall-frontend_autogen
[ 60%] Linking CXX executable ../bin/heimdall-frontend.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64 -mingw32/bin/ld.exe: cannot find -ljasper
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lwebp
collect2.exe: error: ld returned 1 exit status
heimdall-frontend/CMakeFiles/heimdall-frontend.dir/build.make:338: recipe for target 'bin/heimdall-frontend.exe' failed
make[2]: *** [bin/heimdall-frontend.exe] Error 1
CMakeFiles/Makefile2:198: recipe for target 'heimdall-frontend/CMakeFiles/heimdall-frontend.dir/all' failed
make[1]: *** [heimdall-frontend/CMakeFiles/heimdall-frontend.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants