---------- Forwarded message ---------
From: Marco Diego Aurélio Mesquita <marcodiegomesqu...@gmail.com>
Date: Fri, Oct 8, 2021 at 10:27 PM
Subject: Re: [cdesktopenv-devel] How to compile projects created with
application builder
To: Chase <nicetry...@protonmail.ch>


Hi Chase!

I think I discovered the source (part) of my problems: GNU guix! When
I installed guix, it set some environment variables to use libs and
compilers installed with it. I make uninstalled cde, make clean it,
unset guix vars, ./configured it, make and sudo make installed it.
This fixed cde a stall when starting CDE.

Also, when I run the generated project, it no longer segfaults.

The build log is as follows. The commands are taken from what code
generator does. To make it compile successfully, I had to change "cc"
line and add "LD_LIBRARY_PATH=/usr/dt/lib" to run the compiled
project. So, I still think some details still must be fixed.

Thanks! And now, the log:

marco@karolina-UB82X:~$ cd /tmp/test/
marco@karolina-UB82X:/tmp/test$ ls
main.bil      Makefile.aix      Makefile.linux    Makefile.sunos  project.h
main_stubs.c  Makefile.freebsd  Makefile.netbsd   project.bip
Makefile      Makefile.hpux     Makefile.openbsd  project.c
marco@karolina-UB82X:/tmp/test$ make clean
rm -f  core .dtcodegen.log *.BAK *.delta project project.o dtb_utils.o
main_ui. main_stubs.o dtb_utils.c main_ui.c dtb_utils.h main_ui.h
marco@karolina-UB82X:/tmp/test$ /usr/dt/bin/dtcodegen -changed -p project
WARNING: Could not open message catalog: dtcodegen.cat
dtcodegen: Reading project project.bip.
load real:0  CPU:0
dtcodegen: Startup real time: 0 s (0 s load, 0 s config)
dtcodegen: Startup CPU time: 0 s (0 s load, 0 s config)
dtcodegen: writing main_ui.h
dtcodegen: writing main_ui.c
dtcodegen: writing dtb_utils.h
dtcodegen: writing dtb_utils.c
dtcodegen: Total real time: 3e-06 s   CPU time: 3e-06 s
marco@karolina-UB82X:/tmp/test$ make
dtcodegen -changed -merge -p project.bip -main
WARNING: Could not open message catalog: dtcodegen.cat
dtcodegen: Reading project project.bip.
load real:0  CPU:0
dtcodegen: Startup real time: 0 s (0 s load, 0 s config)
dtcodegen: Startup CPU time: 0 s (0 s load, 0 s config)
dtcodegen: Total real time: 0 s   CPU time: 1e-06 s
cc -g -I/usr/dt/include -I/X11/include     -c -o project.o project.c
cc -g -I/usr/dt/include -I/X11/include     -c -o dtb_utils.o dtb_utils.c
cc -g -I/usr/dt/include -I/X11/include     -c -o main_ui.o main_ui.c
cc -g -I/usr/dt/include -I/X11/include     -c -o main_stubs.o main_stubs.c
rm -f project
cc -o project project.o dtb_utils.o main_ui.o main_stubs.o
-L/usr/dt/lib -L/X11lib -lDtWidget -lDtHelp -lDtSvc -lXm -lXt -lXext
-lX11 -lICE -lSM -lXp -lgen -l
/usr/bin/ld: não foi possível localizar -lXp
/usr/bin/ld: não foi possível localizar -lgen
collect2: error: ld returned 1 exit status
make: *** [Makefile:78: project] Erro 1
marco@karolina-UB82X:/tmp/test$ cc -o project project.o dtb_utils.o
main_ui.o min_stubs.o -L/usr/dt/lib -L/X11/lib -lDtWidget -lDtHelp
-lDtSvc -lXm -lXt -lXex -lX11 -lICE -lSM -lDtXinerama -ltt -lm
marco@karolina-UB82X:/tmp/test$ LD_LIBRARY_PATH=/usr/dt/lib ./project

On Fri, Oct 8, 2021 at 6:44 PM Chase <nicetry...@protonmail.ch> wrote:
>
> Could you post your full build log?
>
> Thank you for your time,
> -Chase
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Wednesday, October 6th, 2021 at 8:00 PM, Marco Diego Aurélio Mesquita 
> <marcodiegomesqu...@gmail.com> wrote:
>
> > Minor progress: got it to compile with:
> >
> > cc -o project project.o dtb_utils.o main_ui.o main_stubs.o
> >
> > -L/usr/dt/lib -L/X11/lib -lDtWidget -lDtHelp -lDtSvc -lXm -lXt -lXext
> >
> > -lX11 -lICE -lSM -lm -ltt -lDtXinerama
> >
> > To make it run, I had to type
> >
> > LD_LIBRARY_PATH=/usr/dt/lib ./project
> >
> > But when it runs, it segfaults. Backtrace is:
> >
> > #0 _dl_runtime_resolve_xsave () at ../sysdeps/x86_64/dl-trampoline.h:153
> >
> > #1 0x00007ffff7b44afc in _XtWaitForSomething ()
> >
> > from /lib/x86_64-linux-gnu/libXt.so.6
> >
> > #2 0x00007ffff7b45b90 in XtAppProcessEvent ()
> >
> > from /lib/x86_64-linux-gnu/libXt.so.6
> >
> > #3 0x00007ffff7b3a463 in XtAppMainLoop ()
> >
> > from /lib/x86_64-linux-gnu/libXt.so.6
> >
> > #4 0x0000555555556834 in main (argc=1, argv=0x7fffffffdfb8) at project.c:227
> >
> > cdesktopenv-devel mailing list
> >
> > cdesktopenv-devel@lists.sourceforge.net
> >
> > https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel


_______________________________________________
cdesktopenv-devel mailing list
cdesktopenv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdesktopenv-devel

Reply via email to