hummatli / onvif-qt-server-client

Onvif QT Server Client is a sample for creating Onvif Server and Onvif Client with QT C++
217 stars 105 forks source link

error: cannot find -lOnvifDiscoveryLib #4

Closed 9friday closed 6 years ago

9friday commented 6 years ago

Hi, I am trying to run "ONVIF-QT-SERVER-CLIENT" using QT Creator on Ubuntu-17 64-bit machine. I encounter this error while building my project.

:-1: error: cannot find -lOnvifDiscoveryLib :-2: error: cannot find -lOnvifDeviceLib :-3: error: cannot find -lOnvifEventLib :-4: error: cannot find -lOnvifAnalyticsLib :-5: error: cannot find -lOnvifMediaLib :-6: error: cannot find -lOnvifPTZLib :-7: error: cannot find -lOnvifImagingLib :-8: error: collect2: error: ld returned 1 exit status

I have also uploaded a screenshot:

onvif-qt-server-client_screenshot

Please tell me if any more information is needed.

I would be really grateful if someone can help me resolve this error. Cheers :)

WesleyBlq commented 6 years ago

Have you solved this problem? add Q_DECL_EXPORT?

9friday commented 6 years ago

Actually, the issue has been resolved. Theere was an issue with the way it was being compiled. Thank you. :)

ra30 commented 6 years ago

Hi, Can anyone send me the working code. I am unable to compile the server code. @9friday :PLease can you share your working code. @taotaochanghe : In which files, should I add Q_DECL_EXPORT?

9friday commented 6 years ago

I am able to 'sendProbe'. But, I am unable to get any response from the other buttons and the code either hangs or crashes when I click on 'getDeviceInformation'.

On Fri 14 Sep, 2018, 1:43 PM N, notifications@github.com wrote:

Hi, Can anyone send me the working code. I am unable to compile the server code. @9friday https://github.com/9friday :PLease can you share your working code.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hummatli/onvif-qt-server-client/issues/4#issuecomment-421268368, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptQsI86weauXEHopkevbVL5xYVZx2ks5ua2U5gaJpZM4Wefqv .

ra30 commented 6 years ago

@9friday : I am unable to compile the server code. It gives me many linker issues.

9friday commented 6 years ago

Did you compile onviflibs?

On Fri 14 Sep, 2018, 3:50 PM N, notifications@github.com wrote:

@9friday https://github.com/9friday : I am unable to compile the server code. It gives me many linker issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hummatli/onvif-qt-server-client/issues/4#issuecomment-421309718, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptW1Yl5qbQ5Y8E16_QZHADYvFbf9iks5ua4LwgaJpZM4Wefqv .

ra30 commented 6 years ago

Yes..I did..It was compiled successfully.

ra30 commented 6 years ago

@9friday : Can you please send me your server code?

9friday commented 6 years ago

Exact same as the one in the repo.

On Fri 26 Oct, 2018, 8:56 AM N, notifications@github.com wrote:

@9friday https://github.com/9friday : Can you please send me your server code?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hummatli/onvif-qt-server-client/issues/4#issuecomment-433274558, or mute the thread https://github.com/notifications/unsubscribe-auth/AkCptZV8Ro5pZc_Q8V3ZxAOKEOtWMrikks5uooDlgaJpZM4Wefqv .

ra30 commented 6 years ago

@9friday : But, I ma unable to compile the code. It gives me many error. Eg: onvifserverthread.obj : error LNK2019: unresolved external symbol soap_bind referenced in function "protected: virtual void __cdecl OnvifServerThread::run(void)" (?run@OnvifServerThread@@MEAAXXZ) I have successfully compiled the onviflibs.

Can you please guide me or tell me the steps you followed before compiling the code?

ra30 commented 6 years ago

@9friday : I am unable to compile the server code. Wherever I use soap related function, it gives me error. E.g: char _endpoint= (char)soap_wsa_rand_uuid(serv); ----> Error msg: onvifserverthread.obj : error LNK2019: unresolved external symbol soap_wsa_rand_uuid referenced in function "protected: virtual void __cdecl OnvifServerThread::run(void)" (?run@OnvifServerThread@@MEAAXXZ) Could you please help me. Which compiler are you using?

ra30 commented 6 years ago

@9friday ,@taotaochanghe : I resolved the error. the client application lists the devices. Now if I want to set the information (e.g.: firmware version etc) of server, how can I do it?

hrdzkj commented 4 years ago

请问就下面这个问题,怎么解决呀? -1: error: cannot find -lOnvifDiscoveryLib :-2: error: cannot find -lOnvifDeviceLib :-3: error: cannot find -lOnvifEventLib :-4: error: cannot find -lOnvifAnalyticsLib :-5: error: cannot find -lOnvifMediaLib :-6: error: cannot find -lOnvifPTZLib :-7: error: cannot find -lOnvifImagingLib :-8: error: collect2: error: ld returned 1 exit status

hrdzkj commented 4 years ago

@9friday Please tell me how to solve this problem?

p3im4n commented 3 years ago

@9friday Please tell me how to solve this problem?

hi bulid for release and add this term to any pro file: DEFINES += SOAP_STD_EXPORTS them build one by one