WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: FreeRDP COMPILE  (Read 5261 times)

Offline SJOGLwilson

  • Newbie
  • *
  • Posts: 12
FreeRDP COMPILE
« on: June 13, 2016, 11:41:30 AM »
Hello again all im trying to compile freerdp by following repo.tinycorelinux.net/7.x/86_64/tcz/src/freerdp/compile_freerdp

When it comes to cmake i receive the following error in my log

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/local/bin/cc
Build flags: -mtune=generic;-Os;-pipe
Id flags:

The output was:
1
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
/usr/local/bin/ld: cannot find -lc
/usr/local/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /usr/local/bin/c++
Build flags: -mtune=generic;-Os;-pipe
Id flags:

The output was:
1
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
/usr/local/bin/ld: cannot find -lc
/usr/local/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status


Determining if the C compiler works failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_ab478/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_ab478.dir/build.make CMakeFiles/cmTC_ab478.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_ab478.dir/testCCompiler.c.o
/usr/local/bin/cc    -mtune=generic -Os -pipe    -o CMakeFiles/cmTC_ab478.dir/testCCompiler.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_ab478
/tmp/tcloop/cmake/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_ab478.dir/link.txt --verbose=1
/usr/local/bin/cc  -mtune=generic -Os -pipe     CMakeFiles/cmTC_ab478.dir/testCCompiler.c.o  -o cmTC_ab478 -rdynamic
/usr/local/bin/ld: cannot find crt1.o: No such file or directory
/usr/local/bin/ld: cannot find crti.o: No such file or directory
/usr/local/bin/ld: cannot find -lc
/usr/local/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_ab478.dir/build.make:97: recipe for target 'cmTC_ab478' failed
make[1]: *** [cmTC_ab478] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_ab478/fast' failed
make: *** [cmTC_ab478/fast] Error 2



Could anyone advise where im going wrong ?

Thanks

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: FreeRDP COMPILE
« Reply #1 on: June 13, 2016, 11:54:40 AM »
Did you load the compiletc extension?

Note also that you need to use "-march=i486 -mtune=i686" in place of "-mtune=generic"

Offline SJOGLwilson

  • Newbie
  • *
  • Posts: 12
Re: FreeRDP COMPILE
« Reply #2 on: June 14, 2016, 04:33:44 AM »
Did you load the compiletc extension?

Note also that you need to use "-march=i486 -mtune=i686" in place of "-mtune=generic"

Sorry no i had not and i entered the changes you advised which got me further than i was but its still unable to compileĀ·

what I'm now running is

Code: [Select]
cmake -DCMAKE_C_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_CXX_FLAGS="-march=i486 -mtune=i686 -Os -pipe" -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib -DCMAKE_BUILD_TYPE=Release -DWITH_LIBSYSTEMD=OFF -DWITH_WAYLAND=OFF -DWITH_PULSE=ON -DWITH_CUPS=ON -DWITH_JPEG=ON -DWITH_X264=ON -DWITH_GSTREAMER_1_0=ON -DWITH_FFMPEG=ON -DWITH_ALSA=ON -DWITH_PCSC=ON ../

Error has changed to

Code: [Select]
Determining if the __x86_64__ exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_6dc7a/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_6dc7a.dir/build.make CMakeFiles/cmTC_6dc7a.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_6dc7a.dir/CheckSymbolExists.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe  -fPIE   -o CMakeFiles/cmTC_6dc7a.dir/CheckSymbolExists.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function 'main':
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:7:19: error: '__x86_64__' undeclared (first use in this function)
   return ((int*)(&__x86_64__))[argc];
                   ^
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:7:19: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/cmTC_6dc7a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_6dc7a.dir/CheckSymbolExists.c.o' failed
make[1]: *** [CMakeFiles/cmTC_6dc7a.dir/CheckSymbolExists.c.o] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_6dc7a/fast' failed
make: *** [cmTC_6dc7a/fast] Error 2

File /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */

int main(int argc, char** argv)
{
  (void)argv;
#ifndef __x86_64__
  return ((int*)(&__x86_64__))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if files sys/modem.h exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_61a18/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_61a18.dir/build.make CMakeFiles/cmTC_61a18.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_61a18.dir/CheckIncludeFiles.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS  -fPIE   -o CMakeFiles/cmTC_61a18.dir/CheckIncludeFiles.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: sys/modem.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_61a18.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_61a18.dir/CheckIncludeFiles.c.o' failed
make[1]: *** [CMakeFiles/cmTC_61a18.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_61a18/fast' failed
make: *** [cmTC_61a18/fast] Error 2

Source:
/* */
#include <sys/modem.h>


int main(void){return 0;}

Determining if files sys/filio.h exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_34fb4/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_34fb4.dir/build.make CMakeFiles/cmTC_34fb4.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_34fb4.dir/CheckIncludeFiles.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS  -fPIE   -o CMakeFiles/cmTC_34fb4.dir/CheckIncludeFiles.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: sys/filio.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_34fb4.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_34fb4.dir/CheckIncludeFiles.c.o' failed
make[1]: *** [CMakeFiles/cmTC_34fb4.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_34fb4/fast' failed
make: *** [cmTC_34fb4/fast] Error 2

Source:
/* */
#include <sys/filio.h>


int main(void){return 0;}

Determining if files sys/sockio.h exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_f2a9f/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_f2a9f.dir/build.make CMakeFiles/cmTC_f2a9f.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f2a9f.dir/CheckIncludeFiles.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS  -fPIE   -o CMakeFiles/cmTC_f2a9f.dir/CheckIncludeFiles.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:24: fatal error: sys/sockio.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_f2a9f.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_f2a9f.dir/CheckIncludeFiles.c.o' failed
make[1]: *** [CMakeFiles/cmTC_f2a9f.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_f2a9f/fast' failed
make: *** [cmTC_f2a9f/fast] Error 2

Source:
/* */
#include <sys/sockio.h>


int main(void){return 0;}

Determining if files sys/strtio.h exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_32bd4/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_32bd4.dir/build.make CMakeFiles/cmTC_32bd4.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_32bd4.dir/CheckIncludeFiles.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS  -fPIE   -o CMakeFiles/cmTC_32bd4.dir/CheckIncludeFiles.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:24: fatal error: sys/strtio.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_32bd4.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_32bd4.dir/CheckIncludeFiles.c.o' failed
make[1]: *** [CMakeFiles/cmTC_32bd4.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_32bd4/fast' failed
make: *** [cmTC_32bd4/fast] Error 2

Source:
/* */
#include <sys/strtio.h>


int main(void){return 0;}

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_243db/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_243db.dir/build.make CMakeFiles/cmTC_243db.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_243db.dir/CheckSymbolExists.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS  -fPIE   -o CMakeFiles/cmTC_243db.dir/CheckSymbolExists.c.o   -c /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_243db
/tmp/tcloop/cmake/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_243db.dir/link.txt --verbose=1
/usr/local/bin/cc  -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS     CMakeFiles/cmTC_243db.dir/CheckSymbolExists.c.o  -o cmTC_243db -rdynamic
CMakeFiles/cmTC_243db.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text.startup+0x13): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_243db.dir/build.make:97: recipe for target 'cmTC_243db' failed
make[1]: *** [cmTC_243db] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_243db/fast' failed
make: *** [cmTC_243db/fast] Error 2

File /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/tc/FreeRDP/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/local/bin/make" "cmTC_d676f/fast"
/usr/local/bin/make -f CMakeFiles/cmTC_d676f.dir/build.make CMakeFiles/cmTC_d676f.dir/build
make[1]: Entering directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
make[1]: Warning: File '/tmp/tcloop/cmake/usr/local/share/cmake-3.5/Modules/CheckFunctionExists.c' has modification time 277575231 s in the future
Building C object CMakeFiles/cmTC_d676f.dir/CheckFunctionExists.c.o
/usr/local/bin/cc    -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS -DCHECK_FUNCTION_EXISTS=pthread_create -fPIE   -o CMakeFiles/cmTC_d676f.dir/CheckFunctionExists.c.o   -c /tmp/tcloop/cmake/usr/local/share/cmake-3.5/Modules/CheckFunctionExists.c
Linking C executable cmTC_d676f
/tmp/tcloop/cmake/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d676f.dir/link.txt --verbose=1
/usr/local/bin/cc  -march=i486 -mtune=i686 -Os -pipe -march=i686 -Wall -Wno-unused-result -Wno-unused-but-set-variable -Wno-deprecated-declarations -fvisibility=hidden -Wimplicit-function-declaration -Wredundant-decls -msse2 -DWINPR_EXPORTS -DFREERDP_EXPORTS -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_d676f.dir/CheckFunctionExists.c.o  -o cmTC_d676f -rdynamic -lpthreads
/usr/local/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_d676f.dir/build.make:97: recipe for target 'cmTC_d676f' failed
make[1]: *** [cmTC_d676f] Error 1
make[1]: Leaving directory '/home/tc/FreeRDP/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_d676f/fast' failed
make: *** [cmTC_d676f/fast] Error 2


Thanks
« Last Edit: June 14, 2016, 04:56:50 AM by Juanito »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: FreeRDP COMPILE
« Reply #3 on: June 14, 2016, 05:02:12 AM »
Please use code tags when you post large sections of compiler output

If you loaded compiletc, cmake, Xorg-7.7-3d-dev, pulseaudio-dev, cups-dev, ffmpeg-dev, gst-plugins-base-dev and pcsc-lite-dev, I don't think you should get this error, but you can check which extension supplies modem.h by using the "provides" function of the apps gui.

Offline SJOGLwilson

  • Newbie
  • *
  • Posts: 12
Re: FreeRDP COMPILE
« Reply #4 on: June 14, 2016, 05:07:56 AM »
sorry about that mate will make sure I do next time, I've checked and everything you have mentioned there is installed.

looking for the provides function you mentioned but I'm not sure where you mean ?

Thanks

sorry just after posting this I installed libjpeg-turbo-dev.tcz and retried

Seems to be compiling now.


Thank you very much for your help :)
« Last Edit: June 14, 2016, 05:21:15 AM by SJOGLwilson »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: FreeRDP COMPILE
« Reply #5 on: June 14, 2016, 05:47:59 AM »
If you open the apps gui, click on the "apps" button then cloud and browser.

Then click on the drop-down box containing "search" and choose "provides"

Finally enter modem.h (for example) and hit enter.

Offline SJOGLwilson

  • Newbie
  • *
  • Posts: 12
Re: FreeRDP COMPILE
« Reply #6 on: June 14, 2016, 06:35:41 AM »
Brilliant thank you very much, you have been a massive help its much appreciated.

I have one final question I don't some reading and found that Freerdp supports usb redirection, I've loaded FreeRDP and it works fine although usb redirection doesn't.

Is there something else I must do to get this working ?

Kindest Regards
Lee

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: FreeRDP COMPILE
« Reply #7 on: June 14, 2016, 07:35:47 AM »
I'd guess that you need to compile usbredir  - the corepure64 instructions are here:

http://tinycorelinux.net/7.x/x86_64/tcz/src/usbredir/