Xfce Forum

Sub domains
 

You are not logged in.

#1 2018-05-19 04:15:13

cmcjacob
Member
Registered: 2018-05-07
Posts: 7

Cannot compile xfce-sample-plugin

I cant compile the sample plugin.  I clone it into a directory, run autogen.sh, import into my IDE, and this is the output when trying to make:

cd '/home/jacob/Desktop/scripts/xfce4-sample-plugin'
/bin/sh ./configure CC=/usr/bin/gcc CXX=/usr/bin/g++ CFLAGS="-g3 -gdwarf-2" CXXFLAGS="-g3 -gdwarf-2"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '1000' is supported by ustar format... yes
checking whether GID '1001' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... /usr/bin/gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/gcc accepts -g... yes
checking for /usr/bin/gcc option to accept ISO C89... none needed
checking whether /usr/bin/gcc understands -c and -o together... yes
checking dependency style of /usr/bin/gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from /usr/bin/gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... /usr/bin/gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /usr/bin/gcc option to produce PIC... -fPIC -DPIC
checking if /usr/bin/gcc PIC flag -fPIC -DPIC works... yes
checking if /usr/bin/gcc static flag -static works... yes
checking if /usr/bin/gcc supports -c -o file.o... yes
checking if /usr/bin/gcc supports -c -o file.o... (cached) yes
checking whether the /usr/bin/gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for gcc... (cached) /usr/bin/gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/gcc accepts -g... (cached) yes
checking for /usr/bin/gcc option to accept ISO C89... (cached) none needed
checking whether /usr/bin/gcc understands -c and -o together... (cached) yes
checking dependency style of /usr/bin/gcc... (cached) gcc3
checking whether /usr/bin/gcc and cc understand -c and -o together... yes
checking for ld used by /usr/bin/gcc... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking whether NLS is requested... yes
checking for intltool >= 0.35.0... 0.51.0 found
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for perl... /usr/bin/perl
checking for perl >= 5.8.1... 5.26.2
checking for XML::Parser... ok
checking for ANSI C header files... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for string.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for sys/types.h... (cached) yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for memory.h... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for bind_textdomain_codeset... yes
./configure: line 13826: syntax error near unexpected token `@LINGUAS@'
./configure: line 13826: `XDT_I18N(@LINGUAS@)'

RUN FAILED (exit value 2, total time: 18s)

What's ultimately frustrating is I don't care for the other languages.  A feature that I don't need is breaking a plugin I solely intend to use for myself, which I'm fully aware which language I need.  Can't find anything on google about this, its obviously only happening here so this is where I'm submitting it.

Offline

#2 2018-05-19 04:22:46

cmcjacob
Member
Registered: 2018-05-07
Posts: 7

Re: Cannot compile xfce-sample-plugin

Note that I am forced to do the following before I can even successfully run autogen.sh:

mv configure.ac.in configure.ac
autoreconf -i

I can't import the project until I run autogen, and autogen looks for configure.ac, and for some ignorant reason you guys didn't name the configure.ac.in file correctly.  Which forced me to autoreconf, and I'm assuming has lead to this error.

Offline

#3 2018-05-19 11:22:37

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Cannot compile xfce-sample-plugin

Which IDE are you using? Which distro?

I tested with VisualCode and created three tasks:
- Xfce configure - which runs "./autogen.sh --prefix=/usr"
- Xfce make - which runs "make"
- Xfce make clean - which runs "make clean"
...and it works fine.

I also tested with anjuta. Unfortunately, for some reason, anjuta crashes if autogen is run first on the directory. However, if I manually run "./autogen.sh --prefix=/usr" in the directory, then anjuta is able to configure and build without a problem.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#4 2018-05-21 02:50:46

cmcjacob
Member
Registered: 2018-05-07
Posts: 7

Re: Cannot compile xfce-sample-plugin

ToZ wrote:

Which IDE are you using? Which distro?

I tested with VisualCode and created three tasks:
- Xfce configure - which runs "./autogen.sh --prefix=/usr"
- Xfce make - which runs "make"
- Xfce make clean - which runs "make clean"
...and it works fine.

I also tested with anjuta. Unfortunately, for some reason, anjuta crashes if autogen is run first on the directory. However, if I manually run "./autogen.sh --prefix=/usr" in the directory, then anjuta is able to configure and build without a problem.

I got it to compile, but after putting the generated .so file in /usr/lib/xfce4/panel/plugins/ it's still not showing up in the 'Add Items' dialog of panel preferences.

I changed the @LIGUAIS@ symbol to 'en_AU', effectively removing all the language compatibility however allowing a smooth compilation.

IDE and distro: Netbeans with Manjaro 64bit.  EDIT: So, by deleting the 'Clipboard Manager' plugin named libclipman.so, and renaming the sample plugin to libclipman.so, it was then able to run. Is there somewhere else the "list of available plugins to load" is defined?  I noticed something about .desktop files, but haven't located them (maybe they are named differently).

Last edited by cmcjacob (2018-05-21 03:07:57)

Offline

#5 2018-05-21 03:11:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Cannot compile xfce-sample-plugin

If you "make install" it should put everything where it needs to go:
- icons to /usr/share/icons/hicolor/
- the .desktop file to /usr/share/xfce4/panel/plugins
- the library file to /usr/lib/xfce4/panel/plugins
- translation files to /usr/share/locale

You're probably missing the .desktop file.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2018-05-21 03:33:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Cannot compile xfce-sample-plugin

BTW, I was able to get netbeans to work - you need to make sure it's configured properly.

  1. First get the code:

    git clone git://git.xfce.org/panel-plugins/xfce4-sample-plugin
  2. Start Netbeans and select File > New Project

  3. Step 1 > Select C/C++ as project type

  4. Step 2 > select the folder that has the source and select Custom Configuration Mode

  5. Step 3 > Check "Prebuild step is required" and enter as the Custom Command:

    ./autogen.sh --prefix=/usr
  6. Step 4 > Change Clean command to:

    make clean

    ...and change the Build Command to

    make
  7. Step 5 > no changes

  8. Step 6 > no changes

  9. Step 7 > no changes

...and neteans will automatically configure and build the package when you click Finish.

To deploy the package, run:

sudo make install

...from within the source directory (you can use the terminal window within netbeans to do this).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 581.86 KiB (Peak: 599.14 KiB) ]