Helloooo everyone...
-
Been playing with qt creator for a few weeks now and really starting to love it! It has some problems with the project I am building but there are work arounds for most of it, it would seem. Now I am at a bit of a cross roads and wonder if anyone could point me in the most fruitful direction.
I am building for linux, windows and osx operating systems, osx is not really THAT much of a bother though.
Now, in linux I think it works the best. I have 3 versions installed. Qt5 Qt4 and an opensource version of Qt5... The open source version seems to have webkit installed as standard and works and is joyous... XD But the other 2 don't, so okay great I have a method to build linux.
Come to windows... On windows I build my qt with the opensource version of Qt5... But... It seems to be a headless version, specially made for the task (building crypto wallets). If I installed opensource Qt5 on windows the normal one that has a gui. Webkit is there omgz hazar!!! Whats more it works as I see it working in design view! Only it won't build the project, gets right to the end and fails. Sorry I will get those errors to you soon I am afk at the mo... But if I am not using webkit I can obviously build and produce qt's using the headless Qt5. It only complains that webkit is not known, well cos it doesn't have it so not surprising XD
Now... the way I see it I have some options... and these are what I want to ask about...
-
Solve the errors in windows Qt5 . (Most preferable, but not sure how possible)
-
Build the windows Qt in linux. It would need to use the opensource Qt that has the webkit. I looked at mxe a bit, seems possible, maybe.
-
Install webkit into the headless Qt that can build. I have looked into building webkit in windows... oh my days... Seems like a challenge in and of itself.
I know info is lacking I am sorry I will bring it very soon. If you want to wait until I have provided it before you answer that is fine... I will update this post soon as I can. Just wanted to get this bit down and maybe some of you know the challenges I face.
Thanks in advance for any advice offered.
EDIT: Oh just remembered I should add I am using mingw to make... The version I normally use I tried to point Qt5 gui verison to. But when I do this the first error is the "mainwindow is not a file or directory" one... Not sure if that will help.
-
-
Helloooo again, I am back, this time with PC and errors in hand... So what I just tried... I tried to build using Qt5 out the box, with the mingw provided... And then I tried using the other version of mingw that works for me. No dice, I get this...
build\bitcoin-qt_res.o
C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(config_file.o): duplicate section.rdata$_ZTSN5boost15iterator_facadeINS_15program_options6detail27common_config_file_iteratorEKNS1_12basic_optionIcEENS_21forward_traversal_tagERS6_iEE[__ZTSN5boost15iterator_facadeINS_15program_options6detail27common_config_file_iteratorEKNS1_12basic_optionIcEENS_21forward_traversal_tagERS6_iEE]' has different size C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(value_semantic.o): duplicate section
.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_17bad_function_callEEE[__ZTSN5boost16exception_detail19error_info_injectorINS_17bad_function_callEEE]' has different size
C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(value_semantic.o): duplicate section.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE[__ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE]' has different size C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(value_semantic.o): duplicate section
.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE]' has different size
C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(cmdline.o): duplicate section.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_17bad_function_callEEE[__ZTSN5boost16exception_detail19error_info_injectorINS_17bad_function_callEEE]' has different size Makefile.Release:304: recipe for target 'release\netcoin-qt.exe' failed C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(cmdline.o): duplicate section
.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE[__ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE]' has different size
C:/deps/boost_1_55_0/stage/lib/libboost_program_options-mgw49-mt-s-1_55.a(cmdline.o): duplicate section.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_17bad_function_callEEEEE]' has different size C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_thread_win32-mgw49-mt-s-1_55 C:/deps/boost_1_55_0/stage/lib/libboost_chrono-mgw49-mt-s-1_55.a(chrono.o): duplicate section
.rdata$_ZTSN5boost16exception_detail19error_info_injectorINS_6system12system_errorEEE[__ZTSN5boost16exception_detail19error_info_injectorINS_6system12system_errorEEE]' has different size
C:/deps/boost_1_55_0/stage/lib/libboost_chrono-mgw49-mt-s-1_55.a(chrono.o): duplicate section.rdata$_ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTSN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size C:/deps/boost_1_55_0/stage/lib/libboost_chrono-mgw49-mt-s-1_55.a(chrono.o): duplicate section
.rdata$_ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE[__ZTVN5boost16exception_detail10clone_implINS0_19error_info_injectorINS_6system12system_errorEEEEE]' has different size
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [release\netcoin-qt.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/build-netcoin2.1.pos-qt-Desktop_5_3_1_MinGW_32bit-Release'
Makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
15:26:50: The process "C:\mingw32\bin\mingw32-make.exe" exited with code 2.
Error while building/deploying project netcoin2.1.pos-qt (kit: Desktop 5.3.1 MinGW 32bit)
When executing step 'Make'Anything glaryingly obvious to any of you here?
EDIT: Okay someone mentioned it could be a problem with boost and I could try to recompile it...
cd C:\deps\boost_1_55_0
bootstrap.bat mingw
b2 --build-type=complete --with-chrono --with-filesystem --with-program_options --with-system --with-thread toolset=gcc variant=release link=static threading=multi runtime-link=static stageThis is what I used to compile it the first time, this boost does work with the headless version on the Qt... But errors on the gui version, perhaps it is something to do with the build string, is there something there maybe?
-
Well, I remade the boost file, I deleted the old, I unpacked, bootstrapped it to the new mingw version, and cleaned out the project, rebuilt... Now it says it can't find the files
C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_system-mgw49-mt-s-1_55
C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_filesystem-mgw49-mt-s-1_55
C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_program_options-mgw49-mt-s-1_55
C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_thread_win32-mgw49-mt-s-1_55
C:/Qt/Qt5.3.1/Tools/mingw482_32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lboost_chrono-mgw49-mt-s-1_55
collect2.exe: error: ld returned 1 exit statusLike this... But I can assure you they are there XD
-
Sorry people to go on and on XD
But I have now redone the toolchain that worked before... No more can't fine errors!!!! YAY!!!!
But now I get these... Any ideas?
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.0/../../../../i686-w64-mingw32/bin/ld.exe: ./build\shoppingpage.o: bad reloc address 0xe2af in section `.text$_ZN15Ui_ShoppingPage7setupUiEP7QWidget[__ZN15Ui_ShoppingPage7setupUiEP7QWidget]'
-
Good to see you solved the problem, I just popped in here to see if I could help and saw you figured it out.
Don't forget to add [SOLVED] to the thread title.
-
Will you please change your title . It is just "Hello Everyone". I think You should have title related to your problem.
And please append [Solved] in your title.