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 05-18-2024, 07:47 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Can't compile kicad on stable (15.0)


Get error -

Quote:
[ 32%] Building CXX object common/CMakeFiles/common.dir/database/database_connection.cpp.o
In file included from /usr/include/sql.h:19,
from /home/packages/tmp/SBo/kicad-8.0/common/database/database_connection.cpp:41:
/usr/include/sqltypes.h:56:10: fatal error: unixodbc.h: No such file or directory
56 | #include "unixodbc.h"
| ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [common/CMakeFiles/common.dir/build.make:4420: common/CMakeFiles/common.dir/database/database_connection.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:3239: common/CMakeFiles/common.dir/all] Error 2
make: *** [Makefile:166: all] Error 2
If I backout unixODBC-2.3.12 in favour of unixODBC-2.3.11 kicad-8.0 compiles succesfully.


Something to do with this line in unixODBC.SlackBuild (2.3.11) changing from

Code:
  --includedir=/usr/include \
to

Code:
  --includedir=/usr/include/unixodbc \
 
Old 05-18-2024, 11:24 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Kicad is a great PCB builder, but a pig to compile.

If you use the Search button at the top of the page, you'll find there have been a couple of threads recently on compiling Kicad. Beware of Necro threads!! Some kind soul (@Dunc, IIRC) even built them and put the packages on his github repo for me. If you had done a thread search, you should have spotted that. The 5 minutes it takes to search always beats the day you wait for an answer, before someone like myself comes along and abuses you for not doing the obvious

https://www.linuxquestions.org/quest...-a-4175737151/
See Post #12 if you want his direct link.
 
1 members found this post helpful.
Old 05-20-2024, 03:09 AM   #3
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Same applies to LibreOffice -

Quote:
checking which dragonbox to use... internal
checking which frozen to use... internal
checking which libfixmath to use... internal
checking which glm to use... external
checking for glm/glm.hpp... yes
checking which odbc headers to use... external
checking for sqlext.h... no
configure: error: odbc not found. install odbc
Reverting to unixODBC-2.3.11 allows LibreOffice to compile.

We now need for the upstream developers to catch up with unixODBC

it would appear that unixODBC is a requirement for LibreOffice
 
Old 05-20-2024, 01:33 PM   #4
henca
Senior Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 1,013

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Quote:
Originally Posted by aikempshall View Post
We now need for the upstream developers to catch up with unixODBC
The problem is not a change between upstream versions 2.3.11 and 2.3.12 of unixODBC. The problem is that the SlackBuild script for unixODBC has been modified to place unixODBC include files in a non standard directory. By default the configure script of unixODBC would place its include files in the directory PREFIX/include where PREFIX correctly is set to /usr by the SlackwBuild script.

But as OP stated, giving the flag --includedir=/usr/include/unixodbc in the SlackBuild script seems really like a bad idea.

regards Henrik
 
  


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
KiCad-7.x.y AND KiCad-8.0 fail to run without error. K.H.Braun Slackware 14 05-10-2024 04:18 AM
Kicad nightly compile error brodo Slackware 46 05-19-2021 06:48 AM
compile kicad 13.37, missing dependency gobo7 Slackware 5 03-21-2017 10:29 AM
Kicad, I can't find way to load cutomer's footprint vonelli Linux - Newbie 0 07-05-2011 10:08 AM
schematic project in Kicad or eagle ; a.dehqan Linux - Software 3 06-10-2008 07:57 AM

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

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