Quellcode |
|
1 2 3 |
make make test make install |
Quellcode |
|
1 |
$ make |
Quellcode |
|
1 |
c++: libpng-1.2.5/libpng.a: No such file or directory |
Quellcode |
|
1 |
$ locate libpng.a |
Zitat
You will need a copy of libpng, and zlib.
After building libpng, and zlib,
update the Makefile ZLIBINC, and LPNGINC
to show the install paths for
zlib and libpng.
Quellcode |
|
1 2 3 4 5 6 |
# Where the libpng and zlib library and include files are located LPNGINC=libpng-1.2.5 ZLIBINC=zlib-1.1.4 LPNGLIB=libpng-1.2.5 ZLIBLIB=zlib-1.1.4 |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BigFish« (12.07.2005, 21:35)
Quellcode |
|
1 2 3 |
make make test make install |
Zitat
===============================================================================
Building Icon2PNG - Linux Edition
You will need a copy of libpng, and zlib. After building libpng, and zlib,
update the Makefile ZLIBINC, and LPNGINC to show the install paths for
zlib and libpng.
You should then only have to run
make
make test
make install
===============================================================================
Using Icon2PNG - Linux Edition
Basic Usage:
./icns2png OmniWeb.icns
Icon2PNG Linux Edition - (C) 2002 Mathew Eis
Converting OmniWeb.icns to OmniWeb.png...
This will result in a file OmniWeb.png with a 128x128 icon from OmniWeb.icns.
===============================================================================
Zitat
# Makefile for Icns2PNG, MacOS X / Linux
#
# Copyright (C) 2002 Mathew Eis <mathew@bearca.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Library General Public License for more details.
#
# You should have received a copy of the GNU Library General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
#
# version number
version=0.5
# where make install puts icns2png
prefix=/usr/local
# Where the libpng and zlib library and include files are located
LPNGINC=libpng-1.2.5
ZLIBINC=zlib-1.2.2
LPNGLIB=libpng-1.2.5
ZLIBLIB=zlib-1.2.2
CC=c++
CFLAGS=-O -I$(LPNGINC) -I$(ZLIBINC)
CPPFLAGS=$(CFLAGS)
LDFLAGS=-L. -L$(LPNGINC) -L$(ZLIBLIB) -lpng12 -lz -lm
LDFLAGS_A=-L$(LPNGINC) -L$(ZLIBLIB) $(LPNGLIB)/libpng.a -lz -lm
OBJS = icns2png.o iconvert.o pngwriter.o byteswap.o
all: icns2png
test: icns2png
@cd test; rm -f Gnu_I.png Gnu_II.png Gnu_III.png; \
if ../icns2png Gnu_I.icns Gnu_II.rsrc Gnu_III.bin; then \
echo 'Icns2PNG test successful!'; \
else \
echo 'Icns2PNG test failed internal error'; \
fi; cd ..;
install: icns2png
install -m 755 icon2png $(prefix)/bin
release: icns2png test
@mkdir -p icon2png-$(version); \
cp icns2png icon2png-$(version); \
cp README icon2png-$(version); \
rm -f icon2png-$(version).tar; \
tar -cf icon2png-$(version).tar icon2png-$(version); \
rm -rf icon2png-$(version); \
echo 'Icns2PNG $(version) release package created.'; \
rm -f #.o;
icns2png: $(OBJS)
$(CC) -o icns2png $(CFLAGS) $(OBJS) $(LDFLAGS_A)
clean:
rm -f #.o icns2png
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BigFish« (12.07.2005, 18:31)
Quellcode |
|
1 |
$ ln -s libpng-1.2.8 libpng-1.2.5 |
Quellcode |
|
1 |
# ldconfig |
Quellcode |
|
1 2 3 4 |
paul@saturn ~/Desktop/Downloads/icns2png $ make c++ -o icns2png -O -Ilibpng-1.2.5 -Izlib-1.2.2 icns2png.o iconvert.o pngwriter.o byteswap.o -Llibpng-1.2.5 -Lzlib-1.2.2 libpng-1.2.5/libpng.a -lz -lm c++: libpng-1.2.5/libpng.a: No such file or directory make: *** [icns2png] Error 1 |
Zitat
die .configure erstellt meines wissens nach nicht die make datei.
Zitat
.configure gibt einem aber viele Möglichkeiten Pfade und Optionen anzugeben
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Rudwardt« (12.07.2005, 19:35)
Quellcode |
|
1 2 3 4 5 |
# Where the libpng and zlib library and include files are located LPNGINC=libpng-1.2.8 ZLIBINC=zlib-1.2.2 LPNGLIB=libpng-1.2.8 ZLIBLIB=zlib-1.2.2 |
Quellcode |
|
1 2 3 4 |
paul@saturn ~/Desktop/Downloads/icns2png $ make c++ -o icns2png -O -Ilibpng-1.2.8 -Izlib-1.2.2 icns2png.o iconvert.o pngwriter.o byteswap.o -Llibpng-1.2.8 -Lzlib-1.2.2 libpng-1.2.8/libpng.a -lz -lm c++: libpng-1.2.8/libpng.a: No such file or directory make: *** [icns2png] Error 1 |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »BigFish« (12.07.2005, 20:15)
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 12 |
# Where the libpng and zlib library and include files are located LPNGINC=libpng-1.2.5 ZLIBINC=zlib-1.2.2 LPNGLIB=libpng-1.2.5 ZLIBLIB=zlib-1.2.2 CC=c++ CFLAGS=-O -I$(LPNGINC) -I$(ZLIBINC) CPPFLAGS=$(CFLAGS) LDFLAGS=-L. -L$(LPNGINC) -L$(ZLIBLIB) -lpng12 -lz -lm LDFLAGS_A=-L$(LPNGINC) -L$(ZLIBLIB) $(LPNGLIB)/libpng.a -lz -lm |
Quellcode |
|
1 |
c++: libpng-1.2.8/libpng.a: No such file or directory |
Zitat
Original von amielke
die .configure erstellt meines wissens nach nicht die make datei. .configure gibt einem aber viele Möglichkeiten Pfade und Optionen anzugeben.
Quellcode |
|
1 2 3 4 5 |
# Where the libpng and zlib library and include files are located LPNGINC=libpng-1.2.8 ZLIBINC=zlib-1.2.2 LPNGLIB=/usr/lib ZLIBLIB=zlib-1.2.2 |
Quellcode |
|
1 2 3 4 |
saturn icns2png # make install install -m 755 icon2png /usr/local/bin install: cannot stat `icon2png': No such file or directory make: *** [install] Error 1 |
Quellcode |
|
1 2 |
install: icns2png install -m 755 icon2png $(prefix)/bin |
Zitat
install: icns2png
install -m 755 icon2png $(prefix)/bin
Quellcode |
|
1 2 |
saturn icns2png # make install install -m 755 icns2png /usr/local/bin |