Compiling for Slackware 13.1 64-bit

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Fri May 06, 2011 3:01 pm

User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Fri May 06, 2011 6:25 pm

Ok, I just went though and.....

Edited acinclude.m4
ran libtoolize
aclocal
autoheader
automake
autoconf

then did ./configure all over again and It WORKED!...... well sort of. Now I'm running into a conflict with Qt. Geez!

Code: Select all

....
checking for boost... yes
checking for boost >= 1.35.0... yes
checking for boost system library... yes
checking for X... libraries , headers 
checking for host... linux-gnu
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether QtWebKit is available... no
checking for Qt >= 4.3... configure: error: Cannot find Qt meta object compiler (moc), bye...
bash-4.1# cat config.log |grep Qt   
configure:24699: checking whether QtWebKit is available
configure:24720: g++ -o conftest -g -O2 -I/usr/share/qt4/include -I/usr/share/qt4/include/QtWebKit  conftest.cpp  >&5
configure:24749: checking for Qt >= 4.3
configure:24810: error: Cannot find Qt meta object compiler (moc), bye...
QT4_CORE_CXXFLAGS='-I/usr/share/qt4/include -I/usr/share/qt4/include/QtCore'
QT4_CORE_LIBS='-L/usr/share/qt4/lib -lQtCore'
QT_CXXFLAGS='-I/usr/share/qt4/include -I/usr/share/qt4/include/Qt3Support -I/usr/share/qt4/include/QtGui -I/usr/share/qt4/include/QtCore -I/usr/share/qt4/include/QtOpenGL -I/usr/share/qt4/include/QtNetwork -I/usr/share/qt4/include/QtSvg -I/usr/share/qt4/include/QtXml -I/usr/share/qt4/include/QtUiTools '
QT_LIBS='-L/usr/share/qt4/lib -lQtCore -lQtGui -lQt3Support -lQtNetwork -lQtOpenGL -lQtSvg -lQtXml  -lX11 -lXext -lXmu -lXt -lXi '
bash-4.1# 
Attachments
config.log.zip
again, not really a zip file.
(87.7 KiB) Downloaded 30 times
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Fri May 06, 2011 6:37 pm

That <woot!> you just heard was me. Slackware 13.1 64-bit keep QT in /usr/lib64/qt so I changed line 152 of acinclude.m4 to

Code: Select all

             [fc_qt4_dir="/usr/lib64/qt"])
(see attached)
and ran:

libtoolize
aclocal
autoheader
automake
autoconf
./configure

Now it's telling me to run 'make'.
Attachments
acinclude.m4.zip
The file necessary to configure on Slackware 13.1 64-bit. Not really zipped.
(15.67 KiB) Downloaded 24 times
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Fri May 06, 2011 6:43 pm

The <GAHHHHHHH!!!!!!> you just heard was a result of the following.

Code: Select all

bash-4.1# make
make  all-recursive
make[1]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446'
Making all in src
make[2]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src'
Making all in Build
make[3]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/Build'
make  all-am
make[4]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/Build'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/Build'
make[3]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/Build'
Making all in 3rdParty
make[3]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/3rdParty'
Making all in salomesmesh
make[4]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/3rdParty/salomesmesh'
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..  -I -I././inc/ -D_OCC64 -g -D_DEBUG -D_REENTRANT -Wall -Wno-sign-compare -Wno-switch -Wno-reorder -Wno-unused -Wno-parentheses -Wno-comment -g -O2 -Wno-deprecated -frtti -MT Driver_Document.lo -MD -MP -MF .deps/Driver_Document.Tpo -c -o Driver_Document.lo `test -f '././src/Driver/Driver_Document.cpp' || echo './'`././src/Driver/Driver_Document.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I -I././inc/ -D_OCC64 -g -D_DEBUG -D_REENTRANT -Wall -Wno-sign-compare -Wno-switch -Wno-reorder -Wno-unused -Wno-parentheses -Wno-comment -g -O2 -Wno-deprecated -frtti -MT Driver_Document.lo -MD -MP -MF .deps/Driver_Document.Tpo -c ././src/Driver/Driver_Document.cpp  -fPIC -DPIC -o .libs/Driver_Document.o
././src/Driver/Driver_Document.cpp:22:29: error: Driver_Document.h: No such file or directory
././src/Driver/Driver_Document.cpp:24: error: 'Driver_Document' has not been declared
././src/Driver/Driver_Document.cpp:24: error: ISO C++ forbids declaration of 'Driver_Document' with no type
././src/Driver/Driver_Document.cpp: In function 'int Driver_Document()':
././src/Driver/Driver_Document.cpp:25: error: only constructors take base initializers
././src/Driver/Driver_Document.cpp:25: error: 'NULL' was not declared in this scope
././src/Driver/Driver_Document.cpp:26: warning: no return statement in function returning non-void
././src/Driver/Driver_Document.cpp: At global scope:
././src/Driver/Driver_Document.cpp:29: error: 'Driver_Document' is not a class or namespace
././src/Driver/Driver_Document.cpp:29: error: expected unqualified-id before '&' token
././src/Driver/Driver_Document.cpp:29: error: expected ')' before '&' token
././src/Driver/Driver_Document.cpp:29: error: expected initializer before '&' token
././src/Driver/Driver_Document.cpp:35: error: 'Driver_Document' is not a class or namespace
././src/Driver/Driver_Document.cpp:35: error: variable or field 'SetDocument' declared void
././src/Driver/Driver_Document.cpp:35: error: 'SMESHDS_Document' was not declared in this scope
././src/Driver/Driver_Document.cpp:35: error: 'theDocument' was not declared in this scope
make[4]: *** [Driver_Document.lo] Error 1
make[4]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/3rdParty/salomesmesh'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src/3rdParty'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4446'
make: *** [all] Error 2
bash-4.1# 
Also,

Code: Select all

bash-4.1# make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /home/mpyusko/Downloads/FreeCAD-0.11.4422/m4/missing --run autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422'
Making all in src
make[2]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src'
Making all in Build
make[3]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/Build'
make  all-am
make[4]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/Build'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/Build'
make[3]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/Build'
Making all in 3rdParty
make[3]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/3rdParty'
Making all in salomesmesh
make[4]: Entering directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/3rdParty/salomesmesh'
/bin/sh ../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..  -I -I././inc/ -D_OCC64 -g -D_DEBUG -D_REENTRANT -Wall -Wno-sign-compare -Wno-switch -Wno-reorder -Wno-unused -Wno-parentheses -Wno-comment -g -O2 -Wno-deprecated -frtti -MT Driver_Document.lo -MD -MP -MF .deps/Driver_Document.Tpo -c -o Driver_Document.lo `test -f '././src/Driver/Driver_Document.cpp' || echo './'`././src/Driver/Driver_Document.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I -I././inc/ -D_OCC64 -g -D_DEBUG -D_REENTRANT -Wall -Wno-sign-compare -Wno-switch -Wno-reorder -Wno-unused -Wno-parentheses -Wno-comment -g -O2 -Wno-deprecated -frtti -MT Driver_Document.lo -MD -MP -MF .deps/Driver_Document.Tpo -c ././src/Driver/Driver_Document.cpp  -fPIC -DPIC -o .libs/Driver_Document.o
././src/Driver/Driver_Document.cpp:22:29: error: Driver_Document.h: No such file or directory
././src/Driver/Driver_Document.cpp:24: error: 'Driver_Document' has not been declared
././src/Driver/Driver_Document.cpp:24: error: ISO C++ forbids declaration of 'Driver_Document' with no type
././src/Driver/Driver_Document.cpp: In function 'int Driver_Document()':
././src/Driver/Driver_Document.cpp:25: error: only constructors take base initializers
././src/Driver/Driver_Document.cpp:25: error: 'NULL' was not declared in this scope
././src/Driver/Driver_Document.cpp:26: warning: no return statement in function returning non-void
././src/Driver/Driver_Document.cpp: At global scope:
././src/Driver/Driver_Document.cpp:29: error: 'Driver_Document' is not a class or namespace
././src/Driver/Driver_Document.cpp:29: error: expected unqualified-id before '&' token
././src/Driver/Driver_Document.cpp:29: error: expected ')' before '&' token
././src/Driver/Driver_Document.cpp:29: error: expected initializer before '&' token
././src/Driver/Driver_Document.cpp:35: error: 'Driver_Document' is not a class or namespace
././src/Driver/Driver_Document.cpp:35: error: variable or field 'SetDocument' declared void
././src/Driver/Driver_Document.cpp:35: error: 'SMESHDS_Document' was not declared in this scope
././src/Driver/Driver_Document.cpp:35: error: 'theDocument' was not declared in this scope
make[4]: *** [Driver_Document.lo] Error 1
make[4]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/3rdParty/salomesmesh'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src/3rdParty'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mpyusko/Downloads/FreeCAD-0.11.4422'
make: *** [all] Error 2
bash-4.1# 

Now what? <crickets>
wmayer
Site Admin
Posts: 13786
Joined: Thu Feb 19, 2009 10:32 am

Re: Compiling for Slackware 13.1 64-bit

Postby wmayer » Mon May 09, 2011 10:12 am

The salomesmesh sources separate source and header files in different directory structure and it seems that the include path defined in Makefile.am doesn't work.

Can you please post the file src/3rdParty/salomesmesh/Makefile?
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Mon May 09, 2011 2:53 pm

Here you go.
Attachments
Makefile.zip
No really zipped
(207 KiB) Downloaded 26 times
wmayer
Site Admin
Posts: 13786
Joined: Thu Feb 19, 2009 10:32 am

Re: Compiling for Slackware 13.1 64-bit

Postby wmayer » Tue May 10, 2011 7:20 am

I wonder if during ./configure the OpenCascade library was detected. As some OCC-related variables are empty in your Makefile I think it wasn't found. Can you double-check this?
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Tue May 10, 2011 7:50 am

The configure script ran successfuly and told me to proceed with make. Where should I look this time?
wmayer
Site Admin
Posts: 13786
Joined: Thu Feb 19, 2009 10:32 am

Re: Compiling for Slackware 13.1 64-bit

Postby wmayer » Tue May 10, 2011 8:25 am

The point is that if OCC is not installed that all the modules depending on it won't be built. To see if configure finds OCC look at the output messages. if you find something like:

Code: Select all

	**** Cannot find OpenCASCADE devel files.
	Modules that depend on this library cannot be built. ****
then it wasn't detected. In this case use --with-occ-include and --with-occ-lib to specify the right directories.
User avatar
mpyusko
Posts: 49
Joined: Thu Apr 28, 2011 2:27 pm

Re: Compiling for Slackware 13.1 64-bit

Postby mpyusko » Tue May 10, 2011 12:07 pm

Her is the latest config.log file.

Also,

Code: Select all

bash-4.1# whereis OpenCASCADE
OpenCASCADE: /usr/include/OpenCASCADE /usr/share/OpenCASCADE
bash-4.1# 
Attachments
config.log.zip
Not really zipped
(99.79 KiB) Downloaded 22 times