Schrift
Wiki:Tipp zum Debugging: use Data::Dumper; local $Data::Dumper::Useqq = 1; print Dumper \@var;
[thread]1090[/thread]

bibliotheken mit cygwin: analog linux?



<< |< 1 2 3 >| >> 27 Einträge, 3 Seiten
Cooly
 2003-10-20 21:46
#11514 #11514
User since
2003-08-04
81 Artikel
BenutzerIn
[Homepage] [default_avatar]
seit zwei Tagen versuche ich diese bibliothek bzw. die Headerfiles unter windows zu integrieren -- laut readme soll es unter Linux und mit hilfe von visual c++ unter windows funktionieren

visual c++ ist bei mir nicht vorhanden also dachte ich mir das ich das analog linux mittels cygwin installieren könnte -- gcc ist vorhanden

anscheinend funktioniert die Umsetzung nicht 1:1 -- z.B. scheint make nicht dasselbe zu machen

wobei ich auch noch nicht verstanden was eigentlich aus diesen files gebildet werden muss :(

hoffe auf lösungansätze

Danke

Cooly\n\n

<!--EDIT|Cooly|1066672174-->
esskar
 2003-10-21 03:12
#11515 #11515
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
hmm...
also das make läuft unter cygwin komplett durch und erzeugt eine libice.a

mit "runlib libice.a" kannst du sie wohl ausführen...
was bei mir jetzt allerdings zu keinem ergebnis führt...

was funzt bei dir denn nicht?
Meldungen?
betterworld
 2003-10-21 13:34
#11516 #11516
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
[quote=Cooly,20.10.2003, 19:46]z.B. scheint make nicht dasselbe zu machen[/quote]
Wie sehen denn die Makefiles aus? Sind die nur auf VC++ zugeschnitten oder allgemein gehalten?
esskar
 2003-10-21 14:03
#11517 #11517
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
[quote=betterworld,21.10.2003, 11:34][quote=Cooly,20.10.2003, 19:46]z.B. scheint make nicht dasselbe zu machen[/quote]
Wie sehen denn die Makefiles aus? Sind die nur auf VC++ zugeschnitten oder allgemein gehalten?[/quote]
wie gesagt...
ich habe das makefile benutzt, dass dabei war und es unter cygwin kompiliert...
no probs... es sieht auich normal aus...
Cooly
 2003-10-21 16:55
#11518 #11518
User since
2003-08-04
81 Artikel
BenutzerIn
[Homepage] [default_avatar]
[quote=esskar,21.10.2003, 01:12]hmm...
also das make läuft unter cygwin komplett durch und erzeugt eine libice.a

mit "runlib libice.a" kannst du sie wohl ausführen...
was bei mir jetzt allerdings zu keinem ergebnis führt...

was funzt bei dir denn nicht?
Meldungen?[/quote]
hi

kannst du bitte deine Schritte posten -- genauso wie in der readme erklärt??

danke
esskar
 2003-10-21 17:15
#11519 #11519
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
ich hab einfach alles entpackt...

dann bin ich via cygwin ins verzeichnis ice\ verzeichnis gewechselt

dort hab ich dann make eingegeben und fertig...
die readme hab ich erst gar nicht gelesen!
Cooly
 2003-10-21 19:51
#11520 #11520
User since
2003-08-04
81 Artikel
BenutzerIn
[Homepage] [default_avatar]
hehe leider kommt wenn ich make ausführe:
Quote
Error makefile 191: Command syntax error

:(
betterworld
 2003-10-21 21:51
#11521 #11521
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
Dann haette ich gerne die Zeile 191 von der Makefile... am besten mit Kontext
Cooly
 2003-10-21 22:36
#11522 #11522
User since
2003-08-04
81 Artikel
BenutzerIn
[Homepage] [default_avatar]
ähmm ja ok in Zeile 191 steht nix - hier das ganze makefile:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#------------------------------------------------------------------
# Makefile für ICE-Funktionen und Display-Modul
# make clean; Objekte und Bibliotheken loeschen
# make dep; Abhaengigkeiten erzeugen
# make all; Bibliothek erzeugen
#------------------------------------------------------------------

#CC=g++

#Compileroptionen
COPT=$(OPT) -g -Wall

INCLUDE= -I. -I../libbasic

#------------------------------------------------------------------
# Objekte für ICE-Funktionen
#------------------------------------------------------------------

ICEOBJECTS=Aco.o \
BitCount.o \
DPList.o \
Delta.o \
Entropy.o \
MaxSrch.o \
MtchTool.o \
PackB.o \
PeakDtct.o \
PeakVal.o \
peak1d.o \
PhaseCor.o \
PreProc.o \
affinfit.o\
analygeo.o\
arith.o\
assignment.o\
assignment1.o\
assignment2.o\
based.o\
bitfile.o\
boxes.o \
bspline.o \
calib.o\
calproc.o\
class.o\
classc.o\
classpe.o\
classmd.o\
classnn.o\
classnb.o\
classb2.o\
complex.o\
contfeat.o\
contool0.o\
contool1.o\
contool2.o\
contur.o\
contur0.o\
contur1.o\
contlist.o\
conv.o \
convex.o \
csBitF.o \
csHuffm.o \
cstream.o \
darith.o\
derive.o\
descrio.o\
distance.o\
draw.o \
drawmod.o\
dxf.o \
edgelist.o\
eplyread.o\
equsys.o\
feature.o\
filter.o\
filter2.o\
fit1.o\
fit2.o\
fit3.o\
fourier.o\
fourier1.o\
fourier2.o\
fourier3.o\
fourier4.o\
frames.o\
genrec.o\
gentrans.o\
geo.o \
geo_ob.o \
glinefit.o\
haar.o\
handcam.o\
heap.o\
hiddenln.o\
hist.o\
huffman.o\
icefunc.o \
imagec.o \
imgdbase.o\
imgdescr.o\
imgdimpr.o\
inspect.o\
interact.o\
lineqn.o\
line.o\
lists.o\
klt.o \
lzw.o \
match.o\
matchimg.o\
matdef.o\
mateigen.o\
mathfunc.o \
mdrclass.o\
menu.o\
models.o\
momclass.o\
momente.o\
monorec.o\
morph.o\
omatch.o\
paint1.o\
paint2.o\
paint3.o\
peclass.o\
planrec.o\
pointsel.o\
polyfit.o\
polygon.o\
rank.o\
readwrit.o\
reccirc.o\
radial.o\
ridge.o\
root.o\
segment.o\
simplex1.o \
simplex2.o \
simplex3.o \
simplex4.o \
simplex5.o \
simplex_1.o \
simplex_2.o \
simplex_3.o \
sort.o\
statist.o\
threshld.o\
trans.o\

.c.o:
$(CC) $(INCLUDE) $(COPT) -c $*.c

%.o: %.cpp
$(CXX) $(INCLUDE) $(COPT) -c $*.cpp

#------------------------------------------------------------------
all: lib

rebuild: clean\
dep\
all

lib: libice.a\
subdirs

dep:
-rm depend
touch depend
# makedepend $(COPT) $(INCLUDE) *.cpp -f depend
$(CXX) -M $(COPT) $(INCLUDE) *.cpp >> depend
make -C devices dep


clean:
-rm -f *.o *.a depend
make -C devices clean


libice.a: $(ICEOBJECTS) subdirs
ar ruvs libice.a $(ICEOBJECTS)
ranlib libice.a

#------------------------------------------------------------------
subdirs:
$(MAKE) -C devices

#------------------------------------------------------------------

-include depend


191 ist die unter -include depend

- jetzt bleibt die frage warum das Ganze bei esskar funktioniert

thx Cooly\n\n

<!--EDIT|Cooly|1066761470-->
betterworld
 2003-10-21 22:58
#11523 #11523
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
Was fuer ein make benutzt Du denn? Ich habe gerade mal nachgeschlagen, was -include macht:
[quote=texinfo page fuer make]
* The `-include' directive to include makefiles with no error for a
nonexistent file comes from SunOS 4 `make'. (But note that SunOS 4
`make' does not allow multiple makefiles to be specified in one
`-include' directive.) The same feature appears with the name
`sinclude' in SGI `make' and perhaps others.
[/quote]
Das klingt so, als ob -include nicht von allen makes unterstuetzt wird.

-include funktioniert genau wie include (ohne Minus), bloss dass es keinen Fehler gibt, wenn das, was dahinter steht, nicht existiert. Versuch eventuell mal, das Minux fortzulassen.
<< |< 1 2 3 >| >> 27 Einträge, 3 Seiten



View all threads created 2003-10-20 21:46.