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 <[email protected] <mailto:[email protected]>>

    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
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel
#-------------------------------------------------
#
# Project created by QtCreator 2011-04-20T16:51:02
#
#-------------------------------------------------

QT       += core gui network

TARGET = agentWizard
TEMPLATE = app


SOURCES += main.cpp\
        dialog.cpp \
    config.cpp \
    console.cpp

HEADERS  += dialog.h \
    config.h \
    console.h

FORMS    += dialog.ui \
    console.ui

RESOURCES += \
    FusionInventory.qrc

PRE_TARGETDEPS += FusionInventory.o

#Create a .o binary file from the corresponding .S assembly and .exe binary
EmbedBlobObj_FILES = FusionInventory.S
EmbedBlobObj.input = EmbedBlobObj_FILES
EmbedBlobObj.output = ${QMAKE_FILE_BASE}.o
unix:EmbedBlobObj.commands = cp -a ${QMAKE_FILE_IN_PATH}/${QMAKE_FILE_BASE}.exe 
. ; as -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}
win32:EmbedBlobObj.commands = copy ${QMAKE_FILE_IN_PATH}/${QMAKE_FILE_BASE}.exe 
. & as -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_NAME}

QMAKE_EXTRA_COMPILERS += EmbedBlobObj
_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel

Répondre à