Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Installation and building / symbols not found for architecture x86_64 (Mac)

symbols not found for architecture x86_64 (Mac)

symbols not found for architecture x86_64 (Mac)
daniel 2013/05/10 14:27
Hi,

Im trying to build a simple occ example on a mac, I have built and installed occ
I have linked the libraries to the inc files
Im getting this error:

Building target: lib10may
Invoking: MacOS X C++ Linker
g++ -m64 -D_OCC64 -L/usr/local/Qt-5.0.2/lib -L/Users/stephenneander/Desktop/occt6/ros/adm/cmake/build/out/lib -dynamiclib -o "lib10may" ./src/10may.o
Undefined symbols for architecture x86_64:
"TopLoc_Location::TopLoc_Location()", referenced from:
TopoDS_Shape::TopoDS_Shape()in 10may.o
"Handle_Standard_Transient::EndScope()", referenced from:
Handle_Standard_Transient::~Handle_Standard_Transient()in 10may.o
"TopLoc_SListOfItemLocation::Clear()", referenced from:
TopLoc_SListOfItemLocation::~TopLoc_SListOfItemLocation()in 10may.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status



The dylibs are
Mach-O 64-bit dynamically linked shared library x86_64
The computer is :
i5 64 bit Mac

This is what im using in my configuring, and there are no errors in make and install:

3RDPARTY_FREETYPE_DLL */usr/local/lib/libfreetype.dylib
3RDPARTY_FREETYPE_INCLUDE_DIR */opt/local/include
3RDPARTY_FREETYPE_LIBRARY */usr/local/lib/libfreetype.dylib
3RDPARTY_TCL_DLL */System/Library/Tcl/8.5
3RDPARTY_TCL_INCLUDE_DIR */opt/local/include
3RDPARTY_TCL_LIBRARY */System/Library/Tcl/8.5
3RDPARTY_DIR /usr/local/lib
3RDPARTY_USE_FREEIMAGE OFF
3RDPARTY_USE_GL2PS OFF
3RDPARTY_USE_GLX OFF
3RDPARTY_USE_TBB OFF
BUILD_ApplicationFramework ON
BUILD_BITNESS 64
BUILD_DataExchange ON
BUILD_Draw ON
BUILD_FoundationClasses ON
BUILD_ModelingAlgorithms ON
BUILD_ModelingData ON
BUILD_TOOLKITS
BUILD_TYPE Release
BUILD_Visualization ON
CMAKE_OSX_ARCHITECTURES x86_64
CMAKE_OSX_DEPLOYMENT_TARGET
CMAKE_OSX_SYSROOT
INSTALL_DIR /Users/stephenneander/occt2
INSTALL_FREETYPE OFF
INSTALL_TCL OFF

I would love any help

Thanks
daniel 2013/05/17 10:22
its very strange,
i can compile and run qt on its own and i can also compile and run occ, just when i run examples/qt/common it produces this error
daniel 2013/05/17 10:22
its very strange,
i can compile and run qt on its own and i can also compile and run occ, just when i run examples/qt/common it produces this error
daniel 2013/05/26 08:17
I have fixed this issue
Deniz Eren 2013/06/10 03:14
Hi Daniel,

This is most likely because there are some libraries missing, so you're getting these linker problems.

I use Ubuntu and Mac OS X, here is a simple one line/one file compilation command as an example of each:

Ubuntu:
     g++ test.cxx -I../install/inc -DHAVE_IOMANIP -DHAVE_LIMITS_H -DHAVE_IOSTREAM -lTKGeomBase -lTKernel -lTKMath -lTKTopAlgo -lTKBRep -lTKPrim -lTKFillet -o test

Mac OS X:
     g++ test.cxx -I../build/inc -L../build/lib -DHAVE_IOMANIP -DHAVE_LIMITS_H -DHAVE_IOSTREAM -lTKGeomBase -lTKernel -lTKMath -lTKTopAlgo -lTKBRep -lTKPrim -lTKFillet -o test



Best regards,
Deniz
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map