User forums > General (but related to Code::Blocks)

Open Cascade 7.0.0 setup for Code::Blocks

(1/3) > >>

StarBootics:
Hello everyone,

I'm currently studying Open Cascade library and installing it but so far it didn't work. According to their website https://www.opencascade.com/content/latest-release pre-generated projects are provided for Code::Blocks IDE

I have to confess I have no knowledge about *.sh files but when I read "codeblocks.sh" file I seems to be created for MacOS.

--- Code: ---#!/bin/bash

export TARGET="cbp"

source ./env.sh "$1" "$TARGET"

if [ -e "/Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks" ]; then
  /Applications/CodeBlocks.app/Contents/MacOS/CodeBlocks ./adm/$WOKSTATION/cbp/OCCT.workspace
else
  codeblocks ./adm/$WOKSTATION/cbp/OCCT.workspace
fi
--- End code ---

So my question is :

How to install this library under Linux OS (Ubuntu 16.04 x64) for using it with Code::Blocks ?

Thanks beforehand
StarBootics

oBFusCATed:
http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F

StarBootics:

--- Quote from: oBFusCATed on October 16, 2016, 07:33:59 pm ---http://wiki.codeblocks.org/index.php/FAQ-Compiling_(errors)#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F

--- End quote ---
Thanks

I don't know why but I had to add some Search Directories in the "Global compiler settings" even if the files are in the "/usr/include/...". I was sure when the files are in that folder we don't need to specify them, the compiler are capable to find them all by it's self.

Anyway, I still have an issue but it's more related to compiling a library than setting up Code::Blocks to do it.

Best regards
StarBootics

oBFusCATed:
Only /usr/include is known by default.
Any subfolder should be added manually.
Generally it is very bad idea to add paths to the global compiler settings.
It is better to add them to your project settings.
Use pkg-config or global variables.

StarBootics:

--- Quote from: oBFusCATed on October 17, 2016, 12:54:30 am ---Only /usr/include is known by default.
Any subfolder should be added manually.
Generally it is very bad idea to add paths to the global compiler settings.
It is better to add them to your project settings.
Use pkg-config or global variables.

--- End quote ---

Ok I have change that, these folder are now in my project file.

Best regards
StarBootics

Navigation

[0] Message Index

[#] Next page

Go to full version