qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

Unable to compile under debian squeeze / Something Wrong #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Figure out how to compile liblept...
2. run 'make' in libwebp/
3. Push button, receive butthurt

What is the expected output? What do you see instead?

Make succeeding.

What version of the product are you using? On what operating system?

Make fails because ld fails:

g++ -Werror -fPIC -o webpconv webpconv.o 
../leptonlib-1.066/lib/nodebug/liblept.a -ljpeg -lpng -lz -lm libwebp.o -lvpx 
-lpthread
webpconv.o: In function `main':
webpconv.c:(.text+0x4a9): undefined reference to `pixReadWebP'
webpconv.c:(.text+0x5c3): undefined reference to `pixWriteWebP'
webpconv.c:(.text+0x9db): undefined reference to `pixWriteWebPwithTargetPSNR'
collect2: ld returned 1 exit status
make: *** [webpconv] Error 1

I'm running a nearly fresh Squeeze installation, with all the libs and dev 
stuff built and installed.

this however is a sign someone's compiling C like its C++!

Please provide any additional information below.

I had to copy .../leptonlib-.../src/liblept.a to lib/nodebug/ to keep the make 
from barking at me.

Original issue reported on code.google.com by 0.fracta...@gmail.com on 1 Oct 2010 at 11:27

GoogleCodeExporter commented 8 years ago
Interesting. I had no problem compiling it using sid. I managed somehow to 
build liblept without any copy (just go into src, and run make. DO NOT USE 
./configure).

Anyway strange error.

Original comment by witold.b...@gmail.com on 2 Oct 2010 at 3:37

GoogleCodeExporter commented 8 years ago
Yes, I experienced this compiling it on AmigaOS 4.1 too. The solution for me 
was to add webpio.c and webpiostub.c to the Makefile in src/, as well as 
setting #define HAVE_LIBWEBP 1 in config_auto.h

After rebuilding the library, and manually moving it to the "nodebug" folder, 
the problem was solved.

Original comment by mickj...@gmail.com on 3 Oct 2010 at 3:54

GoogleCodeExporter commented 8 years ago
I have exactly the same problem under OpenSuse 11.2

Original comment by tleichte...@gmail.com on 7 Oct 2010 at 2:37

GoogleCodeExporter commented 8 years ago

Original comment by rab...@google.com on 31 Oct 2010 at 2:42

GoogleCodeExporter commented 8 years ago

Original comment by vikaas.a...@gmail.com on 23 Nov 2010 at 10:38

GoogleCodeExporter commented 8 years ago
Can you give a try with the latest version 0.0.4

Original comment by vikaas.a...@gmail.com on 23 Nov 2010 at 12:40

GoogleCodeExporter commented 8 years ago
Can you try following steps with version 0.0.4 source tar:

untar  0.0.4 source files

1.) cd webp/leptonlib-1.066;

2.) ./configure && make clean && make && sudo make install;

3.) ls -al /usr/local/include/liblept/leptprotos.h; // Verify the date-time 
stamp of this header include file.

4.) ls -alt /usr/local/lib/liblept.a;  // Verify the date-time stamp of newly 
created liblept.a

5.) grep pixWriteWebPwithTargetPSNR /usr/local/include/liblept/leptprotos.h; // 
Verify that this patched leptonica source code (header) have the necessary 
functions required for webpconv.

6.) strings /usr/local/lib/liblept.a | grep pixWriteWebPwithTargetPSNR; // 
Verify that this patched version of liblept.a have the necessary functions 
required for webpconv

7.) cd ../libwebp;

8.) ./configure && make clean && make && sudo make install;

Verify that following command was used to link 'webpconv' binary:
g++ -Werror -Wall -O2 -g -O2 -L/usr/X11R6/lib -L/usr/local/lib  -o webpconv 
webpimg.o webpconv.o -llept -ljpeg -lpng -lz -lm -lvpx -lpthread -lvpx

Original comment by vikaas.a...@gmail.com on 29 Nov 2010 at 10:53

GoogleCodeExporter commented 8 years ago

Original comment by vikaas.a...@gmail.com on 29 Nov 2010 at 10:55

GoogleCodeExporter commented 8 years ago
Try with the latest version.
Closing this. Will reopen once get any update from requester.

Original comment by vikaas.a...@gmail.com on 2 Dec 2010 at 9:16