View Issue Details

IDProjectCategoryView StatusLast Update
0000985FreeCADBugpublic2013-02-13 09:11
Reporterbergerc Assigned To 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionno change required 
Fixed in Version0.14 
Summary0000985: [MAC OS X] compilation error "'PI' was not declared in this scope" (svn version)
DescriptionHi,

I have the following error when I compile FreeCAD SVN version (At revision 5443.)
././src/SMESH/SMESH_MeshEditor.cpp:1377:20: error: 'PI' was not declared in this scope

I join my config.log file, I don't know if it's related to my environment, I use mac ports versions of the dependencies, except for SoQt-1.5.0, LibOpenCASCADE (OCE git version).

I use gcc mac ports version gcc mp-gcc46

Thanks for your help,



Christophe

Additional Informationlibtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I/usr/local/include/oce/ -I././inc/ -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/opt/local/include -I/opt/local/include -D_OCC64 -O2 -DNDEBUG -D_REENTRANT -Wall -Wno-sign-compare -Wno-switch -Wno-reorder -Wno-unused -Wno-parentheses -Wno-comment -g -O2 -Wno-deprecated -frtti -MT SMESH_MeshEditor.lo -MD -MP -MF .deps/SMESH_MeshEditor.Tpo -c ././src/SMESH/SMESH_MeshEditor.cpp -fno-common -DPIC -o .libs/SMESH_MeshEditor.o
././src/SMESH/SMESH_MeshEditor.cpp: In function 'double getAngle(const SMDS_MeshElement*, const SMDS_MeshElement*, const SMDS_MeshNode*, const SMDS_MeshNode*)':
././src/SMESH/SMESH_MeshEditor.cpp:1377:20: error: 'PI' was not declared in this scope
make[4]: *** [SMESH_MeshEditor.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
TagsNo tags attached.
FreeCAD Information

Activities

2013-02-11 06:34

 

config.log (Attachment missing)

normandc

2013-02-12 11:53

manager   ~0002895

The svn repo is deprecated in favor of git. The repo you're trying to compile is more than a year old.

I wonder why you used the svn, I thought we deleted all mention of it in the wiki.

bergerc

2013-02-12 18:21

reporter   ~0002897

Thanks i'll get the git repo sources.

The page "https://sourceforge.net/apps/mediawiki/free-cad/index.php?title=CompileOnMac" is not up to date. Having regards to the new package (0.13.1830) only the pre-requisites are still valid.

In the Mac ports version, some details lacks :

port -v install Coin
Manual install of SoQt-1.5.0.tar.gz (https://bitbucket.org/Coin3D/coin/downloads/SoQt-1.5.0.tar.gz)
Manual install of LibOpenCASCADE (https://github.com/tpaviot/oce.git)

Selection of the last version of the gcc compiler:
port -v install gcc_select
port select --list gcc
select the last version :
port select --set gcc mp-gcc46



Ticket can be closed.

bergerc

2013-02-12 18:21

reporter   ~0002898

Thanks i'll get the git repo sources.

The page "https://sourceforge.net/apps/mediawiki/free-cad/index.php?title=CompileOnMac" is not up to date. Having regards to the new package (0.13.1830) only the pre-requisites are still valid.

In the Mac ports version, some details lacks :

port -v install Coin
Manual install of SoQt-1.5.0.tar.gz (https://bitbucket.org/Coin3D/coin/downloads/SoQt-1.5.0.tar.gz)
Manual install of LibOpenCASCADE (https://github.com/tpaviot/oce.git)

Selection of the last version of the gcc compiler:
port -v install gcc_select
port select --list gcc
select the last version :
port select --set gcc mp-gcc46


Thank you,

Ticket can be closed.

normandc

2013-02-12 22:24

manager   ~0002900

Thanks for bringing the outdated wiki page to our attention. I'll at least change the info about the repository, but as for the rest I would feel more comfortable if someone who did compile on Mac updated the page.

BTW this forum topic may be useful for info on compiling on Mac: http://forum.freecadweb.org/viewtopic.php?f=4&t=2064

wmayer

2013-02-13 09:11

administrator   ~0002902

documentation has been updated

Issue History

Date Modified Username Field Change
2013-02-11 06:34 bergerc New Issue
2013-02-11 06:34 bergerc File Added: config.log
2013-02-12 11:53 normandc Note Added: 0002895
2013-02-12 18:21 bergerc Note Added: 0002897
2013-02-12 18:21 bergerc Note Added: 0002898
2013-02-12 22:24 normandc Note Added: 0002900
2013-02-13 09:11 wmayer Note Added: 0002902
2013-02-13 09:11 wmayer Status new => closed
2013-02-13 09:11 wmayer Resolution open => no change required
2013-02-13 09:11 wmayer Fixed in Version => 0.14