[Fusioninventory-devel] Fusioninventory-Agent Win32 Remote Installer first working version

Amir Pakdel a.pakdel at karafarinbank.net
Mon Jun 27 11:42:41 UTC 2011


Hi Gonéri,

Would you please try the attached agentWizard.pro.
Also pushed it to 
https://github.com/pakdel/fusioninventory-agent-win32-remote-installer

Thanks,
Amir


Le 06/27/2011 02:14 PM, Amir Pakdel a écrit :
>
> Le 06/27/2011 01:14 PM, Gonéri Le Bouder a écrit :
>> 2011/6/27 Amir Pakdel <a.pakdel at karafarinbank.net 
>> <mailto:a.pakdel at karafarinbank.net>>
>>
>>     Dears,
>>
>> Hi Amir!
> Hi Gonéri,
>>
>>
>>     First working version of Fusioninventory-Agent Win32 Remote
>>     Installer is ready and available here:
>>     https://github.com/fusinv/fusioninventory-agent-gui
>>
>> I think you speak about this repository:
>> https://github.com/fusinv/fusioninventory-agent-win32-remote-installer
> That's right, sorry :D
>>
>> I try the build on Linux, I had too apply this changes:
>> diff --git a/console.cpp b/console.cpp
>> index 024eda4..5e6bd26 100644
>> --- a/console.cpp
>> +++ b/console.cpp
>> @@ -150,7 +150,7 @@ Console::remoteExecError 
>> Console::startRemoteWin(QString curHost="") {
>>                   .arg(config->get("server"));
>>      processExec(tempWinexe, arguments);
>>
>> -    checkConsoleOut();
>> +    checkConsoleOut(targetHost);
>>
>>      QFile(tempWinexe).remove();
> targetHost in this function call is only needed in case of execution 
> on windows and as the checkConsoleOut defaults targetHost to an empty 
> string, a simple checkConsoleOut(); would do here. However, there is 
> no harm in calling it with targetHost.
>>
>>
>> And I got this error:
>> tosh-r630:~/tmp/fusioninventory-agent-win32-remote-installer 
>> (master)$make
>> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG 
>> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. -o console.o console.cpp
>> /usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB 
>> -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. dialog.h -o moc_dialog.cpp
>> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG 
>> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. -o moc_dialog.o moc_dialog.cpp
>> /usr/bin/moc-qt4 -DQT_WEBKIT -DQT_NO_DEBUG -DQT_GUI_LIB 
>> -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. console.h -o moc_console.cpp
>> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG 
>> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. -o moc_console.o moc_console.cpp
>> /usr/bin/rcc -name FusionInventory FusionInventory.qrc -o 
>> qrc_FusionInventory.cpp
>> g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_WEBKIT -DQT_NO_DEBUG 
>> -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED 
>> -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
>> -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui 
>> -I/usr/include/qt4 -I. -I. -o qrc_FusionInventory.o 
>> qrc_FusionInventory.cpp
>> g++ -m64 -Wl,-O1 -o agentWizard FusionInventory.exe FusionInventory.o 
>> main.o dialog.o config.o console.o moc_dialog.o moc_console.o 
>> qrc_FusionInventory.o    -L/usr/lib -lQtGui -lQtNetwork -lQtCore 
>> -lpthread
>> /usr/bin/ld: i386 architecture of input file `FusionInventory.exe' is 
>> incompatible with i386:x86-64 output
>> collect2: ld returned 1 exit status
>> make: *** [agentWizard] Erreur 1
> Ooooh, I did not test it on 64bit systems. I will try to resolve it fast.
> However, as a workaround, you can remove "FusionInventory.exe" from 
> the last g++ command and execute the following:
> g++ -m64 -Wl,-O1 -o agentWizard FusionInventory.o main.o dialog.o 
> config.o console.o moc_dialog.o moc_console.o qrc_FusionInventory.o    
> -L/usr/lib -lQtGui -lQtNetwork -lQtCore -lpthread
>
>
>
>
>
> Cheers,
>
> Amir
>
>
> _______________________________________________
> Fusioninventory-devel mailing list
> Fusioninventory-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20110627/8fbef637/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: agentWizard.pro
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20110627/8fbef637/attachment.ksh>


More information about the Fusioninventory-devel mailing list