c++ - Dyld Library not loaded: Reason: Image not found -


I know that questions have been asked before, but I do not solve my problem using any of my solutions I am able to I'm trying to use the DISLIN plotting library on Mac with XCode (OS: Yosemite, Xcode Ver: 6.1.1).

I am currently trying to run just a very simple test program:

  #include & lt; Stdio.h & gt; # Include & lt; Iostream & gt; // Required by DISLIN! # Included "dislin.h" // Required by DISLIN! Plotting package is included using namespace std; Int main (int argc, char * argv []) {int numberOfPoints = 2; Float x [2] = {0, 1}; Float y [2] = {0, 2}; Cout & lt; & Lt; X & LT; & Lt; Y & lt; & Lt; Andal; Qplot (x, y, numberOfPoints); }  

Error when I try to escape:

  dyld: library not load: /usr/local/lib/libdiscpp.10.dylib Referenced from: / Users / Users / Library / Developer / Xcode / DerivedData / phys239_a2-blbdrjqdqxewuwfvvdxelytbfmzs / Produce / Product / Debug / phys239_a2 Reason: Image Not Found Program Expiry Exits With Code: 9  

This program is fine, but it will not work. I have installed Dislin with a package from the Disney website (dislin.de) and openmotif by homebrew. I have a project related to both dislin and openmotif library (located in / usr / local / dislin / and /usr/local/cellar/openmotif/2.3.4/lib).

Do anyone have any experience with this? Or, does anyone have been able to work with Xcode before?

So, this whole point was to do things to run the diskline with axle and it seems that I have made some solid progress since I can produce a real conspiracy. Hopefully there is no new wonder

What I am doing here to do this.

  • Download Dislin (from Dislin-10.5.darwin.intel.64.tar.gz dislin.de, in the Download section)

  • Ensure that you have an up-to-date installation of X11 This is where I got ()

  • Using the homebree, I installed Open Amotif Required by I used the following command:

Install Brew https://gist.githubusercontent.com/steakknife/60a39a32ae84e12238a2/raw/openmotif.rb < / Code>

which I found here:

  • Then I N rows. Added to / Bash_profile

    export DISLIN = / usr / local / dislin.dYLD_LIBRARY_PATH = $ DYLD_LIBRARY_PATH: / usr / local / dislin: /usr/local/Cellar/openmotif/2.3.4/lib /: / Opt / X11 / lib path = $ path: $ dISLIN / bin

I know that the whole DYLD_LIBRARY_PATH thing is probably not the best, and I honestly do not even know this, so it really matters in my establishment, but it is working at this time and I am not trying to mess with it yet

  • Install Dislines that F Change Spam Folder that you've downloaded it and ./ INSTALL

  • Open command and a new console application. You have to make sure that you can properly link these libraries. In 'Build Settings', in the header search path I have added the / usr / local / dislin / real64 (two 'dislin.h' files.) If I do not use any of these The folder I'm looking for is the library search path I've included in / usr / local / dislin / lib and / usr / local / seller / openmotif / 2.3.4 / lib` Trashing.)

  • Add Library to the above two Library folders in 'Build steps'.

Then I ran the following program:

  #include  

and it produced this output: deviline output < / P>

This is the place where I am hoping that it can help someone at some point.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -