rlk / scmtiff Goto Github PK
View Code? Open in Web Editor NEWSpherical Cube Map processing utility
License: Other
Spherical Cube Map processing utility
License: Other
This restriction is a holdover from a previous approach to page min/max storage and is no longer necessary.
gcc -std=c99 -Wall -m64 -fopenmp -O3 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -DM_PI=3.14159265358979323846 -o scmogle err.o util.o scmdef.o scmdat.o scmio.o scm.o img.o scmogle.o -lz -lglew32 -lglut -lGL -lpthread -lm
/usr/bin/ld: cannot find -lglew32
collect2: error: ld returned 1 exit status
Didn't try on a 32-bit machine but the linker flags from pkg-config on 64-bit Ubuntu/Mint are:
$pkg-config --libs glew
-lGLEW -lGLU -lGL
From makefile:
CC = /usr/local/bin/gcc -std=c99 -Wall -m64 -fopenmp -O3
Simpler and more reliable to just use gcc without the path since /usr/local/bin is normally on the system path (at least for Ubuntu).
scmtiff and smogle both need to link to the math library as shown below
gcc -std=c99 -Wall -m64 -fopenmp -O3 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -DM_PI=3.14159265358979323846 -o scmtiff err.o util.o scmdef.o scmdat.o scmio.o scm.o img.o jpg.o png.o tif.o pds.o extrema.o convert.o rectify.o combine.o mipmap.o border.o finish.o polish.o normal.o sample.o scmtiff.o -ljpeg -ltiff -lpng -lz -lpthread
/usr/bin/ld: img.o: undefined reference to symbol 'fmod@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command lin
gcc -std=c99 -Wall -m64 -fopenmp -O3 -I/usr/local/include -D_FILE_OFFSET_BITS=64 -DM_PI=3.14159265358979323846 -o scmogle err.o util.o scmdef.o scmdat.o scmio.o scm.o img.o scmogle.o -lz -lGLEW -lglut -lGL -lpthread
/usr/bin/ld: img.o: undefined reference to symbol 'fmod@@GLIBC_2.2.5'
append -lm to the rules
scmtiff : err.o util.o scmdef.o scmdat.o scmio.o scm.o img.o jpg.o png.o tif.o pds.o extrema.o convert.o rectify.o combine.o mipmap.o border.o finish.o polish.o normal.o sample.o scmtiff.o
$(CC) $(CFLAGS) $(LFLAGS) -o $@ $^ $(LIBJPG) $(LIBTIF) $(LIBPNG) $(LIBZ) $(LIBEXT) -lm
scmogle : err.o util.o scmdef.o scmdat.o scmio.o scm.o img.o scmogle.o
$(CC) $(CFLAGS) $(LFLAGS) -o $@ $^ $(LIBZ) $(LIBGLEW) $(LIBOGL) $(LIBEXT) -lm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.