SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So... I have decided to start creating graphical apps for Linux... ( kind of a baby that says: "... I have decided that one day I will beat Usain Bolt in 100m sprint"... )
alex@iskandhar:~/Slackware3/srcPkg/libL3D/libL3D-0.1.2$ ls
CHANGELOG COPYING INSTALL Makefile PATCHING README TODO data/ doc/ examples/ include/ obj/ src/ test/ version
alex@iskandhar:~/Slackware3/srcPkg/libL3D/libL3D-0.1.2$ make
g++ -Wall -pedantic -c src/screen.cpp -I./include/ -o obj/screen.o
In file included from ./include/L3D/L3D.h:29,
from src/screen.cpp:12:
./include/L3D/maths.h: In member function 'float L3DVector3::glVertex()':
./include/L3D/maths.h:161: warning: no return statement in function returning non-void
In file included from ./include/L3D/L3D.h:32,
from src/screen.cpp:12:
./include/L3D/md2.h: At global scope:
./include/L3D/md2.h:81: warning: 'typedef' was ignored in this declaration
./include/L3D/md2.h: In constructor 'MD2::MD2()':
./include/L3D/md2.h:133: warning: 'MD2::stateEnd' will be initialized after
./include/L3D/md2.h:128: warning: 'int MD2::numGLCommands'
./include/L3D/md2.h:147: warning: when initialized here
In file included from ./include/L3D/L3D.h:38,
from src/screen.cpp:12:
./include/L3D/path.h: At global scope:
./include/L3D/path.h:20: warning: 'typedef' was ignored in this declaration
./include/L3D/path.h:25: warning: 'typedef' was ignored in this declaration
./include/L3D/path.h:69: error: extra qualification 'L3DPath::' on member 'Draw'
src/screen.cpp: In function 'bool L3DUseRootWindow()':
src/screen.cpp:163: warning: format '%d' expects type 'int', but argument 2 has type 'Display*'
src/screen.cpp:163: warning: format '%d' expects type 'int', but argument 3 has type 'Window'
src/screen.cpp:81: warning: unused variable 'dpyWidth'
src/screen.cpp:81: warning: unused variable 'dpyHeight'
src/screen.cpp:82: warning: unused variable 'i'
src/screen.cpp:85: warning: unused variable 'modes'
src/screen.cpp:86: warning: unused variable 'modeNum'
src/screen.cpp:88: warning: unused variable 'wmDelete'
make: *** [obj/screen.o] Error 1
alex@iskandhar:~/Slackware3/srcPkg/libL3D/libL3D-0.1.2$
Does anyone have any Idea of what is wrong here...?
I think it has to do with declarations and in header files... but is there a way to fix this in the Makefile...?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
Does anyone have any Idea of what is wrong here...?
The code is seven years old .. at least.
Just edit line 1 in the Makefile to : CC=g++-2.95 -Wall -pedantic
The g++-2.95 is only available on Debian Etch and CentOS 3.9 ,
And cannot be used on a modern OS.
'make' provides : libL3D.a libL3D.so.0.1.0
on Debian Etch, 32 Bits.
My 64 Bit computer said goodbye five hours ago, so the above
is all you can get today. ( If you send an email.)
.....
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
"v-1.90" :
/home/alex/OpenFOAMH/home/vgui : Your location.
This application is one of those with an unusual
structure, and with unusual paths in the Makefiles.
So the only accepted location is : /home/alex/home/vgui
.. so just do 'tar xvf <path-to>/v-1.90.tar.gz'
directly in "/home/alex/".
Unless of course you will rewrite all the Makefiles.
P.S. , 1 : Please read the top Makefile to see
"Available targets:" , line 42.
P.S. , 2 : The code is from 2003 (2002), gcc/g++ 4.4.1 work OK,
( I did not patch ) so this code is written to be perfect.
..... Some Linux OS will probably need the patch ...
"gcc/g++ 2.95" did tolerate sloppy code, that's one reason
for some ten year old code to require version 2.95.
.....
Followed yr advice about location of source tree, and made an Installable package... needed no patching at all, but it only built using Intel Compilers ... strange... I even used a fresh source tree, and edited the Config.mk... no avail... only under Intel...
...Anyway, I built EasyAnim using the built V-1.90 Vgui libs, and had to build them using Intel too... the referenced objects in VGui libraries were all Intel ... cstdio_Intel_... string_Intel_... no GNU allowed...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
http://connie.slackware.com/~alien/s...s/gcc34/pkg64/
> gcc34 , g++34.
I did this on Slackware 13 - 64 :
cd home/vgui/ , make all , make all CXX=g++34 , make all.
.. And it ended up that third time with no errors.
( But I don't know, if the libs are usable.)
'libL3D' : Made an experiment with the gcc/g++ 3.2.3 from
CentOS 3.9 yesterday : Modified it to work on Slamd 12.1-64.
( Renamed / removed conflicting files.)
Got the most compiled. The main binaries. The static library.
But not the shared library.
So I still hope, it will succeed on CentOS 3.9 64 Bits.
Will get the disks this week, I hope.
.....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.