View previous topic :: View next topic |
Author |
Message |
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 09, 2005 5:51 pm Post subject: [COMPILATION] ScanTool.net pour Linux (resolu) |
|
|
Bon, je vous mets juste le lien vers mon autre post pour pas faire une repetition, mais je voudrais que vous y jetiez un coup d'oeil si vous pouvez.. Merci d'avance, surtout les gros bills genre kernel_sensei et autres (vous vous reconnaitrez!)
https://forums.gentoo.org/viewtopic-t-379187.html _________________ Votre moment detente
What is the nature of conflict?
Last edited by Trevoke on Fri Sep 09, 2005 8:02 pm; edited 1 time in total |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 09, 2005 7:22 pm Post subject: |
|
|
Alors le principe la c'est que je sauvegarde ca dans un fichier scantool-linux.patch ... Ensuite je mets ce patch dans ../ (a cause du code qui dit scantool/makefile .. je suppose)..
et ensuite je fais
patch -Np1 -i ../scantool-linux.patch
de l'interieur du repertoire scantool ? _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 09, 2005 7:34 pm Post subject: |
|
|
Je vais devoir modifier a la main en devinant ce que je suis cense faire, parce que ca a foire sur le patchage.
Je me demande ce que c'est que scantool-kees/makefile mais c'est peut-etre un truc imaginaire.. qu'est pas cense exister.. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 09, 2005 8:01 pm Post subject: |
|
|
`allegro-config --cflags --libs`
.. c'est ca qu'il fallait mettre au lieu de -lalleg .... _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Fri Sep 09, 2005 8:15 pm Post subject: |
|
|
Bon, qui veut m'aider a creer un ebuild?
Les instructions telles qu'elles sont correctes en ce moment.
Quote: | First off, download allegro, and install it. That should be straightforward.
Second of all, download DZCOMM which you can get from this place.
So download it...
Then from inside the folder, do this.
Quote: | $ chmod +x fixunix.sh
$ ./fixunix.sh
$ ./configure
$ make
# make install |
Download Scantool.Net 1.08 from this page.
This is a link to the file.
Next you have to apply a patch. That failed miserably for me, so I'm just going to attach my new, *working* makefile. Remove .txt and replace your existing makefile.
Then just type
$ make LINUX=1
and you'll be set. |
Et le "patch" (c'est-a-dire le nouveau makefile)
Code: | #
# Required libraries:
# allegro - http://www.talula.demon.co.uk/allegro/
# dzcomm - http://dzcomm.sourceforge.net/
#
# To build for Linux, use "make LINUX=1".
CC = gcc
ifdef DEBUGMODE
CFLAGS = -g -Wall
AL_LIBS = -lalld
DEFINES = -DDEBUG
else
ifdef RELEASE
CFLAGS = -Wall -Os -fexpensive-optimizations -s
AL_LIBS = `allegro-config --cflags --libs`
else
CFLAGS = -O -Wall
AL_LIBS = `allegro-config --cflags --libs`
endif
endif
ifdef MINGDIR
ifdef STATICLINK
LIBS = $(AL_LIBS)_s -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lole32 -ldinput -lddraw -ldxguid -lwinmm -ldsound
DEFINES += -DALLEGRO_STATICLINK
else
LIBS = $(AL_LIBS)
endif
WINDRES = windres -I rc -O coff
CFLAGS += -mwindows
OBJ = scantool.res
EXT = .exe
else
LIBS = -ldzcom $(AL_LIBS)
EXT = .exe
endif
ifdef LINUX
LIBS += -L/usr/X11R6/lib -lX11 -lXext -lXpm -ldl -lpthread -lm
EXT =
endif
ifndef NOWERROR
CFLAGS += -Werror
endif
ifdef DEFINES
CFLAGS += $(DEFINES)
endif
OBJ += main.o main_menu.o serial.o options.o sensors.o trouble_code_reader.o custom_gui.o error_handlers.o about.o
BIN = ScanTool$(EXT)
ifdef MINGDIR
endif
$(BIN): $(OBJ)
$(CC) $(CFLAGS) -o $(BIN) $(OBJ) $(LIBS)
all: $(BIN)
clean:
rm -f $(OBJ)
veryclean: clean
rm -f $(BIN)
scantool.res: scantool.rc scantool.ico
windres -O coff -o scantool.res -i scantool.rc
main.o: main.c globals.h main_menu.h error_handlers.h options.h serial.h
$(CC) $(CFLAGS) -c main.c
main_menu.o: main_menu.c globals.h about.h trouble_code_reader.h sensors.h options.h serial.h custom_gui.h main_menu.h
$(CC) $(CFLAGS) -c main_menu.c
serial.o: serial.c globals.h serial.h
$(CC) $(CFLAGS) -c serial.c
options.o: options.c globals.h custom_gui.h serial.h options.h
$(CC) $(CFLAGS) -c options.c
sensors.o: sensors.c globals.h serial.h options.h error_handlers.h sensors.h
$(CC) $(CFLAGS) -c sensors.c
trouble_code_reader.o: trouble_code_reader.c globals.h serial.h options.h custom_gui.h error_handlers.h trouble_code_reader.h
$(CC) $(CFLAGS) -c trouble_code_reader.c
custom_gui.o: custom_gui.c globals.h custom_gui.h
$(CC) $(CFLAGS) -c custom_gui.c
error_handlers.o: error_handlers.c globals.h serial.h error_handlers.h
$(CC) $(CFLAGS) -c error_handlers.c
about.o: about.c globals.h custom_gui.h about.h
$(CC) $(CFLAGS) -c about.c
|
_________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Mon Sep 12, 2005 12:25 pm Post subject: |
|
|
Merci beaucoup, j'aurais pas trouve sans toi
Je vais donc maintenant essayer de creer l'ebuild, ca va etre drole.. Je le sens venir d'ici _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
boozo Advocate
Joined: 01 Jul 2004 Posts: 3193
|
|
Back to top |
|
|
|