STR #1380

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1380

Application:FLTK Library
Status:5 - New
Priority:3 - Moderate, e.g. unable to compile the software
Scope:2 - Specific to an operating system
Summary:make install fails with "--enable-shared" and OpenGL disabled (by configure)
Created By:ntlucas
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]
Name/Time/Date Filename/Size top right image
#1 ntlucas
13:13 Jul 28, 2006
bottom left image   bottom right image

Trouble Report Comments:

Post Text ]
Name/Time/Date Text top right image
#1 ntlucas
12:58 Jul 28, 2006
It seems STR #1368 was fixed/closed without testing ;-)
Revision 5273 doesn't fix it, just changes the problem to another place:

=== installing glut ===
Installing shared libraries...
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[1]: *** [install_shared] Error 2
make: *** [install] Error 2

And "make -n install" gives:

=== installing glut ===
echo "Installing shared libraries..."
rm -f /usr/local/lib/../lib/libfltk2_glut.a_glut.2.dll
if [ -f "/usr/local/lib/" ]; then rm -f /usr/local/lib/
if [ "" ]; then rm -f /usr/local/lib/; fi
cp  /usr/local/lib
chmod 755 /usr/local/lib/
if [ "" ]; then \
                ln -s  /usr/local/lib/; fi
if [ -f "../lib/../lib/libfltk2_glut.a_glut.2.dll" ]; then cp ../lib/../lib/libfltk2_glut.a_glut.2.dll /usr/local/lib; fi
#2 ntlucas
13:05 Jul 28, 2006
It seems it's missing an "fi" on the end of the line.
Building now to check if it's that...
#3 ntlucas
13:13 Jul 28, 2006
Only the ";fi" doesn't solve it, because it continues to use empty strings on the script just after it.

The attached patch solves it, but seems like a hack...
#4 fabien
02:29 Jul 29, 2006
Could you please indicate
what compiler, compiler version, platform
and configure option
you use.
#5 ntlucas
08:12 Jul 29, 2006
Sorry, I feel stupid for forgeting that info before.

$ gcc --version
gcc (GCC) 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
$ autoconf --version
autoconf (GNU Autoconf) 2.59
$ uname -a
Linux ubu 2.6.15-26-686 #1 SMP PREEMPT Mon Jul 17 20:14:14 UTC 2006 i686 GNU/Linux

As can be pretty much guessed, it's a Linux [K]Ubuntu system (Dapper).

I simply used "configure --enable-shared --disable-cairo" (disabled cairo just to make sure, although it's the default).

I think the fix I posted and the result of "make -n" pretty much sums where the problem is. But I don't like using "if"'s on Makefiles as that usually means problems latter on.
#6 vedran
02:43 Sep 07, 2006
I am having the same issue and patch by ntlucas is fixing it here too.  
bottom left image   bottom right image

Return to Bugs & Features | Post Text | Post File ]


Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.