vlc-qt giving error when compiling
-
Hello all
I downloaded vlc-qt (vlc-qt.tano.si) and i try to run a exemple (from here https://github.com/vlc-qt/examples). I downloaded the stable version for windows and i specified the path to those library in my src.pro. When i compile i gets some error that i dont understand. Note that it works fine on linux, I work with Qt editor.
C:\Users\Paul\Desktop\examples-master\build-simple-player-Desktop_Qt_6_2_0_MinGW_64_bit-Debug\src/../../simple-player/src/SimplePlayer.cpp:27: undefined reference to __imp__ZN11VlcInstanceC1ERK5QListI7QStringEP7QObject'
here is my .pro fil : https://pastebin.com/5z6iwT1P
I'm out of idea. Please someone help me.
Thanks
-
Hello all
I downloaded vlc-qt (vlc-qt.tano.si) and i try to run a exemple (from here https://github.com/vlc-qt/examples). I downloaded the stable version for windows and i specified the path to those library in my src.pro. When i compile i gets some error that i dont understand. Note that it works fine on linux, I work with Qt editor.
C:\Users\Paul\Desktop\examples-master\build-simple-player-Desktop_Qt_6_2_0_MinGW_64_bit-Debug\src/../../simple-player/src/SimplePlayer.cpp:27: undefined reference to __imp__ZN11VlcInstanceC1ERK5QListI7QStringEP7QObject'
here is my .pro fil : https://pastebin.com/5z6iwT1P
I'm out of idea. Please someone help me.
Thanks
@polohpi Did you compile vlc-qt by yourself?
If you're using vlc-qtm binaries - do you use same compiler as was used to build vlc-qt? -
thanks for your annswer @jsulm
I try at first to work on linux. It Worked. I try to compile my project for windows and never succeed. I try by reworking the project on windows to avoid cross plateform compiling.
I try to compile vlc-qt by myself on windows but i cant make cmake to work even by following what vlc-qt advise. Compiling on linux worked.
-
thanks for your annswer @jsulm
I try at first to work on linux. It Worked. I try to compile my project for windows and never succeed. I try by reworking the project on windows to avoid cross plateform compiling.
I try to compile vlc-qt by myself on windows but i cant make cmake to work even by following what vlc-qt advise. Compiling on linux worked.
@polohpi said in vlc-qt giving error when compiling:
I try to compile vlc-qt by myself on windows but i cant make cmake to work even by following what vlc-qt advise
So, you actually do not have vlc-qt libs because you cannot compile it? Then of course you will not be able to compile any project using vlc-qt. You first need to build vlc-qt. You can post your problems building vlc-qt here. Maybe we can help to solve those.
-
@polohpi said in vlc-qt giving error when compiling:
I try to compile vlc-qt by myself on windows but i cant make cmake to work even by following what vlc-qt advise
So, you actually do not have vlc-qt libs because you cannot compile it? Then of course you will not be able to compile any project using vlc-qt. You first need to build vlc-qt. You can post your problems building vlc-qt here. Maybe we can help to solve those.
@jsulm i have the lib but precompiled direclty from the vlc-qt website.
Here is the error that i have when compiling it myself on windows: https://pastebin.com/BaDDwS8x
This is the CmakeError.log in /build
-
Hi,
If you want to build with MinGW I would recommend using the version that matches the one used for Qt.
-
Hi,
If you want to build with MinGW I would recommend using the version that matches the one used for Qt.
@SGaist Thanks for the reply. The thing is that is cant even compile qt-vlc on windows. And cross compiling my .pro doenst work either on linux or i never found a tutorial for my case.
-
Hello all
I downloaded vlc-qt (vlc-qt.tano.si) and i try to run a exemple (from here https://github.com/vlc-qt/examples). I downloaded the stable version for windows and i specified the path to those library in my src.pro. When i compile i gets some error that i dont understand. Note that it works fine on linux, I work with Qt editor.
C:\Users\Paul\Desktop\examples-master\build-simple-player-Desktop_Qt_6_2_0_MinGW_64_bit-Debug\src/../../simple-player/src/SimplePlayer.cpp:27: undefined reference to __imp__ZN11VlcInstanceC1ERK5QListI7QStringEP7QObject'
here is my .pro fil : https://pastebin.com/5z6iwT1P
I'm out of idea. Please someone help me.
Thanks
-
@SGaist Thanks for the reply. The thing is that is cant even compile qt-vlc on windows. And cross compiling my .pro doenst work either on linux or i never found a tutorial for my case.
@polohpi said in vlc-qt giving error when compiling:
The thing is that is cant even compile qt-vlc on windows
Please try with MinGW provided by Qt installer to make sure you're using exactly same compiler as you use for Qt.
-
@polohpi According to what you reviewed vlc-qt only provides the 32-bit binaries for mingw but you are using mingw for 64-bit.
@eyllanesc indeed there is a 32 bit version for mingw and 64 bit version for MSVC. I didnt know what to choose. So if i try with MSVC how can i do it ?
-
@polohpi said in vlc-qt giving error when compiling:
The thing is that is cant even compile qt-vlc on windows
Please try with MinGW provided by Qt installer to make sure you're using exactly same compiler as you use for Qt.
@jsulm how can i specify cmake to use qt'mingw ? (do i get it right ?). I can make things on linux but i'm lost on windows when it come to compile stuff.
-
I have changed the compiler in qt editor to the msvc2015. I have a new error : "rc.exe" impossible to execute. Note that rc.exe is only in
C:\Program Files (x86)\Windows Kits\10\bin
UPDATE :
After pointing to a specific folder where rc.exe is, i add the dll to my release folder and tryed to launch my exe. Nothing happened. Even when i try to run it via qt editor it seems to crash. I dont know how to solve the issue.
-
I have changed the compiler in qt editor to the msvc2015. I have a new error : "rc.exe" impossible to execute. Note that rc.exe is only in
C:\Program Files (x86)\Windows Kits\10\bin
UPDATE :
After pointing to a specific folder where rc.exe is, i add the dll to my release folder and tryed to launch my exe. Nothing happened. Even when i try to run it via qt editor it seems to crash. I dont know how to solve the issue.
@polohpi said in vlc-qt giving error when compiling:
I have changed the compiler in qt editor to the msvc2015
Did you also install Qt for that compiler?
You can't mix binaries created using incompatible compilers. -
@polohpi said in vlc-qt giving error when compiling:
I have changed the compiler in qt editor to the msvc2015
Did you also install Qt for that compiler?
You can't mix binaries created using incompatible compilers.@jsulm i think so. I saw that i needed this compiler so i modify the install of qt to add msvc ect
-
@jsulm i think so. I saw that i needed this compiler so i modify the install of qt to add msvc ect
@polohpi said in vlc-qt giving error when compiling:
so i modify the install of qt to add msvc ect
I'm not sure what you mean, so I will ask again: did you install Qt for msvc2015?
There is no need to modify anything, just install Qt for msvc2015. -
@polohpi said in vlc-qt giving error when compiling:
so i modify the install of qt to add msvc ect
I'm not sure what you mean, so I will ask again: did you install Qt for msvc2015?
There is no need to modify anything, just install Qt for msvc2015.@jsulm i think i do installed it.