Compile error - files missing

Discussion of development and patch submission.
Post Reply
rex_c
Posts: 10
Joined: Sun 03 Jun, 2018 10:23 am

Compile error - files missing

Post by rex_c »

Hi everyone,

When compiling with new V15 source code, this time got below message:

Code: Select all

codegen_x86-64.c:16:10: fatal error: codegen_ops_x86-64.h: No such file or directory
 #include "codegen_ops_x86-64.h"
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
I had check the repo I downloaded seem missing 2 files:

Code: Select all

codegen_ops_x86-64.h
codegen_ops_x86-64.c
These 2 existing in v14 source.
I have nothing to lose now.
rex_c
Posts: 10
Joined: Sun 03 Jun, 2018 10:23 am

Re: Compile error - files missing

Post by rex_c »

Sorry, may be I made a mistake, I use the following to compile will be show the error,

Code: Select all

$cd pcem/src
$make -f Makefile.mingw-wx-sdl2-network
BUT, when I use,

Code: Select all

$ autoreconf -i
$ ./configure --enable-networking --enable-release-build
$ mingw32-make -j
It can compile with no error.
I have nothing to lose now.
User avatar
SarahWalker
Site Admin
Posts: 2054
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Compile error - files missing

Post by SarahWalker »

rex_c wrote: Thu 23 May, 2019 8:31 am Sorry, may be I made a mistake, I use the following to compile will be show the error,

Code: Select all

$cd pcem/src
$make -f Makefile.mingw-wx-sdl2-network
That makefile has no references to codegen_x86-64.c (which doesn't exist in v15). Are you sure you've actually got a clean checkout of v15, and aren't mixing files between different releases?
rex_c
Posts: 10
Joined: Sun 03 Jun, 2018 10:23 am

Re: Compile error - files missing

Post by rex_c »

SarahWalker wrote: Thu 23 May, 2019 4:10 pm
rex_c wrote: Thu 23 May, 2019 8:31 am Sorry, may be I made a mistake, I use the following to compile will be show the error,

Code: Select all

$cd pcem/src
$make -f Makefile.mingw-wx-sdl2-network
That makefile has no references to codegen_x86-64.c (which doesn't exist in v15). Are you sure you've actually got a clean checkout of v15, and aren't mixing files between different releases?
Let me clarify,

The first post:
I going to compile on my Windows(64 bit) platform, I completely remove(delete from my harddisk) all old v14 files, there ware no v14 src or files left.
Within the MSYS2 download v15 by

Code: Select all

$ hg clone https://bitbucket.org/pcem_emulator/pcem
all complete new, also updated the MSYS2 to the latest packages before I try to compile below

Code: Select all

$ cd pcem/src
$ $ make -f Makefile.mingw-wx-sdl2-network
Perv v14 will works, but it show the error this time.
I have nothing to lose now.
JosepMa
Posts: 202
Joined: Tue 20 Jun, 2017 6:25 pm

Re: Compile error - files missing

Post by JosepMa »

Since you use MSYS2, you should be building it like this (as a clean install):

make clean
autoreconf -i
./configure --enable-networking --enable-release-build
make -j
cp src/pcem.exe dist

(That last "cp" line is because I've created a dist subfolder where I have all the .dlls and roms so I can run it from outside msys)
rex_c
Posts: 10
Joined: Sun 03 Jun, 2018 10:23 am

Re: Compile error - files missing

Post by rex_c »

JosepMa wrote: Thu 23 May, 2019 6:20 pm Since you use MSYS2, you should be building it like this (as a clean install):

make clean
autoreconf -i
./configure --enable-networking --enable-release-build
make -j
cp src/pcem.exe dist

(That last "cp" line is because I've created a dist subfolder where I have all the .dlls and roms so I can run it from outside msys)
This is the method I working on now, since the old method not work. Thanks
I have nothing to lose now.
Post Reply