Pogo Problem

Hi everyone,

My problem is next.
I generated C++ files with Pogo. Then I want to compile the code. But when I try that, this is what I get

I can't notice what is wrong from messages, so I hope some of you can.
Edited 7 years ago
Hi,

You had a very bad luck! smile
By default, Pogo generates the executables in ~/DeviceServers directory.
You created a directory named ~/DeviceServers/MyTemperatureSensor to put the source code of your device server.
When you try to compile, the compiler tries to generate ~/DeviceServers/MyTemperatureSensor executable.
Your compiler complains because there is already a file (a directory) named ~/DeviceServers/MyTemperatureSensor.

So I would suggest to put the source code in another directory or to change Pogo preferences file (OUTPUT_DIR section for projects of type DEVICE in /usr/local/share/pogo/preferences/tango.opt) to generate the device servers executables in another directory.

Hoping this helps,
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Hm,

Thank you for your help. I have done what you said, and it worked.
But this morning I deleted that folder, and generated a new one. Then I wanted to compile it, and this is what I got:



It seems that Pogo doesn't recognize anything (undefined reference …), but I haven't changed anything in settings and I still have paths and enviromental variables I had yesterday.
What is the problem?

Thanks
Edited 7 years ago
It looks like your compiler didn't find where are installed the tango and omniORB libraries.
If you didn't modify POGO defaults, I think POGO will add the result of the following commands to your LDFLAGS Makefile variable:
pkg-config –libs-only-L omniORB4
pkg-config –libs-only-L libzmq
pkg-config –libs tango

You just need to verify that in your compiler command, the directories specified just after a '-L' contains (at least one of them) the tango, omniORB4 and eventually zmq libraries (if they are not installed in the trusted ld directories).

So in your case, (by looking at your first post) it looks like g++ is trying to retrieve all these libraries from
/home/rile93/tangocs/tango-9.2.5a-gcc-5.4-gstabs+/lib

If this directory does not contain tango and omniORB4 libraries and
ldconfig -p | grep tango
ldconfig -p | grep omni
does not return anything, you'll be into trouble. This would mean that g++ is not able to find the libraries it requires to create your Device server executable.
In this case, you should check tango and omniORB4 are well installed on your computer.

Hoping this helps,
Reynald

Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.


and the message is the same for libzmq and tango. However, I already added path to wanted files, as you can see in next picture:



And what confuse me, why everything worked well yesterday, if there is something wrong with tango and omniORB4?

Edited 7 years ago
From what I have seen in your previous messages, your home directory is
/home/rile93
and not
/home/rileVostro

export PKG_CONFIG_PATH=/home/rile93/tangocs/tango-9.2.5a-gcc-5.4-gstabs+/lib/pkgconfig

might solve your problem.

Hoping this helps,
Reynald



Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Haha, omg, I would never notice that. Thank you for your help Reynald. :)
Edited 7 years ago
 
Register or login to create to post a reply.