Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile HeeksCAD #421

Open
KhazAkar opened this issue Jan 28, 2019 · 3 comments
Open

Can't compile HeeksCAD #421

KhazAkar opened this issue Jan 28, 2019 · 3 comments

Comments

@KhazAkar
Copy link

Hi! I cannot compile HeeksCAD from GIT. Here's the problem: https://pastebin.com/qfKE4Uts

@KhazAkar
Copy link
Author

About my system:
OpenSUSE Leap 15, fully updated. HW: Dell Precision 5510.

@fatalfeel
Copy link

fatalfeel commented Apr 8, 2019

I use the version build ok on windows and linux

//
https://github.com/jehc/heekscad

///////////////////windows wxwidgets 2.8.12
C:\wxWidgets-2.8.12\build\msw\wx.sln
build unicode debug version

///////////////////windows opencascade-6.7.1.exe
C:\OpenCASCADE6.7.1\opencascade-6.7.1\msvc.bat vc9
build all

//////////////////heekscad windows
C:\heekscad\src\HeeksCAD VC2008.sln
project properties

  1. Use Unicode Character Set
  2. link lib
    opengl32.lib glu32.lib TKVrml.lib TKStl.lib TKBRep.lib TKIGES.lib TKShHealing.lib TKSTEP.lib TKSTEP209.lib TKSTEPAttr.lib TKSTEPBase.lib TKXSBase.lib TKShapeSchema.lib FWOSPlugin.lib PTKernel.lib TKBool.lib TKCAF.lib TKCDF.lib TKDraw.lib TKernel.lib TKFeat.lib TKFillet.lib TKG2d.lib TKG3d.lib TKGeomAlgo.lib TKGeomBase.lib TKHLR.lib TKMath.lib TKOffset.lib TKPCAF.lib TKPrim.lib TKPShape.lib TKService.lib TKTopAlgo.lib TKV3d.lib TKMesh.lib TKAdvTools.lib TKBO.lib TKXDESTEP.lib TKXCAF.lib TKXCAFSchema.lib TKDCAF.lib TKLCAF.lib TKPLCAF.lib wxmsw28ud_core.lib wxmsw28ud_aui.lib wxmsw28ud_gl.lib wxbase28ud.lib

/////
/////
//////////Linux wxwidgets 2.8.12

  1. apt-get install libgl1-mesa-dev libglu1-mesa-dev

cd /root/wxWidgets-2.8.12
gedit ./configure
find
/usr/openwin/share/include"
add one line to
/usr/openwin/share/include \
/usr/include/x86_64-linux-gnu"

mkdir buildgtk
cd buildgtk
../configure --prefix=/opt/wxgtk --with-gtk=2 --with-opengl --enable-unicode
make -j4 && make install

cd ..
mkdir buildgtkd
cd buildgtkd
../configure --prefix=/opt/wxgtkd --with-gtk=2 --with-opengl --enable-unicode --enable-debug
make -j4 && make install

///////////////////linux opencascade-6.7.1.tgz
apt-get install tcl-dev tk-dev libfreetype6-dev libxt-dev libxmu-dev libgl1-mesa-dev libfreeimage-dev libtbb-dev libgl2ps-dev
./build_configure
./configure --prefix=/opt/opencascade

//////////////////heekscad ubuntu
gedit /root/heekscad/src/CMakeLists.txt
find
set( CASCADE_LIBS TKVRML TKSTL TKBRep TKIGES TKShHealing TKSTEP TKSTEP209 TKSTEPAttr TKSTEPBase TKXSBase TKShapeSchema FWOSPlugin TKBool TKCAF TKCDF TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo TKGeomBase TKHLR TKMath TKOffset TKPrim TKPShape TKService TKTopAlgo TKV2d TKV3d TKMesh TKAdvTools TKBO TKXDESTEP TKXCAF TKXCAFSchema TKLCAF TKPLCAF )
remove TKV2d to
set( CASCADE_LIBS TKVRML TKSTL TKBRep TKIGES TKShHealing TKSTEP TKSTEP209 TKSTEPAttr TKSTEPBase TKXSBase TKShapeSchema FWOSPlugin TKBool TKCAF TKCDF TKernel TKFeat TKFillet TKG2d TKG3d TKGeomAlgo TKGeomBase TKHLR TKMath TKOffset TKPrim TKPShape TKService TKTopAlgo TKV3d TKMesh TKAdvTools TKBO TKXDESTEP TKXCAF TKXCAFSchema TKLCAF TKPLCAF )

apt-get install cmake-qt-gui
mkdir build
cd build
cmake-gui

CMAKE_BUILD_TYPE -> Debug
CMAKE_INSTALL_PREFIX -> /opt/heekscade (no effect but just setting)
configure
generate
make

cp -R /root/heekscad/bitmaps /root/heekscad/build/share/heekscad
cp -R /root/heekscad/icons /root/heekscad/build/share/heekscad

gedit /root/.bashrc
//add
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wxgtk/lib:/opt/opencascade/lib
cd /root/heekscad/build/bin
./heekscad-0.18.0

@bullestock
Copy link

I have created a fork which compiles with wxWidgets 3.2. See https://github.com/bullestock/heekscad/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants