These are chat archives for buddhi1980/mandelbulber2

13th
Nov 2016
Sebastian Jennen
@zebastian
Nov 13 2016 14:46
windows build over ci not working right now, though cmake still compiles fine under linux. maybe this has something to do with changes to forward declartions, which msvc is not capable of resolving correct?https://ci.appveyor.com/project/zebastian/mandelbulber2-s84yl/build/job/ouqs23pty27yqcn0
error is: (Link target) ->
interface.obj : error LNK2001: unresolved external symbol "public: thiscall cRenderSSAO::cRenderSSAO(class cParamRender const ,struct sRenderData const ,class cImage *)" (??0cRenderSSAO@@QAE@PBVcParamRender@@PBUsRenderData@@PAVcImage@@@Z) [C:\projects\mandelbulber2-s84yl\mandelbulber2.vcxproj]
lights.obj : error LNK2001: unresolved external symbol "double
cdecl CalculateDistance(class cParamRender const &,class cNineFractals const &,struct sDistanceIn const &,struct sDistanceOut ,class sRenderData )" (?CalculateDistance@@YANABVcParamRender@@ABVcNineFractals@@ABUsDistanceIn@@PAUsDistanceOut@@PAVsRenderData@@@Z) [C:\projects\mandelbulber2-s84yl\mandelbulber2.vcxproj]
render_ssao.obj : error LNK2001: unresolved external symbol "public: __thiscall cSSAOWorker::cSSAOWorker(class cParamRender const ,struct cSSAOWorker::sThreadData ,struct sRenderData const ,class cImage )" (??0cSSAOWorker@@QAE@PBVcParamRender@@PAUsThreadData@0@PBUsRenderData@@PAVcImage@@@Z) [C:\projects\mandelbulber2-s84yl\mandelbulber2.vcxproj]
C:\projects\mandelbulber2-s84yl\Release\mandelbulber2.exe : fatal error LNK1120: 3 unresolved externals [C:\projects\mandelbulber2-s84yl\mandelbulber2.vcxproj]
791 Warning(s)
4 Error(s)
do you have some ideas how to resolve this?
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:04
Maybe this one is a problem: Warning C4099: 'sRenderData': type name first seen using 'class' now seen using 'struct' [C:\projects\mandelbulber2-s84yl\mandelbulber2.vcxproj]
I'm going to change all occurences to struct sRenderData in all forward declarations
Then we will see if this will help
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:11
Try now. I have just commited changes
Sebastian Jennen
@zebastian
Nov 13 2016 16:12
Thats probably it, anyway the declaration should be consistent.
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:14
What you think about problems with QtAudioDecoder?
I'm going to use libsoundfile until this problem will be solved in Qt
Sebastian Jennen
@zebastian
Nov 13 2016 16:17
what is the problem? audio not opening? do you get any warnings?
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:20
There is an error: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiodecode"
but the problem is only under Windows
Sebastian Jennen
@zebastian
Nov 13 2016 16:21
btw: windows build for first build configuration finished, successfully, so this is fixed
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:22
I have copied all necesary DLLs, but it cannot use Windows Media Foundation)
In the email I have sent you more details about actual problems in QtMultimedia
Sebastian Jennen
@zebastian
Nov 13 2016 16:24
http://stackoverflow.com/questions/22783381/qaudiodecoder-no-service-found
seems to be wmf as audio backend only supported for msvc
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:25
This is what I have already read. If this is true we are limited to use msvc compiler
Are you able to test if it works with msvc?
Sebastian Jennen
@zebastian
Nov 13 2016 16:26
appveyor will build with msvc, i can test the artifacts, when they are ready.
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:28
In Keyframe Animation dock there is a temporary button to load audio file. In console output you should see if mp3 is decoded
There will be visible something like this (progress of decoding of audio buffers)
Debug: 36.4218 % 5568768 126.276
Debug: 36.4294 % 5569920 126.302
Debug: 36.4369 % 5571072 126.328
Debug: 36.4444 % 5572224 126.354
Debug: 36.452 % 5573376 126.38
Debug: 36.4595 % 5574528 126.407
Debug: 36.467 % 5575680 126.433
Debug: 36.4746 % 5576832 126.459
Debug: 36.4821 % 5577984 126.485
Debug: 36.4896 % 5579136 126.511
Debug: 36.4972 % 5580288 126.537
Debug: 36.5047 % 5581440 126.563
Debug: 36.5122 % 5582592 126.589
Debug: 36.5198 % 5583744 126.616
Debug: 36.5273 % 5584896 126.642
Debug: 36.5348 % 5586048 126.668
Debug: 36.5424 % 5587200 126.694
Debug: 36.5499 % 5588352 126.72
Debug: 36.5574 % 5589504 126.746
Debug: 36.565 % 5590656 126.772
Debug: 36.5725 % 5591808 126.798
Debug: 36.58 % 5592960 126.824
Debug: 36.5876 % 5594112 126.851
Debug: 36.5951 % 5595264 126.877
Debug: 36.6027 % 5596416 126.903
Debug: 36.6102 % 5597568 126.929
Debug: 36.6177 % 5598720 126.955
Debug: 36.6253 % 5599872 126.981
Debug: 36.6328 % 5601024 127.007
Debug: 36.6403 % 5602176 127.033
Sebastian Jennen
@zebastian
Nov 13 2016 16:30
I dont have a windows machine right now. Can you test the build here? https://ci.appveyor.com/project/zebastian/mandelbulber2-s84yl/build/job/10sh78dvcw9suvss/artifacts
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:31
Ok. I will try to test it. But I need to have all necesary DLLs
Sebastian Jennen
@zebastian
Nov 13 2016 16:33
should be all inside the zip, except for the vc redistributable https://www.microsoft.com/de-de/download/details.aspx?id=48145 Thanks a lot!
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:33
QtMultimedia.dll, DLLs from plugins/audio, plugings/mediaservices
Sebastian Jennen
@zebastian
Nov 13 2016 16:34
oh, yes, forgot about those...
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:35
Another question is if we will be able to build win64 version
Sebastian Jennen
@zebastian
Nov 13 2016 16:38
yes, win64 also builds, see here overview of current build status: https://ci.appveyor.com/project/zebastian/mandelbulber2-s84yl
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:39
OK
Sebastian Jennen
@zebastian
Nov 13 2016 16:39
just added missing QtMultimedia.dll, DLLs from plugins/audio, plugings/mediaservices to appveyor, but will take some time, for the next build
Sebastian Jennen
@zebastian
Nov 13 2016 16:49
next build running, 64bit version should be ready in ~15 minutes
Krzysztof Marczak
@buddhi1980
Nov 13 2016 16:49
thanks
Sebastian Jennen
@zebastian
Nov 13 2016 16:59
filepath was wrong, plugings/mediaservices -> plugings/mediaservice, needed restart...
Sebastian Jennen
@zebastian
Nov 13 2016 17:16
i also added you as an collaborator to appveyor, so you should have full control over the ci. (you will just need to use the github login).
Krzysztof Marczak
@buddhi1980
Nov 13 2016 17:16
great
Krzysztof Marczak
@buddhi1980
Nov 13 2016 17:21
I'm switching to Win10 and staring testing
Sebastian Jennen
@zebastian
Nov 13 2016 17:35
cool, i am curious if this will work.
Krzysztof Marczak
@buddhi1980
Nov 13 2016 17:52
The same problem PID: 8952, time: 53.445, Warning: defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiodecode" (:0, PID: 8952, time: 53.483, Debug: error QAudioDecoder::ServiceMissingError
Krzysztof Marczak
@buddhi1980
Nov 13 2016 17:57
But what is good, that both x32 and x64 versions launches properly under Windows. Tomorrow I will start with libsndfile to go forward with new animation features. It's better to have WAV format support than to have nothing. Under linux we can still use QAudioDecoder
Sebastian Jennen
@zebastian
Nov 13 2016 20:47
too bad, i thought this may fix the issue.
Sebastian Jennen
@zebastian
Nov 13 2016 21:29
libsndfile looks good, though mp3 support is missing.
we should probably add a HOWTO for new foreign libraries / qt libraries. So we keep all scripts up to date...
Krzysztof Marczak
@buddhi1980
Nov 13 2016 21:31
Yes, you are right. If we go with this library we need to update setup-cross-compile script
About mp3 decoding I'm still confused what to do. I worry about patents.
Sebastian Jennen
@zebastian
Nov 13 2016 21:34
IMHO: i think there is no good way, to directly compile it into the program.
Only reasonable solution was through backend loading of the qt framework. But thats just not working. :(