building opendnp3 in Ubuntu, where is lopendnp3?

91 views
Skip to first unread message

Faisal PEER MOHAMED

unread,
Jan 13, 2016, 4:40:23 AM1/13/16
to open-dnp3
Hello,

I have been struggling to compile the opendnp3 in these days...

I have install the opendnp3. I want to try master slave communication test.

I have found masster-cpp and slave-cpp in demos folder.

How to build it?

I tried

g++ DemoMain.cpp SlaveDemo.cpp -o dnp3slaveexe -lopendnp3 -I/usr/include/opendnp3/src/opendnp3/APL -I/usr/include/opendnp3/src/opendnp3/DNP3 -I/usr/include/opendnp3/src -std=c++0x

The error reported is


/usr/bin/ld: cannot find -lopendnp3
collect2: error: ld returned 1 exit status


Where is lopendnp3 libray? .Is it missing or in a different path?

Any help would be appreciated?

Thanks,
Faisal

Daniel Evans

unread,
Jan 13, 2016, 11:26:39 AM1/13/16
to open...@googlegroups.com
Faisal,

Once you've built the library with make, you do

(sudo) make install

to install the library. You may also need to run sudo ldconfig.

At this point the linking should work, you can verify the library is present in your /usr/lib directory.


--
You received this message because you are subscribed to the Google Groups "open-dnp3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-dnp3+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Daniel Evans

Software Engineer

Green Energy Corp

(919) 836-9916

dev...@greenenergycorp.com

 

Transforming the Smart Grid

www.greenenergycorp.com

 

Reply all
Reply to author
Forward
0 new messages