News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

port an existing project

Started by sajis997, March 09, 2012, 01:51:33 AM

Previous topic - Next topic

sajis997

Hello forum,

I have an project with the customized Makefile. I want to port it to code block to use its visual debugger. The Make file has the following

compiler flag -fopenmp

Include path INCLUDE = -I/usr/include/OpenEXR

and LDFLAGS = -LOpenEXR -lHalf -lImath -lIex -lIlmImf -lIlmThread -lz


How to set these options in the code blocks?



Thanks
Sajjjad

Alpha

My suggestion would be to first create a global variable for OpenEXR.  Next add -fopenmp to Project->Build options...->Compiler settings (tab)->Other options (tab).  Then (still within build options) go to Search directories (tab)->Compiler and add your include path using the global variable (for example: $(#OpenEXR.include)).  Do likewise under the linker search directories (for example: $(#OpenEXR.lib)).  Under Linker settings (tab)->Link libraries: use the Add button for each of your libraries:
OpenEXR
Half
Imath
Iex
IlmImf
IlmThread
z

sajis997

Hi

I tried as suggested and i am getting the error as follows.


/home/sajjad/Documents/LundGraphicsGroup/raytracer/CodeBlockAdaptation/raytracer/image.cpp|13|fatal error: ImfRgba.h: No such file or directory|


What am i missing now?


Regards
Sajjad

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]


sajis997

Hi forum

Thanks for the hint. Now i have the linking error :



ld||cannot find -lOpenEXR|
||=== Build finished: 2 errors, 144 warnings ===|




I provided with all the linking options and path as suggested.


Any more hint?


Regards
Sajjad