LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-16-2010, 08:23 PM   #1
forum1793
Member
 
Registered: May 2008
Posts: 312

Rep: Reputation: 34
cad


Are there working slackbuilds for brlcad or qcad.

For brlcad, I found the 12.2 version and it did have an arch line that I could change to x86_64. It does a 15 second delay telling us not to install at /usr as it might overwrite some files. But it didn't finish compiling. It tells me it can't find a makefile. Have to look and see if autogen or something has to be called.

For qcad, I tried alien's 2008 build script. That was quite a bit before the 64 bit slackware and I was not surprised when it kicked out. It ends with:

Code:
cp: `./qcad/qm/qcad_el.qm' and `qcad/qm/qcad_el.qm' are the same file
cp: `./qcad/qm/qcad_cs.qm' and `qcad/qm/qcad_cs.qm' are the same file
cp: `./qcad/qm/qcadcmd_sk.qm' and `qcad/qm/qcadcmd_sk.qm' are the same file
cp: `./qcad/qm/qcad_sk.qm' and `qcad/qm/qcad_sk.qm' are the same file
cp: cannot stat `qcad': No such file or directory
qcad.SlackBuild FAILED at line 200
Does anyone else have scripts of these working?

thank you,
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-18-2010, 12:53 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
BRLCAD, yes I think so
http://www.linuxquestions.org/questi...ghlight=brlcad

LQ Search : keyword = brlcad , User Name = Alexvader
http://www.linuxquestions.org/questi...archid=3908999

.....
 
Old 03-18-2010, 01:01 PM   #3
ROXR
Member
 
Registered: Jan 2009
Location: Spain
Posts: 123
Blog Entries: 1

Rep: Reputation: 21
I tried to activate tcl and tk and it compile, with many errors to deprecated char* string, but it compile and build package.
only enable tcl and tk
Code:
#!/bin/sh

# Slackware build script for BRL-CAD

# Written by Nikolai Saika <nicksaika@gmail.com>
# Released under the WTFPL - http://sam.zoy.org/wtfpl/

PRGNAM=brlcad
VERSION=${VERSION:-7.16.6}
ARCH=${ARCH:-x86_64}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}

CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
fi

set -e # Exit on most errors

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;
#./autogen.sh
echo yes | \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --enable-tcl-build \
  --enable-tk-build \
  --disable-tkhtml3-build \
  --disable-jove-build \
  --build=$ARCH-slackware-linux

make
make install DESTDIR=$PKG

( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
)

( cd $PKG/usr/man
  find . -type f -exec gzip -9 {} \;
  for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
)

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc -name "Makefile*" -type f -exec rm -f {} \; || true
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
I downloaded external slackbuild source, from brlcad-7.16.6 home page.

Last edited by ROXR; 03-19-2010 at 02:15 AM.
 
Old 03-18-2010, 09:17 PM   #4
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
Hi, appreciate both of your responses. I thought I searched but maybe only for qcad. I tried your fix for brlcad and it did make it farther but died with:
Code:
In file included from ../../../../src/other/tkimg/pngtcl/pngtcl.h:131,
                 from png.c:24:
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:49: error: conflicting types for 'png_get_compression_buffer_size'
/usr/include/png.h:1508: note: previous declaration of 'png_get_compression_buffer_size' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:52: error: conflicting types for 'png_set_compression_buffer_size'
/usr/include/png.h:1511: note: previous declaration of 'png_set_compression_buffer_size' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:339: error: conflicting types for 'png_malloc'
/usr/include/png.h:2036: note: previous declaration of 'png_malloc' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:353: error: conflicting types for 'png_malloc_default'
/usr/include/png.h:2076: note: previous declaration of 'png_malloc_default' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:383: error: conflicting types for 'png_get_rowbytes'
/usr/include/png.h:2135: note: previous declaration of 'png_get_rowbytes' was here
make[4]: *** [png.lo] Error 1
make[4]: Leaving directory `/tmp/SBo/brlcad-7.14.0/src/other/tkimg/png'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/SBo/brlcad-7.14.0/src/other/tkimg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/SBo/brlcad-7.14.0/src/other'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/SBo/brlcad-7.14.0/src'
make: *** [all-recursive] Error 1
I think there is some newer source. I might give it a shot.
Edit: same error using brl-cad 7.16.4

Last edited by forum1793; 03-18-2010 at 09:28 PM.
 
Old 03-18-2010, 09:41 PM   #5
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
After looking briefly at configure, I try disabling what I assume is their internal build and using what slack comes with. Didn't work.

Code:
./configure \
  --prefix=/usr/brlcad \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --disable-tcl-build \
  --disable-tk-build \
  --disable-tkhtml3-build \
  --disable-jove-build \
  --build=$ARCH-slackware-linux \
  --with-x \
  --with-tcl \
  --with-tk
Code:
checking ... s e r v i c e s ... (8 of 9)
checking whether we have the essentials to make parsers... yes
checking for portable network graphics functionality... yes
checking whether to build the included portable network graphics library... no
checking for regular expression functionality... yes
checking whether to build the included regular expression library... no
checking for zlib compression functionality... yes
checking whether to build the included zlib compression library... no
checking for X11 header functionality... yes
checking for X11 link functionality... yes
checking whether to build against X11... yes
checking for Utah Raster Toolkit library functionality... no
checking whether to build the Utah Raster Toolkit... yes
checking for openNURBS functionality... no
checking whether to build the included openNURBS library... yes
checking whether to build NIST Step Class Libraries... no
checking for Tcl library functionality... yes
checking whether to build Tcl... no
checking for Tcl configuration... configure: error: yes directory doesn't contain tclConfig.sh
 
Old 03-19-2010, 01:52 PM   #6
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
qcad maybe some help BUT

I have managed to build and install qcad on slackware64-13.0
I have the kde3 compatibility packages installed from the extra/ dir

qcad-2.0.5.0-1-community.src.tar.gz
partlibrary-2.1.2.8-1.tar.gz
qcad-manual-en-2.1.0.0-1.html.zip

with 2 minor changes these will build and install from the Aliens slackbuild
change the ARCH to -x86_64
and comment out line.. export QTDIR="$(ls -1d /usr/lib/qt-3*)" .. as it is already properly set in /etc/profile

they will build and install
and now the BIG BUT

The actual executable "qcad" never gets built even though the slackbuild does not throw an error

on line 192 of qcad.Slackbuild
when qcad should be copied into the package directory
this error is reported but the build continues

cp: cannot stat `qcad': No such file or directory

maybe someone can tell me what is happening here
but so far I can't see what is happening prior to the error
I guess I should report to Alien, but he seems awful busy with the distribution
I am still playing around when I have time. so I may just solve it yet

john

Last edited by AlleyTrotter; 03-19-2010 at 01:58 PM. Reason: add line 2
 
Old 03-19-2010, 04:51 PM   #7
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
I run the pro version here just unpacked into /opt but it's only 32bit.

I did build the community edition when we were first testing Slackware64 on my Laptop and it worked just fine.

I'll have to see if I still have the SlackBuild.

Edit: Referring to qcad here

Last edited by mRgOBLIN; 03-19-2010 at 10:17 PM.
 
Old 03-19-2010, 09:34 PM   #8
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
For brlcad, I made a few changes to the configure and it now kicks out using external Tcl where it did previously using it's internal.

configure
Code:
./configure \
  --prefix=/usr/brlcad \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --disable-tcl-build \
  --disable-tk-build \
  --disable-tkhtml3-build \
  --disable-jove-build \
  --build=$ARCH-slackware-linux \
  --with-x \
  --with-tcl=/usr/lib64 \
  --with-tk=/usr/lib64
Code:
make[4]: Entering directory `/tmp/SBo/brlcad-7.16.4/src/other/tkimg/png'
/bin/sh ../../../../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../../include  -DPNG_PACKAGE_NAME=\"libpng\" -DPNGTCL_PACKAGE_NAME=\"pngtcl\" -DTKIMG_VERSION="\"1.3\"" -DTKIMG_PNG_PACKAGE_NAME=\"Tkimgpng\" -I../../../../src/other/tkimg/base -I../../../../src/other/tkimg/png -I../../../../src/other/tkimg/pngtcl     -I/usr/local/include -I/usr/X11/include -DBRLCADBUILD=1 -I../../../../include -I../../../../src/other/openNURBS   -O2 -fPIC -pipe -fno-strict-aliasing -fno-common -fexceptions -g -c -o png.lo png.c
In file included from ../../../../src/other/tkimg/pngtcl/pngtcl.h:131,
                 from png.c:24:
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:49: error: conflicting types for 'png_get_compression_buffer_size'
/usr/include/png.h:1508: note: previous declaration of 'png_get_compression_buffer_size' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:52: error: conflicting types for 'png_set_compression_buffer_size'
/usr/include/png.h:1511: note: previous declaration of 'png_set_compression_buffer_size' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:339: error: conflicting types for 'png_malloc'
/usr/include/png.h:2036: note: previous declaration of 'png_malloc' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:353: error: conflicting types for 'png_malloc_default'
/usr/include/png.h:2076: note: previous declaration of 'png_malloc_default' was here
../../../../src/other/tkimg/pngtcl/pngtclDecls.h:383: error: conflicting types for 'png_get_rowbytes'
/usr/include/png.h:2135: note: previous declaration of 'png_get_rowbytes' was here
make[4]: *** [png.lo] Error 1
make[4]: Leaving directory `/tmp/SBo/brlcad-7.16.4/src/other/tkimg/png'
Also, I'm using xfce and have removed all kde. Could that be problem?

Last edited by forum1793; 03-19-2010 at 09:37 PM.
 
Old 03-20-2010, 11:45 AM   #9
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
For brlcad and with the png related problem, I took a break from 64bit and tried this on slackware-13.0 32bit that has kde. Got some opennurb error.

I made this change and then used following configure and it compiled and made pacakge.

Code:
./configure \
  --prefix=/usr/brlcad \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --mandir=/usr/man \
  --x-includes=/usr/X11/include \
  --x-libraries=/usr/X11/lib \
  --disable-png-build \
  --disable-tcl-build \
  --disable-tk-build \
  --disable-tkhtml3-build \
  --disable-jove-build \
  --build=$ARCH-slackware-linux \
  --with-x \
  --with-tcl=/usr/lib \
  --with-tk=/usr/lib
During compile I got many message like that below and it took a long time. The produced package is ~156MB.
Code:
libtool: link: warning: `/usr/X11/lib/libstdc++.la' seems to be moved
copying selected object files to avoid basename conflicts...
using piecewise archive linking...
I haven't installed it yet but will post if it works in next day or so.
 
Old 03-24-2010, 08:51 PM   #10
forum1793
Member
 
Registered: May 2008
Posts: 312

Original Poster
Rep: Reputation: 34
So brl-cad under slackware-13.0 eventually built and somewhat works. I haven't been able to spend enough time on controls or directions. So far it's not point and click.

Could not get qcad to compile. But tried simply installing alien's premade package for 12.0 and it worked using 32 bit slackware-13.0 environment with xfce. So far I can draw lines. Not as easy yet as I'd hoped. They're probably keeping the easy to use interface for the paying customers.

For the limited time I did spend though, I could have pulled out the old drafting stuff and did it by hand.
 
Old 03-25-2010, 01:40 AM   #11
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
There are a pile of patches to allow qcad to compile on 64bit and against the new glibc. They are are there with AlienBob's SlackBuild.

http://connie.slackware.com/~alien/s...ds/qcad/build/

This all worked for me on Slackware64-13.0. You'll need the qt3 compatibility packages installed.
 
Old 03-25-2010, 09:49 AM   #12
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
I tried this build on slack64-13.0 and for me it does not produce the executable 'qcad'
after correcting the pointer to the QTDIR /opt/kde/lib64/qt3
the thing builds the packages and installs but no /usr/bin/qcad
I do have the compatability packages installed from /extra

john

Last edited by AlleyTrotter; 03-25-2010 at 09:52 AM. Reason: add line about QTDIR
 
Old 03-25-2010, 11:48 AM   #13
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Quote:
Are there working slackbuilds for brlcad or qcad.

For brlcad, I found the 12.2 version and it did have an arch line that I could change to x86_64. It does a 15 second delay telling us not to install at /usr as it might overwrite some files. But it didn't finish compiling. It tells me it can't find a makefile. Have to look and see if autogen or something has to be called.

Dont you EVER default to install BRL CAD binaries into /usr/bin... NEVER...

When I started using Slackware, I would build BRLCAD <current> ( guess it was 7.16.2 ... ) with src2pkg without specifiying an Install directory, this would drop all my libs to /usr/lib64, binaries to /usr/bin... etc.

So far so good, but there was a tiny detail that consequently would bork my system... one of Brl Cad's binaries was a thing called "cp" which will copy objects between BRL CAD databases... and acts similarly but DIFFERENTLY from GNU cp...

As a result of this... after "installing" BRLCAD, "funny" things would start happening...

It took me weeks to figure out why everybody in this forum could compile things that i simply couldnīt even after following the same steps....

I only figured this out after typing man cp in a shell...

man told me that cp was a brlcad utility, etc, etc...

So, respect BRLCAD's defaults....
and place something like

export PATH=/usr/brlcad/bin:$PATH
export LD_LIBRARY_PATH=/usr/brlcad/lib:$LD_LIBRARY_PATH

in your ~/.bashrc to have mged ready in shell

my advice here...

BRGDS

Alex
 
Old 03-25-2010, 11:58 AM   #14
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
BTW... has anyone here managed to build FreeCad...?

This relies in OpenCascade infrastructure, as well as in ODE ( Open Dynamics Engine ), the latter has a SlackBuild, the former has no Slackbuild and is tricky to compile in Slackware... current release is 6.3.0... mut this needs to be patched, and some shell scripts have to be runned in order to initialize some variables...

I wouldn't find out what to do, so I googled, or better I AURed ( Thanks Arch folks, for the information available... ) and found this...

http://aur.archlinux.org/packages/op...scade/PKGBUILD

I'm sure you can change this to build OpenCascade in Slackware, and install it to /opt/opencascade for instance...

My prob with freeCad, is that after setting the right options in cmake ( FreeCad allows for two kinds of build, cmake, and automake ...) build fails... so I try ./configure ... configuring fails because of boost ( yet I have boost installed )... has anyone here been through this... ?

Both my OCC, and ODE are correctly installed... I have built several stuff linking with that...

BRGDS

Alex
 
Old 03-25-2010, 12:12 PM   #15
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
never tried building that, but as for boost I suggest to have a look at "./configure --help" and try passing (if supported)
Code:
  --with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
  --with-boost-system=boost_system \
  --with-boost-filesystem=boost_filesystem \
  --with-boost-thread=boost_thread \
  --with-boost-regex=boost_regex \
  --with-boost-program-options=boost_program_options \
to configure if you are on current
Code:
  --with-boost-libdir=/usr/lib${LIBDIRSUFFIX} \
  --with-boost-system=mt \
  --with-boost-filesystem=mt \
  --with-boost-thread=mt \
  --with-boost-regex=mt \
  --with-boost-program-options=mt \
if you are using 13.0 (it really depends on the version of boost you are using).

Last edited by ponce; 03-25-2010 at 12:15 PM.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
http://sourceforge.net/projects/free-cad/ Cad thedoctor Linux - Software 8 02-09-2010 11:26 AM
Cad Freeware thedoctor Linux - Software 9 02-08-2010 10:03 AM
I wuld like to use linux but im a cad operator so things like auto cad needs to work Juvencio Linux - General 7 06-15-2007 10:58 AM
cad for linux m2azer Linux - Software 3 10-04-2004 04:38 PM
CAD for Linux cabinetcrafter Linux - Software 1 04-13-2004 09:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration