LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-01-2023, 03:40 PM   #1
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Rep: Reputation: Disabled
FreeCAD won't compile.


My operating system is Slackware 15.0. The problem that I am having is this: When I try to compile FreeCAD 2.20.2 (and yes \ I modified the SlackBuild file for it), I end up with the following error:
Code:
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
even though that file IS in the FreeCAD sub-directory, and yes, I'm running the SlackBuild from within the FreeCAD sub-directory).
 
Old 04-01-2023, 03:56 PM   #2
dhalliwe
Member
 
Registered: Mar 2022
Location: Ontario, Canada
Distribution: Slackware
Posts: 168

Rep: Reputation: 158Reputation: 158
No hints on how to solve the compile problems, but after several attempts a while ago to get FreeCAD to compile on my Slackware 15.0 installation I gave up and downloaded the AppImage. That works for me.
 
Old 04-02-2023, 12:54 AM   #3
kermitdafrog8
Member
 
Registered: Dec 2018
Location: Orlando, FL
Distribution: Slackware AARCH64 and X86_64
Posts: 340

Rep: Reputation: Disabled
FreeCAD won't compile.

Probably a problem with the archives directory structure. My guess is when it's extracted the Slackbuild wants to change the directory that's named differently than what was created at extraction. $PRGNAM-$VERSION might not be the right place.
 
Old 04-02-2023, 01:22 AM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Sydney, Australia
Distribution: Slackware,LFS
Posts: 920

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
It works fine here:
Code:
Slackware package /var/cache/vmbuilder/result-x86_64/15.0/FreeCAD-0.20.2-x86_64-1_SBo.txz created.
In addition to changing the version number, I also changed one line of the SlackBuild to:
Code:
-DBUILD_ENABLE_CXX_STD=C++17 \
(was previously C++14).

As for not being able to cd to the FreeCAD-0.20.2 directory, it is easy to download the wrong tarball even though it has the correct looking name e.g.
Code:
wget https://github.com/FreeCAD/FreeCAD/archive/0.19.2/FreeCAD-0.20.2.tar.gz
will give you a tarball named FreeCAD-0.20.2.tar.gz but which, when unpacked, gives you a directory FreeCAD-0.19.2 (not FreeCAD-0.20.2 as expected).

chris

Last edited by chris.willing; 04-02-2023 at 03:53 AM.
 
2 members found this post helpful.
Old 04-02-2023, 10:03 AM   #5
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
I don't use it, and have no intention of installing the requirements to try to build it, but the 0.20.2 source file can be downloaded here ->
https://github.com/FreeCAD/FreeCAD/a.../0.20.2.tar.gz

Compared to the 0.19.2 source file on slackbuilds there does appear to be a couple of directory changes so there may or may not be issues building it via the default slackbuild script
 
Old 04-02-2023, 12:32 PM   #6
mickski56
Member
 
Registered: Mar 2018
Distribution: Slackware
Posts: 74

Rep: Reputation: Disabled
I have successfully built 20.2
downloaded from
'https://github.com/FreeCAD/FreeCAD/archive/refs/tags/0.20.2.tar.gz'

All I changed in the SlackBuild was remove the -DBUILD_ENABLE_CXX_STD=C++14
didn't replace it with anything, called with VERSION=0.20.2 sh FreeCAD.Slackbuild

HTH

Last edited by mickski56; 04-03-2023 at 03:06 PM. Reason: show url in full
 
3 members found this post helpful.
Old 04-02-2023, 07:28 PM   #7
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,227

Rep: Reputation: 303Reputation: 303Reputation: 303Reputation: 303
Without seeing the actual build error is really difficult to say anythin. Please post the compile error.
 
Old 04-02-2023, 08:37 PM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Quote:
Originally Posted by dhalliwe View Post
No hints on how to solve the compile problems, but after several attempts a while ago to get FreeCAD to compile on my Slackware 15.0 installation I gave up and downloaded the AppImage. That works for me.
I've been doing that too. The SlackBuild worked fine for me the last time I tried it, but it brings in a lot of dependencies and is just a lot less convenient.
 
Old 04-03-2023, 01:48 PM   #9
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Perhaps this part of the output that I have been getting will help to understand the problem that I have encountered:
Code:
FreeCAD-FreeCAD-930dd9a/vagrant/etc/matplotlibrc
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/fonts.conf
FreeCAD-FreeCAD-930dd9a/vagrant/generate_yaml.sh
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
root@Galifrey:~/FreeCAD#
 
Old 04-03-2023, 02:20 PM   #10
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Sometimes, it's solved with adding something like "$SRCNAM" in this case $SRCNAM should equal FreeCAD-930dd9a or FreeCAD-FreeCAD-930dd9a
Then in line 76 where it says $PRGNAM-$VERSION you could do $PRGNAM-$SRCNAM or just $SRCNAM instead, depending on how it's defined on top.
This happens when suddenly the upstream decide to use other names for directories, and SlackBuild tries to cd into $PRGNAM-$VERSION

Edit; If there already is one $SRCNAM you may have to add $SRCNAM2 or similar. I haven't read the actual SlackBuild.

Last edited by elcore; 04-03-2023 at 02:26 PM.
 
1 members found this post helpful.
Old 04-03-2023, 02:39 PM   #11
0XBF
Member
 
Registered: Nov 2018
Distribution: Slackware
Posts: 801

Rep: Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933Reputation: 933
Quote:
Originally Posted by TheNutCase View Post
Perhaps this part of the output that I have been getting will help to understand the problem that I have encountered:
Code:
FreeCAD-FreeCAD-930dd9a/vagrant/etc/matplotlibrc
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/
FreeCAD-FreeCAD-930dd9a/vagrant/fontconfig/fonts.conf
FreeCAD-FreeCAD-930dd9a/vagrant/generate_yaml.sh
./FreeCAD.SlackBuild: line 76: cd: FreeCAD-0.20.2: No such file or directory
root@Galifrey:~/FreeCAD#
The source tarball you extracted is called "FreeCAD-FreeCAD-930dd9a". Line 76 of the slackbuild is "cd $PRGNAM-$VERSION", and your tar archive doesn't match that naming convention. I dont know where you downloaded the source from but its not in the same format as expected. Using the following will get you the proper source tarball that matches the slackbuild script.
Code:
$ wget https://github.com/FreeCAD/FreeCAD/archive/0.20.2/FreeCAD-0.20.2.tar.gz
 
3 members found this post helpful.
Old 04-03-2023, 03:00 PM   #12
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
I tried that command, and got a "command not found" error message. So I Copied just the link and pasted that into my browser, then I transferred that file into the FreeCAD sub directory and ran the FreeCAD.SlackBuild file where it compiled successfully.

And I originally downloaded the source code from Sourceforge.net.

Last edited by TheNutCase; 04-03-2023 at 03:15 PM.
 
Old 04-03-2023, 03:11 PM   #13
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,757

Rep: Reputation: Disabled
Quote:
Originally Posted by TheNutCase View Post
I tried that command, and got a "command not found" error message.
It's the command after the $, starting with w.
 
1 members found this post helpful.
Old 04-03-2023, 03:16 PM   #14
bitfuzzy
Member
 
Registered: Nov 2003
Location: NY
Distribution: slackware
Posts: 464

Rep: Reputation: 133Reputation: 133
Quote:
Originally Posted by elcore View Post
It's the command after the $, starting with w.
In other words, leave out the $

Code:
wget https://github.com/FreeCAD/FreeCAD/archive/0.20.2/FreeCAD-0.20.2.tar.gz
 
Old 04-03-2023, 06:31 PM   #15
TheNutCase
Member
 
Registered: May 2016
Location: Columbia, South Carolina14
Distribution: Slackware 15.0
Posts: 700

Original Poster
Rep: Reputation: Disabled
Thanks.
 
  


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
[SOLVED] FreeCAD and librecad fail to compile prejudices_mars Slackware 12 02-18-2022 07:49 AM
[SOLVED] How to compile FreeCAD unstable 0.14 ? brodo Slackware 6 05-16-2014 04:09 AM
[SOLVED] Trying to compile FreeCAD SVN on 64-13.1 ahmadj Slackware 11 12-26-2010 09:58 AM
Freecad error "No module named PartGui" coss_cat Linux - Software 0 10-05-2010 03:23 AM
FreeCAD Illegal storage access Linux.tar.gz Linux - Software 6 09-26-2010 01:41 PM

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

All times are GMT -5. The time now is 09:39 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