Post Reply 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need Help: adhoc server compiling on debian.
02-13-2014, 01:09 PM (This post was last modified: 02-13-2014 11:57 PM by bibby.)
Post: #1
Need Help: adhoc server compiling on debian.
I've tried searching the forums and such but with no luck.

my cmakelists.txt this.

cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
# Above line indicates to Cmake that minimum version 2.8 is required.
# As you may have noted all lines beginning with hash symbol are treated as comments by Cmake.
SET(sampleName MyApp)
# In the above line we declared a variable sampleName and assigned it a value MyApp. We will make use of the same later.project(PrjMyApp)
# here we define the project or solution (for visual studio) name
# In following lines we try to find out the packages of additional libraries, if reqd. Here we are trying to locate PCL and mrpt library.
# u may replace the names by yours. Each such package should have a Cmake file in them, if not then we may have to manually define the paths.
# we Show that later.

# here we specify the additional include directories for the project. These files come in additional include directories option of VC++
# project.
# either the variable values from package like ${PCL_INCLUDE_DIRS} or absolute paths as shown in second and third line may be used.


add_executable (adhocpro main.c status.c user.c main.o status.o user.o config.h packets.h pspstructs.h status.h user.h)

I get the following error.
adhoc/main.o: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [adhocpro] Error 1
make[1]: *** [CMakeFiles/adhocpro.dir/all] Error 2
make: *** [all] Error 2

please help.
Find all posts by this user
Quote this message in a reply
02-27-2014, 01:07 PM
Post: #2
RE: Need Help: adhoc server compiling on debian.

♦ Intel Core i7-6700HQ | 16 GB RAM | NVIDIA GeForce GTX 960M | Debian Testing
♦ Intel Core i7-2630QM | 4 GB RAM | NVIDIA GeForce GT 540M | Debian Testing
♦ PSP-3004 | 6.60 PRO-C2
Find all posts by this user
Quote this message in a reply
Post Reply 

Forum Jump: