help > error about plug-in
Showing 1-20 of 20 posts
Display:
Results per page:
Mar 17, 2017  12:03 PM | keran liu
error about plug-in
Hi, I have built vaa3d project according to data in https://github.com/Vaa3D/Vaa3D_Wiki/wiki... By the way, my qt version is 4.8.6 and VS version is 2013.
But when I followed web's information build plugins,something wrong happened. VS2013 x64 Native Tools Command Prompt remind me can't find some cpp file and idb file ,but this step is still finish. When I finish all the procedure, I open vaa3d_msvc.exe and load and visualize TIFF file successfully. But when I use any function in plug-in, the project was breakdown.
So I think build_plugindemo_msvc.bat was wrong, So can you tell me how solve it.
By the way, If I have a wonderful algorithm and add it to plug-in, can I send it to you and you publish it in your web as a stand software function. It will be wonderful!
Mar 17, 2017  09:03 PM | Zhi Zhou
RE: error about plug-in
There is an plugin initialization issue when using Qt 4.8.x on Windows machine. So if possible, please try to compile Vaa3D using Qt.4.7.x with VS.2008 or 2010 on Windows machine at this moment.

Please send us your Github account (username, full name or email). You should be able to check in your code after you become Vaa3D members.

Thanks,

Zhi
Mar 18, 2017  04:03 AM | keran liu
RE: error about plug-in
So can I compile Vaa3D using Qt.4.7.x with VS.2013 on Windows machine?
By the way, My Github username is guihui123, email is 944146434@qq.com. Best wish to you!
Mar 18, 2017  04:03 AM | Zhi Zhou
RE: error about plug-in
As far as I know, Qt 4.7.x only supports up to VS2010. By the way, invitation is sent. Please make your own folder under https://github.com/Vaa3D/vaa3d_tools/tre... directory, and check in your code in your folder.

Cheers,

Zhi
Mar 18, 2017  05:03 AM | keran liu
RE: error about plug-in
thank you very much
Mar 20, 2017  03:03 AM | keran liu
RE: error about plug-in
Hi,I try to compile Vaa3D using Qt.4.7.2 with 2010 on Windows machine by https://github.com/Vaa3D/Vaa3D_Wiki/wiki... it seems worse because qt compile is wrong. When I input "..\jom\jom.exe -j 4"(my CPU hsa 4 core). And error

e:\Qt\jom\jom.exe -f Makefile.Debug all
link /LIBPATH:"e:\Qt\4.7.2\lib" /LIBPATH:"e:\Qt\4.7.2\lib" /NOLOGO /BASE
:0x67000000 /DEBUG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\QtCored.in
termediate.manifest" /VERSION:4.72 /OUT:..\..\lib\QtCored4.dll @D:\Users\keran\A
ppData\Local\Temp\QtCored4.dll.12208.156.jom
正在创建库 ..\..\lib\QtCored4.lib 和对象 ..\..\lib\QtCored4.exp
LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
jom: E:\Qt\4.7.2\src\corelib\Makefile.Debug [..\..\lib\QtCored4.dll] Error 1123
jom: E:\Qt\4.7.2\src\corelib\Makefile [debug-all] Error 2
e:\Qt\jom\jom.exe -f Makefile.Release all
link /LIBPATH:"e:\Qt\4.7.2\lib" /LIBPATH:"e:\Qt\4.7.2\lib" /NOLOGO /BASE
:0x67000000 /INCREMENTAL:NO /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\release_shared
\QtCore.intermediate.manifest" /VERSION:4.72 /OUT:..\..\lib\QtCore4.dll @D:\User
s\keran\AppData\Local\Temp\QtCore4.dll.10556.156.jom
正在创建库 ..\..\lib\QtCore4.lib 和对象 ..\..\lib\QtCore4.exp
LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
jom: E:\Qt\4.7.2\src\corelib\Makefile.Release [..\..\lib\QtCore4.dll] Error 1123
jom: E:\Qt\4.7.2\src\corelib\Makefile [release-all] Error 2
jom: E:\Qt\4.7.2\Makefile [sub-corelib-make_default-ordered] Error 2
So,how can I slove plugin initialization issue when using Qt 4.8.x on Windows machine or slove Qt 4.7.2 compile problem.
Thanks
Liu
Mar 20, 2017  04:03 AM | Zhi Zhou
RE: error about plug-in
You may have to uninstall the previous version (e.g. Qt 4.8.x ) on your machine first.
Mar 20, 2017  08:03 AM | keran liu
RE: error about plug-in
Hi,I have already uninstall the previous version (Qt 4.8.6 ) on my machine, but it still don't work.When I Build Vaa3D it reminded me "LINK : fatal error LNK1181: can't open input file"e:\Qt\4.7.2\demos\shared\release\demo_shared.lib"".I know this is because qt compile is wrong. And when I use qt 4.7.2 Build plugins,the error is same as before. So maybe the problem was not plugin initialization issue when using Qt 4.8.6?
Mar 20, 2017  04:03 PM | Zhi Zhou
RE: error about plug-in
A little bit confused. I have two questions:
1. Using Qt.4.7.2 and VS 2010, can you successfully build Vaa3D executable file?
2. Can you successfully build your plugin (generated the dll file) using Qt.4.7.2 and VS2010.

If both answers are yes, but you still cannot load your plugin, please send your plugin (dll file) to us for testing. At the same time, you can also check in your code, and we can try to build it on our end.

Thanks,

Zhi
Mar 22, 2017  09:03 AM | keran liu
RE: error about plug-in
Thank you for your reply.
1,I can't build Vaa3D executable file using Qt.4.7.2 and VS 2010, but I can build Vaa3D executable file using Qt.4.8.6 and VS 2013.
2, I can successfully build my plugin (generated the dll file)both in Qt.4.7.2 and VS2010 and Qt.4.8.6 and VS2013.But vaa3d_msvc.exe file cann't link them.
So I want to solve plugin problem in Qt.4.8.6 and VS2013.I will send vaa3d_msvc.exe and plugin to you generated by Qt.4.8.6 and VS2013. Thank you very much!!!
Attachment: file.rar
Mar 22, 2017  01:03 PM | Zhi Zhou
RE: error about plug-in
As I said, there is a plugin initialization issue using Qt.4.8.x.

Can you download our released version (https://github.com/Vaa3D/release/release...), and try to load your plugin complied by Qt.4.7.2 on this downloaded version?
Mar 24, 2017  09:03 AM | keran liu
RE: error about plug-in
As you said, I have test too many times followed your guide. But I even can't get executable file using Qt 4.7.2. when I enter "..\jom\jom.exe -j N", it reminded me error happens. And error about can't find demo_shared.lib which is in Qt file happens. So is my VS2010 not suitable for this project? Or are you lose some of steps in your guide?
Mar 24, 2017  01:03 PM | Zhi Zhou
RE: error about plug-in
If you have trouble to build Vaa3D executable file, you can directly use our precomplied one, which I mentioned in the last response.
1. Download our released Vaa3D from https://github.com/Vaa3D/release/release...
2. Unzip the file and install it on your machine.
3. Compile your plugin using Qt.4.7.2.
4. Copy your plugin folder including the dll file to your installed Vaa3D plugin folder (e.g. C:\Program Files\Vaa3D-3.2\bin\plugins\).

Hope it helps.

Zhi
Mar 24, 2017  06:03 PM | Hsienchi Kuo
RE: error about plug-in
Hi,

Here are some steps I would suggest:

1. In Qt48x, demo_shared.lib is not automatically generated during the Qt building process. I suggest that you use either QtCreator or VS2013 Qt Add-in to build it. However, as Zhi has already mentioned, Qt48x has issues with puglin loading/unloading. So I would suggest that you avoid using Qt48x until we solve this problem.

2. Please go to your Qt472 folder to check if you have demo_shared.lib. If so, then it means your system path hasn't changed to Qt472 yet and it's still searching for it in the wrong place. You can also check by typing 'qmake --version' on command prompt to see if it's using Qt472 libraries or not. If it's not using Qt472 libraries and you can find demo_shared.lib in your Qt472 folder, change the environment variables accordingly. If it's using Qt472 libraires but you don't have demo_shared.lib, then you will have to either use QtCreator or VS2010 to build it. 

Hole it helps.
Mar 25, 2017  02:03 PM | keran liu
RE: error about plug-in
thank you very much! I will try.
Mar 25, 2017  02:03 PM | keran liu
RE: error about plug-in
thank you very much. I will try.
Mar 27, 2017  03:03 AM | keran liu
RE: error about plug-in
Thank you for your advice.
1,I have download QT in http://download.qt.io/archive/qt/4.7/qt-... and compile it in Visual Studio 2010 x64 Win64 Command Prompt. But error happens and I can't find demo_shared.lib in my Qt472 folder. So I downloaded another QT in download.qt.io/archive/qt/4.7/qt-win-opensource-4.7.2-vs2008.exe and compile it. Although I enter "..\jom\jom.exe -j 2" error will happens, But I can find demo_shared.lib in my Qt472 folder . And I typing 'qmake --version' on command prompt, I see I am using Qt472 libraries. Although I find demo_shared.lib this time, when I build executable file, VS 2010 remind me "demo_shared.lib::fatal error Module computer class x86 and target computer class x64 conflict "
2,Although qt4.7.2 compile error, I still try to build plugins. But the result is same as using qt 4.8.6. And I download executable file in https://github.com/Vaa3D/release/release... and copy my own plugins to it, when I run executable file, fail instantiation happens as picture.
May be I have some misunderstand about build step. So do you know a way that can build project 100% correct?
Attachment: error.jpg
Mar 27, 2017  04:03 AM | Zhi Zhou
RE: error about plug-in
1. If you follow the instruction from https://github.com/Vaa3D/Vaa3D_Wiki/wiki/Build-Vaa3D-on-Windows-%28VS2010-and-QMake%29, you should be able to build Vaa3D. You cannot use Qt for VS2008 build on VS2010. So you HAVE to use the Qt suggested from the instruction website.
If the error is "cannot find demo_shared.lib", you can try to locate this file and add your file path to your project.

2. The attachment dose not include any information about your own plugin. Please send your plugin (the dll file) for us to test.

Zhi
Mar 27, 2017  02:03 PM | Nobody
RE: error about plug-in
Thank you for your advice.
1,I have download QT in http://download.qt.io/archive/qt/4.7/qt-... and compile it in Visual Studio 2010 x64 Win64 Command Prompt. But error happens and I can't find demo_shared.lib in my Qt472 folder. So I downloaded another QT in download.qt.io/archive/qt/4.7/qt-win-opensource-4.7.2-vs2008.exe and compile it. Although I enter "..\jom\jom.exe -j 2" error will happens, But I can find demo_shared.lib in my Qt472 folder . And I typing 'qmake --version' on command prompt, I see I am using Qt472 libraries. Although I find demo_shared.lib this time, when I build executable file, VS 2010 remind me "demo_shared.lib::fatal error Module computer class x86 and target computer class x64 conflict "
2,Although qt4.7.2 compile error, I still try to build plugins. But the result is same as using qt 4.8.6. And I download executable file in https://github.com/Vaa3D/release/release... and copy my own plugins to it, when I run executable file, fail instantiation happens as picture.
May be I have some misunderstand about build step. So do you know a way that can build project 100% correct?
Sep 25, 2017  07:09 PM | Zhi Zhou
RE: error about plug-in
We have fixed the plugin loading bug in Vaa3D using vs2013+QT4.8.x. Please checkout our latest code, and give it a try.

Cheers,

Zhi