Problem Setting Environment

48 views
Skip to first unread message

cfoch....@gmail.com

unread,
Aug 23, 2015, 5:03:22 PM8/23/15
to GLyphy
Hello. I am trying to execute glyphy but I am having a problem with setting the environment where I cannot execute the program, and if I solve this problem, I cannot compiel. You can see me problem with details in this file
http://fpaste.org/258316/03636381/
What am I doing wrong? Thank you.
[ptv] [cfoch@dhcppc5 glyphy-hello]$ ls /home/cfoch/opt/lib/
gio              libgio-2.0.so.0.4501.0   libglyphy.la        libgmodule-2.0.so           libgobject-2.0.so.0         libgthread-2.0.so.0.4501.0
glib-2.0         libglib-2.0.la           libglyphy.so        libgmodule-2.0.so.0         libgobject-2.0.so.0.4501.0  pkgconfig
libgio-2.0.la    libglib-2.0.so           libglyphy.so.0      libgmodule-2.0.so.0.4501.0  libgthread-2.0.la
libgio-2.0.so    libglib-2.0.so.0         libglyphy.so.0.0.0  libgobject-2.0.la           libgthread-2.0.so
libgio-2.0.so.0  libglib-2.0.so.0.4501.0  libgmodule-2.0.la   libgobject-2.0.so           libgthread-2.0.so.0
[ptv] [cfoch@dhcppc5 glyphy-hello]$ cat main.c
#include <glyphy.h>

int
main (int arg, char ** argv)
{
  return 0;
}
[ptv] [cfoch@dhcppc5 glyphy-hello]$ PKG_CONFIG_PATH=/home/cfoch/opt/lib/pkgconfig/:$PKG_CONFIG_PATH
[ptv] [cfoch@dhcppc5 glyphy-hello]$ g++ main.c -o main $(pkg-config --cflags --libs glyphy)
[ptv] [cfoch@dhcppc5 glyphy-hello]$ ./main 
./main: error while loading shared libraries: libglyphy.so.0: cannot open shared object file: No such file or directory
[ptv] [cfoch@dhcppc5 glyphy-hello]$ LD_LIBRARY_PATH=/home/cfoch/opt/lib:$LD_LIBRARY_PATH
[ptv] [cfoch@dhcppc5 glyphy-hello]$ ./main 
[ptv] [cfoch@dhcppc5 glyphy-hello]$ g++ main.c -o main $(pkg-config --cflags --libs glyphy)
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory


Behdad Esfahbod

unread,
Aug 24, 2015, 6:35:58 AM8/24/15
to gly...@googlegroups.com
You should use the autotools-based toolchain.  We don't support other build modes.

b

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

Behdad Esfahbod

unread,
Aug 24, 2015, 6:37:16 AM8/24/15
to gly...@googlegroups.com
Oh I misunderstood your report.

So, what does g++ actually say?  "error: ....: No..."?!

On Sun, Aug 23, 2015 at 10:03 PM, <cfoch....@gmail.com> wrote:

cfoch....@gmail.com

unread,
Aug 24, 2015, 5:06:44 PM8/24/15
to GLyphy
All you can see in that fpaste, is what I get. 
First, I need to set the PKG_CONFIG_PATH to compile. But if I execute the executable file there is an error to execute because a missing library, so I need to set the LD_LIBRARY_PATH in order to execute the compiled file. So, now it is possible to execute it, but if I want to compile it again I get:


g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
g++: error: ....: No such file or directory
...

How are you using it? Before building it I run 
./autogen.sh --prefix=/home/cfoch/opt/
make
make install

I hope you can help me, thanks.


Behdad Esfahbod

unread,
Aug 25, 2015, 8:20:13 AM8/25/15
to gly...@googlegroups.com
There's something wrong with the way your compiler is set up.  I can't help.

cfoch....@gmail.com

unread,
Aug 25, 2015, 9:54:35 AM8/25/15
to GLyphy
I solved it. Thank you. I had to put
libtool --mode=link g++ (and all the rest)
Reply all
Reply to author
Forward
0 new messages