我已经将源代码下载到我年轻时曾经玩过的长期丢失的MMO中,并且我正在按照网站上的糟糕说明进行编译,只是说:
服务器需要Linux,MySQL开发库和32位gcc环境进行编译。
这是唯一的说明,所以我
-(void)connectionDidFinishLoading:(NSURLConnection *)connection
{
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
NSDictionary *dictionary = [[NSJSONSerialization JSONObjectWithData:data options:0 error:nil]objectForKey:@"data"];
NSDictionary *arr = [[NSJSONSerialization JSONObjectWithData:data options:0 error:nil]objectForKey:@"image"];
NSLog(@"arrr %@",arr);
[productdetail removeAllObjects];
if (dictionary)
{
NSMutableDictionary *temp = [NSMutableDictionary new];
NSMutableDictionary *image = [NSMutableDictionary new];
[temp setObject:[dictionary objectForKey:@"product_name"] forKey:@"product_name"];
[temp setObject:[dictionary objectForKey:@"description"] forKey:@"description"];
[temp setObject:[dictionary objectForKey:@"pack_size"] forKey:@"pack_size"];
[temp setObject:[dictionary objectForKey:@"price"] forKey:@"price"];
[image setObject:[dictionary objectForKey:@"image"] forKey:@"image"];
// productdetail = [NSMutableArray arrayWithObjects:image,nil];
[productimage addObject:temp];
NSLog(@"productdetail %@", productdetail);
NSIndexPath *indexhpath;
_ProductName.text = [[productdetail objectAtIndex:indexhpath.row] objectForKey:@"product_name"];
_ProductDesc.text = [[productdetail objectAtIndex:indexhpath.row] objectForKey:@"description"];
_PackSize.text = [[productdetail objectAtIndex:indexhpath.row] objectForKey:@"pack_size"];
price = [[productdetail objectAtIndex:indexhpath.row] objectForKey:@"price"];
//Convert price into integer.
int Price = [price intValue];
NSInteger defaultpacks = 10;
value = _TotalPrice.text = [NSString stringWithFormat:@"%d", Price*defaultpacks];
NSLog(@"value %@", value);
firstincrease = [price intValue];
secondincrease = [value intValue];
NSString *str = [NSString stringWithFormat:@"%d",firstincrease+secondincrease];
number = [str intValue];
firstdecrease =[price intValue];
seconddecrease = [value intValue];
NSString *str2 = [NSString stringWithFormat:@"%d",firstincrease+secondincrease];
number2 = [str2 intValue];
}
if (productimage)
{
[_imagecollectionview reloadData];
}
但如果我尝试
sudo apt-get install build-essential zlib1g-dev
我收到错误:
sudo make
我不确定我是否应该使用gcc -Wall -Wshadow -Wno-pointer-sign -O3 -g -fno-strict-aliasing -m32 -DSTAFF -o .obj/server.o -c server.c
In file included from server.c:46:0:
/usr/include/zlib.h:34:19: fatal error: zconf.h: No such file or directory
#include "zconf.h"
,没有make
文件可以运行,任何关于如何正确编译它的信息都会非常感谢
(不确定Stackoverflow或Serverfault)
这是所有文件夹内容:
configure