Need Help: adhoc server compiling on debian. - Printable Version

+- (
+-- Forum: PPSSPP - Playstation Portable Simulator Suitable for Playing Portably (/forumdisplay.php?fid=1)
+--- Forum: Development (/forumdisplay.php?fid=3)
+--- Thread: Need Help: adhoc server compiling on debian. (/showthread.php?tid=9298)

Need Help: adhoc server compiling on debian. - bibby - 02-13-2014 01:09 PM

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.

RE: Need Help: adhoc server compiling on debian. - vnctdj - 02-27-2014 01:07 PM