[ Forum ]

[improving] changelog + RPM (build) Mandriva

Le reste

[improving] changelog + RPM (build) Mandriva

Postby donald_duck » Fri Apr 03, 2009 9:19 pm

Bonsoir,

Ayant un peu de temps devant moi (cela faisait longtemps), j'ai décidé de m'atteler à la construction d'un rpm pour les distributions mandriva.
Afin de le faire correctement j'ai donc regardé le changelog.
Cependant, il ne "respecte" pas vraiment les conventions pour que je fasse un fichier spec convenable ;)

J'ai donc tout repris le changelog et voici le résultat: (les dates sont erroné malheureusement :()
Code: Select all
# Revision version:
* Mon Mar 30 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.17.4:
- Bug fix:        Disable autotranslation.

* Mon Feb 16 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.17.3:
- Add:            Listing folder error management.
- Add:            Limit speed in KB/s.
- Bug fix:        Skip fix before start copy.
- Bug fix:        French translation.

* Mon Jan 26 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.17.2:
- Add:            Qt 4.5 fix.
- Add:            Updated k8 version.
- Bug fix:        Skip fix.
- Bug fix:        Fr fix.

# Final version:
* Mon Jan 19 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.17.1:
- Add:            Remove destination file when copy is stopped and when source exists.
- Add:            New style not included in Qt.
- Add:            Cache for icon of style.
- Remake:         Rewrite path separator.
- Remake:         Move style/ as styles/
- Remake:         Path searching especialy for unix.
- Bug fix:        Fix k8-sse3 version, dll of Qt wrong at compilation.

# Rc version:
* Wed Jan 16 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.17.0:
- Add:            Free space checked.
- Add:            Preload 1 copy or move window.
- Add:            Creation and modification time could be copied.
- Add:            Custom style widget can be used.
- Bug fix:        Get speed.
- Bug fix:        Checksum box.
- Platform:       Copy catched on Windows 64Bits.

* Thu Jan 15 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.16.2:
- Add:            Error management when source folder cannot be deleted.
- Remake:         Error management when copy list file not exists.
- Remake:         Clean infinity debug info.
- Remake:         Put copy speed dectection in the copy threads class.
- Bug fix:        Multiple bug fix.
- Bug fix:        Remove parent path in move mode.
- Platform:       win32, External application for start up speed for copy.
- Platform:       win32, Better error specific management.

* Tue Jan 13 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.16.1:
- Remake:         Better bug detection in file copy.
- Bug fix:        Fix preallocate button.

* Mon Jan 12 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.16.0:
- Add:            Custom buffer size.
- Remake:         Dynamic language.
- Remake:         Forced md5 sum in debug mode.
- Remake:         Preallocation.
- Remake:         Dynamic injection.
- Remake:         Improvement in checksumming, and resume checksumming.
- Bug fix:        Infinity loop on the flush when the destination dir exists.
- Bug fix:        Dead lock in max speed mode.
- Bug fix:        Show windows status at always.
- Bug fix:        Regression while correct the bug. Resume the copy fixed.
- Platform:       win32, real move on same partition.

* Wed Jan 07 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.10:
- Bug fix:        Socket bug.

* Tue Jan 06 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.9:
- Remake:         Repack and final test.
- Platform:       Bug fix on Win32: When copy or move at the the drive

* Mon Jan 05 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.8:
- Remake:         Cleaned.

* Fri Jan 02 2009 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.7:
- Bug fix:        Function registre fix.

* Wed Dec 31 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.6:
- Bug fix:        New management for beter source dir removing.
- Bug fix:        Fix reading the utf16 file list.

* Tue Dec 30 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.5:
- Add:            Css with relative path.
- Bug fix:        Multiple important bug fix.

# Beta version:
* Mon Dec 29 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.4:
- Add:            Multiples sessions managed.
- Remake:         Progression accuracy especially with checksumming.

* Fri Dec 26 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.3:
- Add:            Argument management.
- Bug fix:        Copy not actived after listing.
- Bug fix:        Crash when source file not exists.

* Wed Dec 24 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.2:
- Platform:       win32, compilation: multiple bugfix.
- Platform:       Edit style for group systray by platform.
- Add:            Documentation.
- Add:            Systray icon for the copy window.
- Remake:         Comments.
- Remake:         Minor optimisation.
- Remake:         Load the user default settings.
- Bug fix:        Multiple little bug fix.

* Tue Dec 23 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1.15.1:
- Remake:         Edit version name for the windows version informations.

* Tue Dec 23 2008 BRULE Herman <alpha.super-one@laposte.net> v0.114d:
- Add:            Add function for compare the checksum
- Remake:         Better error prevent.
- Remake:         Better thread management.
- Remake:         Most test case are put in the thread.
- Remake:         Better algorithm, fastest copy small file.
- Remake:         Clean the copy thread code, remove the obsolete limitation method.
- Bug fix:        Retry always not exists for the error.
- Bug fix:        Add file or folder when copy is running.
- Bug fix:        Error while remove file in the copy list.

* Mon Dec 22 2008 BRULE Herman <alpha.super-one@laposte.net> v0.114c:
- Platform:       win32, bug fix in big speed limit.
- Add:            Delete temp destination if quit.
- Add:            Show when the folder listing is done.
- Add:            Slider for change the speed.
- Add:            Add self extracting package for the windows version.
- Add:            Systray icon in 22x22 when the OS is not windows.
- Add:            Adding skins.
- Remake:         Frame dropping at add file to list.
- Remake:         Leek of memory on dirSource.
- Remake:         Better speed management.
- Bug fix:        Little source dir not delete.

* Fri Dec 19 2008 BRULE Herman <alpha.super-one@laposte.net> v0.114b:
- Add:            Add subversion for manage the project.
- Add:            Can be compiled in Qt (standalone) or Kde version (not fully implemented).
- Add:            Update speed copy at the end of each file.
- Remake:         Better integration.
- Remake:         Better reactivity by frame dropping.
- Remake:         Allocate the options windows only if needed.
- Remake:         Minor optimization.
- Remake:         Correct the english in the VERSION file.
- Remake:         Max size on to and from label.
- Bug fix:        Compiling fix.
- Bug fix:        Fully cancel. Cancel fix.
- Bug fix:        Copy the same folder.
- Bug fix:        Bug when drag and drop a folder.

* Thu Dec 18 2008 BRULE Herman <alpha.super-one@laposte.net> v0.114a:
- Remake:         File exists management code.
- Remake:         Directory listing.
- Bug fix:        Text in french.
- Bug fix:        Source dir show in dest dir.
- Bug fix:        Moving folder, clean the source folder (thanks yojimbo).
- Bug fix:        Moving mode, progress bar (thanks yojimbo).

* Mon Dec 15 2008 BRULE Herman <alpha.super-one@laposte.net> v0.113:
- Add:            Internal resources.
- Add:            Manage external resources.
- Add:            Style management.
- Add:            Options for stay on top.
- Add:            Options for don't autostart the copy.
- Remake:         Add comment and optimize the program.
- Bug fix:        MessageBox for restart when set new language.
- Bug fix:        Close the copy windows if needed.

* Mon Dec 08 2008 BRULE Herman <alpha.super-one@laposte.net> v0.112:
- Platform:       win32, add icon to the executable.
- Platform:       win32, add the choice of run ultracopier at the startup.
- Add:            Translating work, and french translating do.
- Add:            Better error management.
- Bug fix:        Wrong name in error windows.

* Fri Dec 05 2008 BRULE Herman <alpha.super-one@laposte.net> v0.111:
- Add:            Option window added.
- Add:            Save and load the system settings.
- Add:            Translating ready but not activated.

# Alpha version:
* Mon Dec 01 2008 BRULE Herman <alpha.super-one@laposte.net> v0.110:
- Add:            Log in html.
- Add:            SysTrayIcon.
- Add:            Moving and coping.
- Bug fix:        Set the correct windows geometry.
- Bug fix:        Bug on mutex when error in the copy.

* Mon Nov 24 2008 BRULE Herman <alpha.super-one@laposte.net> v0.109:
- Add:            Better copy time. Add new speed limit algorithm.
- Remake:         When copy of folder the folder source is copied not what is in the folder source.
- Remake:         Correct the warning when ultracopier is compiled with 32Bits version of gcc.
- Remake:         Debugging function, smallest, easiest.
- Bug fix:        Drag and drop folder.
- Bug fix:        Lock the first file when copy is on pause.

* Mon Nov 17 2008 BRULE Herman <alpha.super-one@laposte.net> v0.108:
- Add:            Stop/Resume the copy.
- Add:            Speed limit halt implemented.
- Add:            Skip button when the copy is running.
- Bug fix:        Lot of bug fix.
- Bug fix:        Copy thread detection.
- Bug fix:        Skip button with copy stopped.

* Fri Nov 15 2008 BRULE Herman <alpha.super-one@laposte.net> v0.107:
- Add:            Copy progress and copy speed.
- Add:            Resume and pause the copy.
- Remake:         All the copy management in simply loop, without signal/slot.
- Remake:         All the copy process.
- Remake:         Lot of part.

* Mon Nov 10 2008 BRULE Herman <alpha.super-one@laposte.net> v0.106:
- Add:            Error management and always use an action when error has occurred implemented.
- Add:            Error management of the destination folder (is writable) and source file (is readable).
- Add:            Cursor for stop "Always put at the end" when a file already put at the end reback at the top.
- Bug fix:        mkdir replaced by mkpath.

* Tue Nov 04 2008 BRULE Herman <alpha.super-one@laposte.net> v0.105:
- Remake:         Dialog in modal.
- Remake:         Open dir in the same function. With remake of the dir path if needed.
- Bug fix:        Move the selected item when copy list is empty that's crash ultracopier.
- Bug fix:        No formated size for add single file.

* Mon Nov 03 2008 BRULE Herman <alpha.super-one@laposte.net> v0.104:
- Add:            Optimize size for all version, and use custom external Qt dll in windows version for smallest dll.
- Add:            Move the selected file in the list at top, bottom, or just move up and down.
- Add:            Close the window at the end of copy if in the menu (copy end) it's Always close at the end of the copy.
- Add:            Skip the first file when the copy is stopped or not.
- Remake:         Remake of Mwindow.cpp for more simplicity and compress the same part. For example I have add: getTheFirstFileDestination(QString * thefilename),deleteTheFirstEntry(),updateFileOverAllProgression(),updateCurrentFileProgression(QTreeWidgetItem * firstItem).

* Thu Oct 30 2008 BRULE Herman <alpha.super-one@laposte.net> v0.103:
- Add:            Always rename,Always skip,Always overwrite add in the file exist window.
- Add:            Button Set as default work.
- Remake:         Better management of file greater 4GB
- Bug fix:        Selected folder under windows return bad value, fixed.

* Mon Oct 27 2008 BRULE Herman <alpha.super-one@laposte.net> v0.102:
- Add:            Drag and drop.
- Remake:         Listing function Thread::scandir() in AddFolderThread.cpp.
- Bug fix:        Copy with multiple recursive subfolder.
- Bug fix:        Now the main thread wait that the copy thread have finish in wait the signal finished(), the lot of copy work now.

* Tue Oct 21 2008 BRULE Herman <alpha.super-one@laposte.net> v0.101:
- Add:            Management of the collision and other.

* Mon Oct 20 2008 BRULE Herman <alpha.super-one@laposte.net> v0.1:
- Add:            Just the main windows and manage copy system. With windows of the error and overwriten file management.


Il serait pratique pour les version futur si on pouvait respecter ces petites recommandations pour le changelog:

    * La première ligne du paragraphe commence par * avec, dans l'ordre et séparés par un espace :
    * 3 lettres pour le jour de la semaine (en anglais)
    * 3 lettres pour le mois (en anglais)
    * 2 chiffres pour jour du mois (en anglais)
    * 4 chiffres pour l'année
    * Prénom du créateur du paquetage
    * Nom du créateur du paquetage
    * e-mail du créateur du paquetage entre <>.
    * version et release des modifications.
    * Ensuite, une ligne, commençant par un -, par modification appliquée au paquetage.

Voila, a+
Last edited by donald_duck on Mon Apr 06, 2009 9:02 pm, edited 1 time in total.
donald_duck
 
Posts: 33
Joined: Tue Dec 23, 2008 8:31 am

Re: [improving] changelog (?)

Postby alpha_one_x86 » Sat Apr 04, 2009 5:20 am

Pas de probléme.
Par contre il serai bien que tu mette içi la procédure/script pour générer le .rpm, histoire que je le génère à chaque nouvelle version.
EDIT: toutes les infos y seront, par contre coté mise en forme je peu toujours de faire un script sed s/// qui te met tout ça dans un autre format si besoin.
User avatar
alpha_one_x86
Site Admin
 
Posts: 325
Joined: Sun Oct 26, 2008 9:09 am

Re: [improving] changelog (?)

Postby donald_duck » Sat Apr 04, 2009 3:21 pm

Pour le générer le rpm il te faudra installer quelques paquets (de tête):
rpm, rpmbuild, rpmlint

Après tout ce dont on a besoin c'est des sources et d'écrire le fichier ultracopier.spec.
Exemple:
Code: Select all
%define name    ultracopier
%define version 0.1.17.4
%define release %mkrel 1

Name:           %{name}
Summary:        Window improvement to copy files
Version:        %{version}
Release:        %{release}
Source0:        http://files.first-world.info/ultracopier/%{name}-src.tar.bz2
URL:            http://ultracopier.first-world.info/
Group:          File tools
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License:        GNU GPL version 3
#Requires:       todo (qt)

%description
Ultracopier provide a advanced copier with play/pause/resmume,
with advanced management like playlist.

%prep
#setup -q -a 1 if there is more than one source
%setup -q
#patch -p1 if needed

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
#doc README NEWS COPYING AUTHORS CHANGELOG
%doc README VERSION
#{_mandir}/man1/ultracopier.1*
%{_bindir}/ultracopier

%changelog
# list of changelog

Ensuite on peut utiliser ses commandes pour construire le rpm:
Code: Select all
rpm -bs --rmspec --rmsource

Et pouf on a notre rpm installable sur une redhat, mandriva etc.... En théorie, parce-que dans la pratique il vaut faire un rebuild pour chaque distrib.

Mais la j'ai quelques soucis lors de mon make avec notamment les fichiers register:
Code: Select all
Dans le fichier inclus à partir de register.cpp:31:
register.h:34:21: erreur: windows.h : Aucun fichier ou dossier de ce type
register.h:35:21: erreur: QString.h : Aucun fichier ou dossier de ce type
register.cpp:32:21: erreur: objbase.h : Aucun fichier ou dossier de ce type
In file included from register.cpp:31:
register.h:37: erreur: expected ‘,’ or ‘...’ before ‘&’ token
register.h:37: erreur: ISO C++ forbids declaration of ‘QString’ with no type

j'ai rebasculé quelques fichiers en UTF-8 et cela m'a résolu certain bogue ISO, mélayénévoipa pourquoi il manque objbase.h dans les sources etc...
J'avais déjà des problèmes avec le module qtnetwork qui n'était pas inclus dans le makefile lors du qmake, peut-être est-ce une résultante de cela...
Je suis sur une mandriva 64bits (Intel Core 2 Duo P8400 si cela peux aider...) et Qt en version 4.4.3
donald_duck
 
Posts: 33
Joined: Tue Dec 23, 2008 8:31 am

Re: [improving] changelog (?)

Postby alpha_one_x86 » Mon Apr 06, 2009 6:17 am

register.* ne devrai en aucun cas est inclut est utilisé sous linux.
Le plus simple est de virer tout les register.* que tu as et de virer les références des fichiers fichier (grep 'register' -r ./)
EDIT: bizard je n'est jamais eu le moindre probléme de compilation, que ce soit sous linux sous plein de version différente, ou sous windows, certain l'ont meme compiler sous debian/ubuntu (cf forum).
EDIT2: je suis sous gentoo, je suis pas sur que les outils rpm sont dispo, mais je regarde.
User avatar
alpha_one_x86
Site Admin
 
Posts: 325
Joined: Sun Oct 26, 2008 9:09 am

Re: [improving] changelog + RPM (build) Mandriva

Postby donald_duck » Mon Apr 06, 2009 9:12 pm

huhu,
Dans mon cas je me butte sur pas mal de truc xD
Au moins cela me fera réviser les bases de la compilation avec toi, depuis que tout est "user-friendly" sur les distrib' nux j'ai l'impression d'avoir tout oublié :roll:

Bon alors après avoir enlever les références vers les register et puis quelques windows j'ai ces messages d'erreurs après mon make:
Code: Select all
main.o: In function `main':
main.cpp:(.text+0x3415): undefined reference to `QLocalSocket::QLocalSocket(QObject*)'
main.cpp:(.text+0x3488): undefined reference to `QLocalSocket::QLocalSocket(QObject*)'
main.cpp:(.text+0x34c5): undefined reference to `QLocalSocket::connectToServer(QString const&, QFlags<QIODevice::OpenModeFlag>)'
main.cpp:(.text+0x34e8): undefined reference to `QLocalSocket::waitForConnected(int)'
main.cpp:(.text+0x36ae): undefined reference to `QLocalSocket::disconnectFromServer()'
UIcon.o: In function `UIcon::deconnectClientUI()':
UIcon.cpp:(.text+0x371): undefined reference to `QLocalSocket::staticMetaObject'
UIcon.o: In function `UIcon::on_listen()':
UIcon.cpp:(.text+0x4f7): undefined reference to `QLocalServer::listen(QString const&)'
UIcon.o: In function `UIcon::UIcon()':
UIcon.cpp:(.text+0x1a87): undefined reference to `QLocalServer::QLocalServer(QObject*)'
UIcon.o: In function `UIcon::UIcon()':
UIcon.cpp:(.text+0x2cf7): undefined reference to `QLocalServer::QLocalServer(QObject*)'
UIcon.o: In function `UIcon::dataincommingUI()':
UIcon.cpp:(.text+0x5061): undefined reference to `QLocalSocket::staticMetaObject'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [ultracopier] Erreur 1


Le module QtNetwork à bien été rajouté en référence, et la classe QLocalSocket fait bien partie de cette librairie.
Merci de perdre un peu de ton temps avec moi :)
(M'enfin j'ai le droit à des privilèges aussi j'ai fait un don :twisted: )
donald_duck
 
Posts: 33
Joined: Tue Dec 23, 2008 8:31 am

Re: [improving] changelog + RPM (build) Mandriva

Postby alpha_one_x86 » Tue Apr 07, 2009 6:08 am

au linkage de l'executable final il n'as pas utilisé la lib QNetwork.so, c'est ce paramétre que tu peu ajouter en dur dans ton makefile: -lQtNetwork4
Moi j'ai ce make file:
Code: Select all
#############################################################################
# Makefile for building: ultracopier
# Generated by qmake (2.01a) (Qt 4.4.3) on: dim. 5. avr. 07:05:08 2009
# Project:  ultracopier.pro
# Template: app
#############################################################################

####### Compiler, tools and options

CC            = gcc
CXX           = g++
DEFINES       = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
CFLAGS        = -O2 -Wall $(DEFINES)
CXXFLAGS      = -O2 -frtti -fexceptions -mthreads -Wall $(DEFINES)
INCPATH       = -I"c:\Qt\QtCreator\qt\include\QtCore" -I"c:\Qt\QtCreator\qt\include\QtCore" -I"c:\Qt\QtCreator\qt\include\QtNetwork" -I"c:\Qt\QtCreator\qt\include\QtNetwork" -I"c:\Qt\QtCreator\qt\include\QtGui" -I"c:\Qt\QtCreator\qt\include\QtGui" -I"c:\Qt\QtCreator\qt\include" -I"." -I"c:\Qt\QtCreator\qt\include\ActiveQt" -I"release" -I"." -I"c:\Qt\QtCreator\qt\mkspecs\win32-g++"
LINK        =        g++
LFLAGS        =        -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl -Wl,-subsystem,windows
LIBS        =        -L"c:\Qt\QtCreator\qt\lib" -lmingw32 -lqtmain release\resources-windows_res.o -lole32 -lQtGui4 -lQtNetwork4 -lQtCore4
QMAKE         = c:\Qt\QtCreator\qt\bin\qmake.exe
IDC           = c:\Qt\QtCreator\qt\bin\idc.exe
IDL           = midl
ZIP           = zip -r -9
DEF_FILE      =
RES_FILE      = release\resources-windows_res.o
COPY          = copy /y
COPY_FILE     = $(COPY)
COPY_DIR      = xcopy /s /q /y /i
DEL_FILE      = del
DEL_DIR       = rmdir
MOVE          = move
CHK_DIR_EXISTS= if not exist
MKDIR         = mkdir
INSTALL_FILE    = $(COPY_FILE)
INSTALL_PROGRAM = $(COPY_FILE)
INSTALL_DIR     = $(COPY_DIR)

####### Output directory

OBJECTS_DIR   = release

####### Files

SOURCES       = AddFolderThread.cpp \
      CopyThread.cpp \
      Ewindow.cpp \
      FEwindow.cpp \
      main.cpp \
      Mwindow.cpp \
      Options.cpp \
      UIcon.cpp \
      spaceWindow.cpp \
      helpdialog.cpp \
      register.cpp release\moc_AddFolderThread.cpp \
      release\moc_CopyThread.cpp \
      release\moc_Ewindow.cpp \
      release\moc_FEwindow.cpp \
      release\moc_Mwindow.cpp \
      release\moc_Options.cpp \
      release\moc_UIcon.cpp \
      release\moc_spaceWindow.cpp \
      release\moc_helpdialog.cpp \
      release\qrc_resources.cpp \
      release\qrc_resources_windows.cpp
OBJECTS       = release/AddFolderThread.o \
      release/CopyThread.o \
      release/Ewindow.o \
      release/FEwindow.o \
      release/main.o \
      release/Mwindow.o \
      release/Options.o \
      release/UIcon.o \
      release/spaceWindow.o \
      release/helpdialog.o \
      release/register.o \
      release/moc_AddFolderThread.o \
      release/moc_CopyThread.o \
      release/moc_Ewindow.o \
      release/moc_FEwindow.o \
      release/moc_Mwindow.o \
      release/moc_Options.o \
      release/moc_UIcon.o \
      release/moc_spaceWindow.o \
      release/moc_helpdialog.o \
      release/qrc_resources.o \
      release/qrc_resources_windows.o
DIST          =
QMAKE_TARGET  = ultracopier
DESTDIR        = release\ #avoid trailing-slash linebreak
TARGET         = ultracopier.exe
DESTDIR_TARGET = release\ultracopier.exe

####### Implicit rules

.SUFFIXES: .cpp .cc .cxx .c

.cpp.o:
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cc.o:
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.cxx.o:
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

.c.o:
   $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<

####### Build rules

first: all
all: Makefile.Release  $(DESTDIR_TARGET)

$(DESTDIR_TARGET): ui_copyError.h ui_copyFileExists.h ui_main_window.h ui_options.h ui_spaceDialog.h ui_helpdialog.h $(OBJECTS) release/resources-windows_res.o
   $(LINK) $(LFLAGS) -o $(DESTDIR_TARGET) object_script.ultracopier.Release  $(LIBS)


release/resources-windows_res.o: resources-windows.rc
   windres -i resources-windows.rc -o release\resources-windows_res.o --include-dir=.

qmake:  FORCE
   @$(QMAKE) -spec c:\Qt\QtCreator\qt\mkspecs\win32-g++ -win32 CONFIG+=debug_and_release -o Makefile.Release ultracopier.pro

dist:
   $(ZIP) ultracopier.zip $(SOURCES) $(DIST) ultracopier.pro c:\Qt\QtCreator\qt\mkspecs\qconfig.pri c:\Qt\QtCreator\qt\mkspecs\features\qt_functions.prf c:\Qt\QtCreator\qt\mkspecs\features\qt_config.prf c:\Qt\QtCreator\qt\mkspecs\features\exclusive_builds.prf c:\Qt\QtCreator\qt\mkspecs\features\default_pre.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\default_pre.prf c:\Qt\QtCreator\qt\mkspecs\features\release.prf c:\Qt\QtCreator\qt\mkspecs\features\debug_and_release.prf c:\Qt\QtCreator\qt\mkspecs\features\default_post.prf c:\Qt\QtCreator\qt\mkspecs\features\build_pass.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\rtti.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\exceptions.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\stl.prf c:\Qt\QtCreator\qt\mkspecs\features\shared.prf c:\Qt\QtCreator\qt\mkspecs\features\warn_on.prf c:\Qt\QtCreator\qt\mkspecs\features\qt.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\thread.prf c:\Qt\QtCreator\qt\mkspecs\features\moc.prf c:\Qt\QtCreator\qt\mkspecs\features\win32\windows.prf c:\Qt\QtCreator\qt\mkspecs\features\resources.prf c:\Qt\QtCreator\qt\mkspecs\features\uic.prf c:\Qt\QtCreator\qt\mkspecs\features\yacc.prf c:\Qt\QtCreator\qt\mkspecs\features\lex.prf c:\Qt\QtCreator\qt\lib\qtmain.prl lang\en.ts lang\es.ts lang\fr.ts lang\en.ts lang\es.ts lang\fr.ts HEADERS RESOURCES IMAGES SOURCES OBJECTIVE_SOURCES FORMS YACCSOURCES YACCSOURCES LEXSOURCES

clean: compiler_clean
   -$(DEL_FILE) release\AddFolderThread.o release\CopyThread.o release\Ewindow.o release\FEwindow.o release\main.o release\Mwindow.o release\Options.o release\UIcon.o release\spaceWindow.o release\helpdialog.o release\register.o release\moc_AddFolderThread.o release\moc_CopyThread.o release\moc_Ewindow.o release\moc_FEwindow.o release\moc_Mwindow.o release\moc_Options.o release\moc_UIcon.o release\moc_spaceWindow.o release\moc_helpdialog.o release\qrc_resources.o release\qrc_resources_windows.o
   -$(DEL_FILE) release\resources-windows_res.o

distclean: clean
   -$(DEL_FILE) $(DESTDIR_TARGET)
   -$(DEL_FILE) Makefile.Release

mocclean: compiler_moc_header_clean compiler_moc_source_clean

mocables: compiler_moc_header_make_all compiler_moc_source_make_all

compiler_moc_header_make_all: release/moc_AddFolderThread.cpp release/moc_CopyThread.cpp release/moc_Ewindow.cpp release/moc_FEwindow.cpp release/moc_Mwindow.cpp release/moc_Options.cpp release/moc_UIcon.cpp release/moc_spaceWindow.cpp release/moc_helpdialog.cpp
compiler_moc_header_clean:
   -$(DEL_FILE) release\moc_AddFolderThread.cpp release\moc_CopyThread.cpp release\moc_Ewindow.cpp release\moc_FEwindow.cpp release\moc_Mwindow.cpp release\moc_Options.cpp release\moc_UIcon.cpp release\moc_spaceWindow.cpp release\moc_helpdialog.cpp
release/moc_AddFolderThread.cpp: AddFolderThread.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 AddFolderThread.h -o release\moc_AddFolderThread.cpp

release/moc_CopyThread.cpp: env.h \
      var.h \
      CopyThread.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 CopyThread.h -o release\moc_CopyThread.cpp

release/moc_Ewindow.cpp: ui_copyError.h \
      Ewindow.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 Ewindow.h -o release\moc_Ewindow.cpp

release/moc_FEwindow.cpp: ui_copyFileExists.h \
      FEwindow.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 FEwindow.h -o release\moc_FEwindow.cpp

release/moc_Mwindow.cpp: ui_main_window.h \
      AddFolderThread.h \
      CopyThread.h \
      env.h \
      var.h \
      FEwindow.h \
      ui_copyFileExists.h \
      Ewindow.h \
      ui_copyError.h \
      spaceWindow.h \
      ui_spaceDialog.h \
      Mwindow.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 Mwindow.h -o release\moc_Mwindow.cpp

release/moc_Options.cpp: env.h \
      var.h \
      ui_options.h \
      Options.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 Options.h -o release\moc_Options.cpp

release/moc_UIcon.cpp: Mwindow.h \
      ui_main_window.h \
      AddFolderThread.h \
      CopyThread.h \
      env.h \
      var.h \
      FEwindow.h \
      ui_copyFileExists.h \
      Ewindow.h \
      ui_copyError.h \
      spaceWindow.h \
      ui_spaceDialog.h \
      Options.h \
      ui_options.h \
      helpdialog.h \
      UIcon.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 UIcon.h -o release\moc_UIcon.cpp

release/moc_spaceWindow.cpp: ui_spaceDialog.h \
      spaceWindow.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 spaceWindow.h -o release\moc_spaceWindow.cpp

release/moc_helpdialog.cpp: helpdialog.h
   C:/Qt/QtCreator/qt/bin\moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 helpdialog.h -o release\moc_helpdialog.cpp

compiler_rcc_make_all: release/qrc_resources.cpp release/qrc_resources_windows.cpp
compiler_rcc_clean:
   -$(DEL_FILE) release\qrc_resources.cpp release\qrc_resources_windows.cpp
release/qrc_resources.cpp: resources.qrc \
      lang/francais.png \
      lang/english.png \
      lang/fr.qm \
      lang/en.qm \
      other/ultracopier-128x128.png \
      other/ultracopier-16x16.png \
      styles/Default/player_playlist.png \
      styles/Default/2downarrow.png \
      styles/Default/apply.png \
      styles/Default/add.png \
      styles/Default/advanced.png \
      styles/Default/overwrite.png \
      styles/Default/language.png \
      styles/Default/player_stop.png \
      styles/Default/reload.png \
      styles/Default/style.css \
      styles/Default/launch.png \
      styles/Default/main.png \
      styles/Default/error.png \
      styles/Default/player_end.png \
      styles/Default/player_pause.png \
      styles/Default/tools.png \
      styles/Default/1uparrow.png \
      styles/Default/rename.png \
      styles/Default/1downarrow.png \
      styles/Default/ok.png \
      styles/Default/2uparrow.png \
      styles/Default/options.png \
      styles/Default/cancel.png \
      styles/Default/exit.png \
      styles/Default/info.png \
      styles/Default/player_play.png \
      styles/Default/remove.png \
      styles/Default/extra/background-playlist.png \
      styles/Default/big/save.png \
      styles/Default/big/error.png
   c:\Qt\QtCreator\qt\bin\rcc.exe -name resources resources.qrc -o release\qrc_resources.cpp

release/qrc_resources_windows.cpp: resources_windows.qrc \
      other/ultracopier.reg \
      other/DefaultHandlerOff.reg \
      other/DefaultHandler.reg \
      styles/Default/systray/systray_disabled.png \
      styles/Default/systray/systray.png \
      styles/Default/systray/bottom.png \
      styles/Default/systray/top.png
   c:\Qt\QtCreator\qt\bin\rcc.exe -name resources_windows resources_windows.qrc -o release\qrc_resources_windows.cpp

compiler_image_collection_make_all: qmake_image_collection.cpp
compiler_image_collection_clean:
   -$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_copyError.h ui_copyFileExists.h ui_main_window.h ui_options.h ui_spaceDialog.h ui_helpdialog.h
compiler_uic_clean:
   -$(DEL_FILE) ui_copyError.h ui_copyFileExists.h ui_main_window.h ui_options.h ui_spaceDialog.h ui_helpdialog.h
ui_copyError.h: copyError.ui
   c:\Qt\QtCreator\qt\bin\uic.exe copyError.ui -o ui_copyError.h

ui_copyFileExists.h: copyFileExists.ui
   c:\Qt\QtCreator\qt\bin\uic.exe copyFileExists.ui -o ui_copyFileExists.h

ui_main_window.h: main_window.ui
   c:\Qt\QtCreator\qt\bin\uic.exe main_window.ui -o ui_main_window.h

ui_options.h: options.ui
   c:\Qt\QtCreator\qt\bin\uic.exe options.ui -o ui_options.h

ui_spaceDialog.h: spaceDialog.ui
   c:\Qt\QtCreator\qt\bin\uic.exe spaceDialog.ui -o ui_spaceDialog.h

ui_helpdialog.h: helpdialog.ui
   c:\Qt\QtCreator\qt\bin\uic.exe helpdialog.ui -o ui_helpdialog.h

compiler_yacc_decl_make_all:
compiler_yacc_decl_clean:
compiler_yacc_impl_make_all:
compiler_yacc_impl_clean:
compiler_lex_make_all:
compiler_lex_clean:
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_uic_clean



####### Compile

release/AddFolderThread.o: AddFolderThread.cpp env.h \
      var.h \
      AddFolderThread.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\AddFolderThread.o AddFolderThread.cpp

release/CopyThread.o: CopyThread.cpp env.h \
      var.h \
      CopyThread.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\CopyThread.o CopyThread.cpp

release/Ewindow.o: Ewindow.cpp Ewindow.h \
      ui_copyError.h \
      env.h \
      var.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\Ewindow.o Ewindow.cpp

release/FEwindow.o: FEwindow.cpp env.h \
      var.h \
      FEwindow.h \
      ui_copyFileExists.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\FEwindow.o FEwindow.cpp

release/main.o: main.cpp env.h \
      var.h \
      UIcon.h \
      Mwindow.h \
      ui_main_window.h \
      AddFolderThread.h \
      CopyThread.h \
      FEwindow.h \
      ui_copyFileExists.h \
      Ewindow.h \
      ui_copyError.h \
      spaceWindow.h \
      ui_spaceDialog.h \
      Options.h \
      ui_options.h \
      helpdialog.h \
      register.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\main.o main.cpp

release/Mwindow.o: Mwindow.cpp env.h \
      var.h \
      Mwindow.h \
      ui_main_window.h \
      AddFolderThread.h \
      CopyThread.h \
      FEwindow.h \
      ui_copyFileExists.h \
      Ewindow.h \
      ui_copyError.h \
      spaceWindow.h \
      ui_spaceDialog.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\Mwindow.o Mwindow.cpp

release/Options.o: Options.cpp env.h \
      var.h \
      Options.h \
      ui_options.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\Options.o Options.cpp

release/UIcon.o: UIcon.cpp env.h \
      var.h \
      UIcon.h \
      Mwindow.h \
      ui_main_window.h \
      AddFolderThread.h \
      CopyThread.h \
      FEwindow.h \
      ui_copyFileExists.h \
      Ewindow.h \
      ui_copyError.h \
      spaceWindow.h \
      ui_spaceDialog.h \
      Options.h \
      ui_options.h \
      helpdialog.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\UIcon.o UIcon.cpp

release/spaceWindow.o: spaceWindow.cpp spaceWindow.h \
      ui_spaceDialog.h \
      env.h \
      var.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\spaceWindow.o spaceWindow.cpp

release/helpdialog.o: helpdialog.cpp helpdialog.h \
      ui_helpdialog.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\helpdialog.o helpdialog.cpp

release/register.o: register.cpp register.h \
      env.h \
      var.h
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\register.o register.cpp

release/moc_AddFolderThread.o: release/moc_AddFolderThread.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_AddFolderThread.o release\moc_AddFolderThread.cpp

release/moc_CopyThread.o: release/moc_CopyThread.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_CopyThread.o release\moc_CopyThread.cpp

release/moc_Ewindow.o: release/moc_Ewindow.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_Ewindow.o release\moc_Ewindow.cpp

release/moc_FEwindow.o: release/moc_FEwindow.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_FEwindow.o release\moc_FEwindow.cpp

release/moc_Mwindow.o: release/moc_Mwindow.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_Mwindow.o release\moc_Mwindow.cpp

release/moc_Options.o: release/moc_Options.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_Options.o release\moc_Options.cpp

release/moc_UIcon.o: release/moc_UIcon.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_UIcon.o release\moc_UIcon.cpp

release/moc_spaceWindow.o: release/moc_spaceWindow.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_spaceWindow.o release\moc_spaceWindow.cpp

release/moc_helpdialog.o: release/moc_helpdialog.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\moc_helpdialog.o release\moc_helpdialog.cpp

release/qrc_resources.o: release/qrc_resources.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qrc_resources.o release\qrc_resources.cpp

release/qrc_resources_windows.o: release/qrc_resources_windows.cpp
   $(CXX) -c $(CXXFLAGS) $(INCPATH) -o release\qrc_resources_windows.o release\qrc_resources_windows.cpp

####### Install

install:   FORCE

uninstall:   FORCE

FORCE:



Mais je pense qu'il doit manquer un truc dans ton systéme, c'est pas normale que tu est des problémes sur presque chaque truc.
User avatar
alpha_one_x86
Site Admin
 
Posts: 325
Joined: Sun Oct 26, 2008 9:09 am

Re: [improving] changelog + RPM (build) Mandriva

Postby donald_duck » Tue Apr 07, 2009 7:55 am

Mais je pense qu'il doit manquer un truc dans ton systéme, c'est pas normale que tu est des problémes sur presque chaque truc.

Non j'ai des problèmes différents sur des machines différentes nuance ^^.
J'ai la chance d'avoir gardé et récupéré plusieurs postes avec, pour la plupart des architectures différentes. Ce qui est bien utile quand tu veux tester des applications multi-plateforme (Java/[.net et mono]/ python (y'a perl et c[++] mais je connais pas assez xD)). Parceque les machines virtuelles ou même le multiboot c'est bien mais pas tant que ca :D

Bon revenons a nos moutons, j'avais déjà édité mon makefile manuellement pour y ajouter qtnetwork. Je le regarderais plus précisemment ce soir en comparant avec le tiens.

C'est pour quand au fait la fin des études? Tu fais quoi par la suite?
donald_duck
 
Posts: 33
Joined: Tue Dec 23, 2008 8:31 am

Re: [improving] changelog + RPM (build) Mandriva

Postby alpha_one_x86 » Tue Apr 07, 2009 8:14 am

Fin juin c'est la fin. Aprés vie active et j'aurai bien plus de temps.
User avatar
alpha_one_x86
Site Admin
 
Posts: 325
Joined: Sun Oct 26, 2008 9:09 am

Re: [improving] changelog + RPM (build) Mandriva

Postby donald_duck » Tue Apr 07, 2009 7:15 pm

OK il manquait bien -lQtNetwork dans LIBS :oops:
le make est passé je vais pouvoir continuer.
On avance, on avance... :)
donald_duck
 
Posts: 33
Joined: Tue Dec 23, 2008 8:31 am

Re: [improving] changelog + RPM (build) Mandriva

Postby thomas » Sun May 10, 2009 6:46 pm

Salut,

Je vois que tu fait un rpm pour Mandriva et ça m'intéresse !
Pourras tu nous tenir au courant si cela fonctionne ?

De même le problème que tu évoque dans ton dernier post ressemble à ce qui m'a bloqué dans ma tentative de compilation.
[Lien down]
Donc si tu as résolu le problème, fait moi signe !

Merci
thomas
 
Posts: 3
Joined: Mon Mar 23, 2009 9:13 pm

Next

Return to Autre



cron