realh / normalmap Goto Github PK
View Code? Open in Web Editor NEWCommand line utility to generate normal map textures from PNG files.
License: GNU General Public License v3.0
Command line utility to generate normal map textures from PNG files.
License: GNU General Public License v3.0
I get the following error when trying to make
the file:
make[1]: Entering directory '/home/david/code/shadercloud/bin/normalmap'
Making all in src
make[2]: Entering directory '/home/david/code/shadercloud/bin/normalmap/src'
gcc -I/usr/include/libpng16 -g -O2 -lpng16 -lz -lpopt -o normalmap normalmap-main.o normalmap-nmpng.o normalmap-normalmap.o normalmap-options.o -lm
/usr/bin/ld: normalmap-nmpng.o: in function `normalmap_free_png':
/home/david/code/shadercloud/bin/normalmap/src/nmpng.c:71: undefined reference to `png_image_free'
/usr/bin/ld: normalmap-nmpng.o: in function `normalmap_load_png':
/home/david/code/shadercloud/bin/normalmap/src/nmpng.c:38: undefined reference to `png_image_begin_read_from_stdio'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/nmpng.c:45: undefined reference to `png_image_finish_read'
/usr/bin/ld: normalmap-nmpng.o: in function `normalmap_save_png':
/home/david/code/shadercloud/bin/normalmap/src/nmpng.c:61: undefined reference to `png_image_write_to_stdio'
/usr/bin/ld: normalmap-options.o: in function `normalmap_options_get':
/home/david/code/shadercloud/bin/normalmap/src/options.c:130: undefined reference to `poptGetContext'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:135: undefined reference to `poptAddAlias'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:137: undefined reference to `poptGetNextOpt'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:170: undefined reference to `poptFreeContext'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:144: undefined reference to `poptStrerror'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:144: undefined reference to `poptBadOption'
/usr/bin/ld: /home/david/code/shadercloud/bin/normalmap/src/options.c:166: undefined reference to `poptPrintUsage'
/usr/bin/ld: normalmap-options.o:(.data.rel+0x190): undefined reference to `poptHelpOptions'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:352: normalmap] Error 1
make[2]: Leaving directory '/home/david/code/shadercloud/bin/normalmap/src'
make[1]: *** [Makefile:357: all-recursive] Error 1
make[1]: Leaving directory '/home/david/code/shadercloud/bin/normalmap'
make: *** [Makefile:298: all] Error 2
Note that i have versions:
libpopt-dev is already the newest version (1.16-14).
libpng-dev is already the newest version (1.6.37-2).
Hi there. I'd love to check this software out but am having some trouble.
I googled around a bit but installing 'libtool' did not fix the issues as one post said.
Without further ado:
➜ dev git clone https://github.com/realh/normalmap.git
Cloning into 'normalmap'...
remote: Enumerating objects: 204, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 204 (delta 1), reused 3 (delta 1), pack-reused 196
Receiving objects: 100% (204/204), 1.22 MiB | 499.00 KiB/s, done.
Resolving deltas: 100% (114/114), done.
➜ dev normalmap
➜ normalmap git:(master) ls
AUTHORS ChangeLog configure.ac COPYING INSTALL Makefile.am mkycmflags NEWS README README.md src win32
➜ normalmap git:(master) autoconf
configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
➜ normalmap git:(master)
➜ normalmap git:(master) autoconf #running again 'works'
➜ normalmap git:(master) ./configure
configure: error: cannot find required auxiliary files: config.guess config.sub
➜ normalmap git:(master)
As you can see, running autoconf
the second time emits no errors (odd?), but then ./configure does not work.
I installed autoconf and automake
just today with sudo apt upgrade && sudo apt install autoconf && sudo apt install automake
Any suggestions?
Thank you!
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.